11 lines
206 KiB
JavaScript
Raw Permalink Normal View History

2025-05-22 16:24:05 +08:00
/*!
* vConsole v3.11.1 (https://github.com/Tencent/vConsole)
*
* Tencent is pleased to support the open source community by making vConsole available.
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("VConsole",[],n):"object"==typeof exports?exports.VConsole=n():t.VConsole=n()}(this||self,(function(){return function(){var __webpack_modules__={8406:function(t,n,e){"use strict";function o(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}Object.defineProperty(n,"__esModule",{value:!0}),n.CookieStorage=void 0;var r=e(9390),i=e(4370),c=function(){function t(n){if(function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._defaultOptions=Object.assign({domain:null,expires:null,path:null,secure:!1},n),"undefined"!=typeof Proxy)return new Proxy(this,a)}var n,e,c;return n=t,(e=[{key:"clear",value:function(){var t=this,n=i.parseCookies(this._getCookie());Object.keys(n).forEach((function(n){return t.removeItem(n)}))}},{key:"getItem",value:function(t){var n=i.parseCookies(this._getCookie());return Object.prototype.hasOwnProperty.call(n,t)?n[t]:null}},{key:"key",value:function(t){var n=i.parseCookies(this._getCookie()),e=Object.keys(n).sort();return t<e.length?e[t]:null}},{key:"removeItem",value:function(t,n){var e=Object.assign(Object.assign(Object.assign({},this._defaultOptions),n),{expires:new Date(0)}),o=r.formatCookie(t,"",e);this._setCookie(o)}},{key:"setItem",value:function(t,n,e){var o=Object.assign(Object.assign({},this._defaultOptions),e),i=r.formatCookie(t,n,o);this._setCookie(i)}},{key:"_getCookie",value:function(){return"undefined"==typeof document||void 0===document.cookie?"":document.cookie}},{key:"_setCookie",value:function(t){document.cookie=t}},{key:"length",get:function(){var t=i.parseCookies(this._getCookie());return Object.keys(t).length}}])&&o(n.prototype,e),c&&o(n,c),t}();n.CookieStorage=c;var a={defineProperty:function(t,n,e){return t.setItem(n.toString(),String(e.value)),!0},deleteProperty:function(t,n){return t.removeItem(n.toString()),!0},get:function(t,n,e){if("string"==typeof n&&n in t)return t[n];var o=t.getItem(n.toString());return null!==o?o:void 0},getOwnPropertyDescriptor:function(t,n){if(!(n in t))return{configurable:!0,enumerable:!0,value:t.getItem(n.toString()),writable:!0}},has:function(t,n){return"string"==typeof n&&n in t||null!==t.getItem(n.toString())},ownKeys:function(t){for(var n=[],e=0;e<t.length;e++){var o=t.key(e);null!==o&&n.push(o)}return n},preventExtensions:function(t){throw new TypeError("can't prevent extensions on this proxy object")},set:function(t,n,e,o){return t.setItem(n.toString(),String(e)),!0}}},9390:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatCookie=void 0;var e=function(t){var n=t.path,e=t.domain,o=t.expires,r=t.secure,i=function(t){var n=t.sameSite;return void 0===n?null:["none","lax","strict"].indexOf(n.toLowerCase())>=0?n:null}(t);return[null==n?"":";path="+n,null==e?"":";domain="+e,null==o?"":";expires="+o.toUTCString(),void 0===r||!1===r?"":";secure",null===i?"":";SameSite="+i].join("")};n.formatCookie=function(t,n,o){return[encodeURIComponent(t),"=",encodeURIComponent(n),e(o)].join("")}},6025:function(t,n,e){"use strict";var o=e(8406);Object.defineProperty(n,"eR",{enumerable:!0,get:function(){return o.CookieStorage}});var r=e(9390);var i=e(4370)},4370:function(t,n){"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],o=!0,r=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(o=(c=a.next()).done)&&(e.push(c.value),!n||e.length!==n);o=!0);}catch(t){r=!0,i=t}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return e}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,n)}(