hongshu-view 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/hongshu-view.mjs +2 -3
- package/dist/hongshu-view.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/hongshu-view.mjs
CHANGED
|
@@ -25905,11 +25905,10 @@ function Oie(e) {
|
|
|
25905
25905
|
let n = JSON.parse("/login.html"), s = window.localStorage.getItem("loginPage");
|
|
25906
25906
|
if (s)
|
|
25907
25907
|
try {
|
|
25908
|
-
n = s
|
|
25908
|
+
n = s;
|
|
25909
25909
|
} catch (a) {
|
|
25910
|
-
n = "/login.html";
|
|
25911
25910
|
}
|
|
25912
|
-
e
|
|
25911
|
+
e.loginPage && (n = e.loginPage), location.href = n;
|
|
25913
25912
|
}
|
|
25914
25913
|
const u4 = (e, n) => {
|
|
25915
25914
|
const s = e.__vccOpts || e;
|
package/dist/hongshu-view.umd.js
CHANGED
|
@@ -39,7 +39,7 @@ For more detail, please visit: ${c}
|
|
|
39
39
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...s){const a=new this(n);return s.forEach(c=>a.set(c)),a}static accessor(n){const a=(this[Eme]=this[Eme]={accessors:{}}).accessors,c=this.prototype;function f(p){const g=h3(p);a[g]||(aIe(c,p),a[g]=!0)}return mn.isArray(n)?n.forEach(f):f(n),this}};a5.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mn.freezeMethods(a5.prototype),mn.freezeMethods(a5);const l0=a5;function vZ(e,n){const s=this||bZ,a=n||s,c=l0.from(a.headers);let f=a.data;return mn.forEach(e,function(g){f=g.call(s,f,c.normalize(),n?n.status:void 0)}),c.normalize(),f}function Tme(e){return!!(e&&e.__CANCEL__)}function g3(e,n,s){Si.call(this,e==null?"canceled":e,Si.ERR_CANCELED,n,s),this.name="CanceledError"}mn.inherits(g3,Si,{__CANCEL__:!0});function lIe(e,n,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?e(s):n(new Si("Request failed with status code "+s.status,[Si.ERR_BAD_REQUEST,Si.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cIe=cy.isStandardBrowserEnv?function(){return{write:function(s,a,c,f,p,g){const v=[];v.push(s+"="+encodeURIComponent(a)),mn.isNumber(c)&&v.push("expires="+new Date(c).toGMTString()),mn.isString(f)&&v.push("path="+f),mn.isString(p)&&v.push("domain="+p),g===!0&&v.push("secure"),document.cookie=v.join("; ")},read:function(s){const a=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function uIe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dIe(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}function Ome(e,n){return e&&!uIe(n)?dIe(e,n):n}const fIe=cy.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let a;function c(f){let p=f;return n&&(s.setAttribute("href",p),p=s.href),s.setAttribute("href",p),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return a=c(window.location.href),function(p){const g=mn.isString(p)?c(p):p;return g.protocol===a.protocol&&g.host===a.host}}():function(){return function(){return!0}}();function pIe(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function mIe(e,n){e=e||10;const s=new Array(e),a=new Array(e);let c=0,f=0,p;return n=n!==void 0?n:1e3,function(v){const C=Date.now(),E=a[f];p||(p=C),s[c]=v,a[c]=C;let O=f,_=0;for(;O!==c;)_+=s[O++],O=O%e;if(c=(c+1)%e,c===f&&(f=(f+1)%e),C-p<n)return;const D=E&&C-E;return D?Math.round(_*1e3/D):void 0}}function Nme(e,n){let s=0;const a=mIe(50,250);return c=>{const f=c.loaded,p=c.lengthComputable?c.total:void 0,g=f-s,v=a(g),C=f<=p;s=f;const E={loaded:f,total:p,progress:p?f/p:void 0,bytes:g,rate:v||void 0,estimated:v&&p&&C?(p-f)/v:void 0,event:c};E[n?"download":"upload"]=!0,e(E)}}const l5={http:VPe,xhr:typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(s,a){let c=e.data;const f=l0.from(e.headers).normalize(),p=e.responseType;let g;function v(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}mn.isFormData(c)&&(cy.isStandardBrowserEnv||cy.isStandardBrowserWebWorkerEnv?f.setContentType(!1):f.setContentType("multipart/form-data;",!1));let C=new XMLHttpRequest;if(e.auth){const D=e.auth.username||"",M=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.set("Authorization","Basic "+btoa(D+":"+M))}const E=Ome(e.baseURL,e.url);C.open(e.method.toUpperCase(),Cme(E,e.params,e.paramsSerializer),!0),C.timeout=e.timeout;function O(){if(!C)return;const D=l0.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),R={data:!p||p==="text"||p==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:D,config:e,request:C};lIe(function(V){s(V),v()},function(V){a(V),v()},R),C=null}if("onloadend"in C?C.onloadend=O:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(O)},C.onabort=function(){C&&(a(new Si("Request aborted",Si.ECONNABORTED,e,C)),C=null)},C.onerror=function(){a(new Si("Network Error",Si.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let M=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||xme;e.timeoutErrorMessage&&(M=e.timeoutErrorMessage),a(new Si(M,R.clarifyTimeoutError?Si.ETIMEDOUT:Si.ECONNABORTED,e,C)),C=null},cy.isStandardBrowserEnv){const D=(e.withCredentials||fIe(E))&&e.xsrfCookieName&&cIe.read(e.xsrfCookieName);D&&f.set(e.xsrfHeaderName,D)}c===void 0&&f.setContentType(null),"setRequestHeader"in C&&mn.forEach(f.toJSON(),function(M,R){C.setRequestHeader(R,M)}),mn.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),p&&p!=="json"&&(C.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&C.addEventListener("progress",Nme(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",Nme(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=D=>{C&&(a(!D||D.type?new g3(null,e,C):D),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const _=pIe(E);if(_&&cy.protocols.indexOf(_)===-1){a(new Si("Unsupported protocol "+_+":",Si.ERR_BAD_REQUEST,e));return}C.send(c||null)})}};mn.forEach(l5,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(s){}Object.defineProperty(e,"adapterName",{value:n})}});const hIe={getAdapter:e=>{e=mn.isArray(e)?e:[e];const{length:n}=e;let s,a;for(let c=0;c<n&&(s=e[c],!(a=mn.isString(s)?l5[s.toLowerCase()]:s));c++);if(!a)throw a===!1?new Si(`Adapter ${s} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(mn.hasOwnProp(l5,s)?`Adapter '${s}' is not available in the build`:`Unknown adapter '${s}'`);if(!mn.isFunction(a))throw new TypeError("adapter is not a function");return a},adapters:l5};function wZ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new g3(null,e)}function _me(e){return wZ(e),e.headers=l0.from(e.headers),e.data=vZ.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hIe.getAdapter(e.adapter||bZ.adapter)(e).then(function(a){return wZ(e),a.data=vZ.call(e,e.transformResponse,a),a.headers=l0.from(a.headers),a},function(a){return Tme(a)||(wZ(e),a&&a.response&&(a.response.data=vZ.call(e,e.transformResponse,a.response),a.response.headers=l0.from(a.response.headers))),Promise.reject(a)})}const Ame=e=>e instanceof l0?e.toJSON():e;function tO(e,n){n=n||{};const s={};function a(C,E,O){return mn.isPlainObject(C)&&mn.isPlainObject(E)?mn.merge.call({caseless:O},C,E):mn.isPlainObject(E)?mn.merge({},E):mn.isArray(E)?E.slice():E}function c(C,E,O){if(mn.isUndefined(E)){if(!mn.isUndefined(C))return a(void 0,C,O)}else return a(C,E,O)}function f(C,E){if(!mn.isUndefined(E))return a(void 0,E)}function p(C,E){if(mn.isUndefined(E)){if(!mn.isUndefined(C))return a(void 0,C)}else return a(void 0,E)}function g(C,E,O){if(O in n)return a(C,E);if(O in e)return a(void 0,C)}const v={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(C,E)=>c(Ame(C),Ame(E),!0)};return mn.forEach(Object.keys(Object.assign({},e,n)),function(E){const O=v[E]||c,_=O(e[E],n[E],E);mn.isUndefined(_)&&O!==g||(s[E]=_)}),s}const Mme="1.4.0",CZ={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{CZ[e]=function(a){return typeof a===e||"a"+(n<1?"n ":" ")+e}});const Bme={};CZ.transitional=function(n,s,a){function c(f,p){return"[Axios v"+Mme+"] Transitional option '"+f+"'"+p+(a?". "+a:"")}return(f,p,g)=>{if(n===!1)throw new Si(c(p," has been removed"+(s?" in "+s:"")),Si.ERR_DEPRECATED);return s&&!Bme[p]&&(Bme[p]=!0,console.warn(c(p," has been deprecated since v"+s+" and will be removed in the near future"))),n?n(f,p,g):!0}};function gIe(e,n,s){if(typeof e!="object")throw new Si("options must be an object",Si.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let c=a.length;for(;c-- >0;){const f=a[c],p=n[f];if(p){const g=e[f],v=g===void 0||p(g,f,e);if(v!==!0)throw new Si("option "+f+" must be "+v,Si.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new Si("Unknown option "+f,Si.ERR_BAD_OPTION)}}const SZ={assertOptions:gIe,validators:CZ},_w=SZ.validators;let c5=class{constructor(n){this.defaults=n,this.interceptors={request:new Sme,response:new Sme}}request(n,s){typeof n=="string"?(s=s||{},s.url=n):s=n||{},s=tO(this.defaults,s);const{transitional:a,paramsSerializer:c,headers:f}=s;a!==void 0&&SZ.assertOptions(a,{silentJSONParsing:_w.transitional(_w.boolean),forcedJSONParsing:_w.transitional(_w.boolean),clarifyTimeoutError:_w.transitional(_w.boolean)},!1),c!=null&&(mn.isFunction(c)?s.paramsSerializer={serialize:c}:SZ.assertOptions(c,{encode:_w.function,serialize:_w.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let p;p=f&&mn.merge(f.common,f[s.method]),p&&mn.forEach(["delete","get","head","post","put","patch","common"],M=>{delete f[M]}),s.headers=l0.concat(p,f);const g=[];let v=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(s)===!1||(v=v&&R.synchronous,g.unshift(R.fulfilled,R.rejected))});const C=[];this.interceptors.response.forEach(function(R){C.push(R.fulfilled,R.rejected)});let E,O=0,_;if(!v){const M=[_me.bind(this),void 0];for(M.unshift.apply(M,g),M.push.apply(M,C),_=M.length,E=Promise.resolve(s);O<_;)E=E.then(M[O++],M[O++]);return E}_=g.length;let D=s;for(O=0;O<_;){const M=g[O++],R=g[O++];try{D=M(D)}catch(I){R.call(this,I);break}}try{E=_me.call(this,D)}catch(M){return Promise.reject(M)}for(O=0,_=C.length;O<_;)E=E.then(C[O++],C[O++]);return E}getUri(n){n=tO(this.defaults,n);const s=Ome(n.baseURL,n.url);return Cme(s,n.params,n.paramsSerializer)}};mn.forEach(["delete","get","head","options"],function(n){c5.prototype[n]=function(s,a){return this.request(tO(a||{},{method:n,url:s,data:(a||{}).data}))}}),mn.forEach(["post","put","patch"],function(n){function s(a){return function(f,p,g){return this.request(tO(g||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:f,data:p}))}}c5.prototype[n]=s(),c5.prototype[n+"Form"]=s(!0)});const u5=c5,bIe=class Cwe{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const a=this;this.promise.then(c=>{if(!a._listeners)return;let f=a._listeners.length;for(;f-- >0;)a._listeners[f](c);a._listeners=null}),this.promise.then=c=>{let f;const p=new Promise(g=>{a.subscribe(g),f=g}).then(c);return p.cancel=function(){a.unsubscribe(f)},p},n(function(f,p,g){a.reason||(a.reason=new g3(f,p,g),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const s=this._listeners.indexOf(n);s!==-1&&this._listeners.splice(s,1)}static source(){let n;return{token:new Cwe(function(c){n=c}),cancel:n}}};function yIe(e){return function(s){return e.apply(null,s)}}function vIe(e){return mn.isObject(e)&&e.isAxiosError===!0}const xZ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xZ).forEach(([e,n])=>{xZ[n]=e});const wIe=xZ;function Dme(e){const n=new u5(e),s=rme(u5.prototype.request,n);return mn.extend(s,u5.prototype,n,{allOwnKeys:!0}),mn.extend(s,n,null,{allOwnKeys:!0}),s.create=function(c){return Dme(tO(e,c))},s}const hu=Dme(bZ);hu.Axios=u5,hu.CanceledError=g3,hu.CancelToken=bIe,hu.isCancel=Tme,hu.VERSION=Mme,hu.toFormData=s5,hu.AxiosError=Si,hu.Cancel=hu.CanceledError,hu.all=function(n){return Promise.all(n)},hu.spread=yIe,hu.isAxiosError=vIe,hu.mergeConfig=tO,hu.AxiosHeaders=l0,hu.formToJSON=e=>kme(mn.isHTMLForm(e)?new FormData(e):e),hu.HttpStatusCode=wIe,hu.default=hu;const kZ=hu,{Axios:DQe,AxiosError:CIe,CanceledError:RQe,isCancel:$Qe,CancelToken:PQe,VERSION:IQe,all:LQe,Cancel:FQe,isAxiosError:zQe,spread:VQe,toFormData:HQe,AxiosHeaders:UQe,HttpStatusCode:WQe,formToJSON:jQe,mergeConfig:KQe}=kZ;var SIe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var c=42;n[s]=c;for(s in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var f=Object.getOwnPropertySymbols(n);if(f.length!==1||f[0]!==s||!Object.prototype.propertyIsEnumerable.call(n,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(n,s);if(p.value!==c||p.enumerable!==!0)return!1}return!0},Rme=typeof Symbol!="undefined"&&Symbol,xIe=SIe,kIe=function(){return typeof Rme!="function"||typeof Symbol!="function"||typeof Rme("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xIe()},$me={foo:{}},EIe=Object,TIe=function(){return{__proto__:$me}.foo===$me.foo&&!({__proto__:null}instanceof EIe)},OIe="Function.prototype.bind called on incompatible ",EZ=Array.prototype.slice,NIe=Object.prototype.toString,_Ie="[object Function]",AIe=function(n){var s=this;if(typeof s!="function"||NIe.call(s)!==_Ie)throw new TypeError(OIe+s);for(var a=EZ.call(arguments,1),c,f=function(){if(this instanceof c){var E=s.apply(this,a.concat(EZ.call(arguments)));return Object(E)===E?E:this}else return s.apply(n,a.concat(EZ.call(arguments)))},p=Math.max(0,s.length-a.length),g=[],v=0;v<p;v++)g.push("$"+v);if(c=Function("binder","return function ("+g.join(",")+"){ return binder.apply(this,arguments); }")(f),s.prototype){var C=function(){};C.prototype=s.prototype,c.prototype=new C,C.prototype=null}return c},MIe=AIe,TZ=Function.prototype.bind||MIe,BIe=TZ,DIe=BIe.call(Function.call,Object.prototype.hasOwnProperty),li,nO=SyntaxError,Pme=Function,oO=TypeError,OZ=function(e){try{return Pme('"use strict"; return ('+e+").constructor;")()}catch(n){}},L2=Object.getOwnPropertyDescriptor;if(L2)try{L2({},"")}catch(e){L2=null}var NZ=function(){throw new oO},RIe=L2?function(){try{return arguments.callee,NZ}catch(e){try{return L2(arguments,"callee").get}catch(n){return NZ}}}():NZ,sO=kIe(),$Ie=TIe(),Iu=Object.getPrototypeOf||($Ie?function(e){return e.__proto__}:null),rO={},PIe=typeof Uint8Array=="undefined"||!Iu?li:Iu(Uint8Array),F2={"%AggregateError%":typeof AggregateError=="undefined"?li:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?li:ArrayBuffer,"%ArrayIteratorPrototype%":sO&&Iu?Iu([][Symbol.iterator]()):li,"%AsyncFromSyncIteratorPrototype%":li,"%AsyncFunction%":rO,"%AsyncGenerator%":rO,"%AsyncGeneratorFunction%":rO,"%AsyncIteratorPrototype%":rO,"%Atomics%":typeof Atomics=="undefined"?li:Atomics,"%BigInt%":typeof BigInt=="undefined"?li:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?li:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?li:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?li:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?li:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?li:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?li:FinalizationRegistry,"%Function%":Pme,"%GeneratorFunction%":rO,"%Int8Array%":typeof Int8Array=="undefined"?li:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?li:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?li:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sO&&Iu?Iu(Iu([][Symbol.iterator]())):li,"%JSON%":typeof JSON=="object"?JSON:li,"%Map%":typeof Map=="undefined"?li:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!sO||!Iu?li:Iu(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?li:Promise,"%Proxy%":typeof Proxy=="undefined"?li:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?li:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?li:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!sO||!Iu?li:Iu(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?li:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sO&&Iu?Iu(""[Symbol.iterator]()):li,"%Symbol%":sO?Symbol:li,"%SyntaxError%":nO,"%ThrowTypeError%":RIe,"%TypedArray%":PIe,"%TypeError%":oO,"%Uint8Array%":typeof Uint8Array=="undefined"?li:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?li:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?li:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?li:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?li:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?li:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?li:WeakSet};if(Iu)try{null.error}catch(e){var IIe=Iu(Iu(e));F2["%Error.prototype%"]=IIe}var LIe=function e(n){var s;if(n==="%AsyncFunction%")s=OZ("async function () {}");else if(n==="%GeneratorFunction%")s=OZ("function* () {}");else if(n==="%AsyncGeneratorFunction%")s=OZ("async function* () {}");else if(n==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(n==="%AsyncIteratorPrototype%"){var c=e("%AsyncGenerator%");c&&Iu&&(s=Iu(c.prototype))}return F2[n]=s,s},Ime={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b3=TZ,d5=DIe,FIe=b3.call(Function.call,Array.prototype.concat),zIe=b3.call(Function.apply,Array.prototype.splice),Lme=b3.call(Function.call,String.prototype.replace),f5=b3.call(Function.call,String.prototype.slice),VIe=b3.call(Function.call,RegExp.prototype.exec),HIe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,UIe=/\\(\\)?/g,WIe=function(n){var s=f5(n,0,1),a=f5(n,-1);if(s==="%"&&a!=="%")throw new nO("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new nO("invalid intrinsic syntax, expected opening `%`");var c=[];return Lme(n,HIe,function(f,p,g,v){c[c.length]=g?Lme(v,UIe,"$1"):p||f}),c},jIe=function(n,s){var a=n,c;if(d5(Ime,a)&&(c=Ime[a],a="%"+c[0]+"%"),d5(F2,a)){var f=F2[a];if(f===rO&&(f=LIe(a)),typeof f=="undefined"&&!s)throw new oO("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:c,name:a,value:f}}throw new nO("intrinsic "+n+" does not exist!")},_Z=function(n,s){if(typeof n!="string"||n.length===0)throw new oO("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new oO('"allowMissing" argument must be a boolean');if(VIe(/^%?[^%]*%?$/,n)===null)throw new nO("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=WIe(n),c=a.length>0?a[0]:"",f=jIe("%"+c+"%",s),p=f.name,g=f.value,v=!1,C=f.alias;C&&(c=C[0],zIe(a,FIe([0,1],C)));for(var E=1,O=!0;E<a.length;E+=1){var _=a[E],D=f5(_,0,1),M=f5(_,-1);if((D==='"'||D==="'"||D==="`"||M==='"'||M==="'"||M==="`")&&D!==M)throw new nO("property names with quotes must have matching quotes");if((_==="constructor"||!O)&&(v=!0),c+="."+_,p="%"+c+"%",d5(F2,p))g=F2[p];else if(g!=null){if(!(_ in g)){if(!s)throw new oO("base intrinsic for "+n+" exists, but the property is not available.");return}if(L2&&E+1>=a.length){var R=L2(g,_);O=!!R,O&&"get"in R&&!("originalValue"in R.get)?g=R.get:g=g[_]}else O=d5(g,_),g=g[_];O&&!v&&(F2[p]=g)}}return g},Fme={exports:{}};(function(e){var n=TZ,s=_Z,a=s("%Function.prototype.apply%"),c=s("%Function.prototype.call%"),f=s("%Reflect.apply%",!0)||n.call(c,a),p=s("%Object.getOwnPropertyDescriptor%",!0),g=s("%Object.defineProperty%",!0),v=s("%Math.max%");if(g)try{g({},"a",{value:1})}catch(E){g=null}e.exports=function(O){var _=f(n,c,arguments);if(p&&g){var D=p(_,"length");D.configurable&&g(_,"length",{value:1+v(0,O.length-(arguments.length-1))})}return _};var C=function(){return f(n,a,arguments)};g?g(e.exports,"apply",{value:C}):e.exports.apply=C})(Fme);var KIe=Fme.exports,zme=_Z,Vme=KIe,qIe=Vme(zme("String.prototype.indexOf")),ZIe=function(n,s){var a=zme(n,!!s);return typeof a=="function"&&qIe(n,".prototype.")>-1?Vme(a):a};const GIe=SAe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var AZ=typeof Map=="function"&&Map.prototype,MZ=Object.getOwnPropertyDescriptor&&AZ?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,p5=AZ&&MZ&&typeof MZ.get=="function"?MZ.get:null,Hme=AZ&&Map.prototype.forEach,BZ=typeof Set=="function"&&Set.prototype,DZ=Object.getOwnPropertyDescriptor&&BZ?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m5=BZ&&DZ&&typeof DZ.get=="function"?DZ.get:null,Ume=BZ&&Set.prototype.forEach,YIe=typeof WeakMap=="function"&&WeakMap.prototype,y3=YIe?WeakMap.prototype.has:null,XIe=typeof WeakSet=="function"&&WeakSet.prototype,v3=XIe?WeakSet.prototype.has:null,JIe=typeof WeakRef=="function"&&WeakRef.prototype,Wme=JIe?WeakRef.prototype.deref:null,QIe=Boolean.prototype.valueOf,eLe=Object.prototype.toString,tLe=Function.prototype.toString,nLe=String.prototype.match,RZ=String.prototype.slice,Aw=String.prototype.replace,oLe=String.prototype.toUpperCase,jme=String.prototype.toLowerCase,Kme=RegExp.prototype.test,qme=Array.prototype.concat,uy=Array.prototype.join,sLe=Array.prototype.slice,Zme=Math.floor,$Z=typeof BigInt=="function"?BigInt.prototype.valueOf:null,PZ=Object.getOwnPropertySymbols,IZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,iO=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ud=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===iO||"symbol")?Symbol.toStringTag:null,Gme=Object.prototype.propertyIsEnumerable,Yme=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Xme(e,n){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Kme.call(/e/,n))return n;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-Zme(-e):Zme(e);if(a!==e){var c=String(a),f=RZ.call(n,c.length+1);return Aw.call(c,s,"$&_")+"."+Aw.call(Aw.call(f,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Aw.call(n,s,"$&_")}var LZ=GIe,Jme=LZ.custom,Qme=nhe(Jme)?Jme:null,rLe=function e(n,s,a,c){var f=s||{};if(Mw(f,"quoteStyle")&&f.quoteStyle!=="single"&&f.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mw(f,"maxStringLength")&&(typeof f.maxStringLength=="number"?f.maxStringLength<0&&f.maxStringLength!==1/0:f.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=Mw(f,"customInspect")?f.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mw(f,"indent")&&f.indent!==null&&f.indent!==" "&&!(parseInt(f.indent,10)===f.indent&&f.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mw(f,"numericSeparator")&&typeof f.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=f.numericSeparator;if(typeof n=="undefined")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return she(n,f);if(typeof n=="number"){if(n===0)return 1/0/n>0?"0":"-0";var v=String(n);return g?Xme(n,v):v}if(typeof n=="bigint"){var C=String(n)+"n";return g?Xme(n,C):C}var E=typeof f.depth=="undefined"?5:f.depth;if(typeof a=="undefined"&&(a=0),a>=E&&E>0&&typeof n=="object")return FZ(n)?"[Array]":"[Object]";var O=xLe(f,a);if(typeof c=="undefined")c=[];else if(ohe(c,n)>=0)return"[Circular]";function _($e,tt,it){if(tt&&(c=sLe.call(c),c.push(tt)),it){var q={depth:f.depth};return Mw(f,"quoteStyle")&&(q.quoteStyle=f.quoteStyle),e($e,q,a+1,c)}return e($e,f,a+1,c)}if(typeof n=="function"&&!the(n)){var D=mLe(n),M=h5(n,_);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(M.length>0?" { "+uy.call(M,", ")+" }":"")}if(nhe(n)){var R=iO?Aw.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):IZ.call(n);return typeof n=="object"&&!iO?w3(R):R}if(wLe(n)){for(var I="<"+jme.call(String(n.nodeName)),V=n.attributes||[],J=0;J<V.length;J++)I+=" "+V[J].name+"="+ehe(iLe(V[J].value),"double",f);return I+=">",n.childNodes&&n.childNodes.length&&(I+="..."),I+="</"+jme.call(String(n.nodeName))+">",I}if(FZ(n)){if(n.length===0)return"[]";var H=h5(n,_);return O&&!SLe(H)?"["+VZ(H,O)+"]":"[ "+uy.call(H,", ")+" ]"}if(lLe(n)){var U=h5(n,_);return!("cause"in Error.prototype)&&"cause"in n&&!Gme.call(n,"cause")?"{ ["+String(n)+"] "+uy.call(qme.call("[cause]: "+_(n.cause),U),", ")+" }":U.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+uy.call(U,", ")+" }"}if(typeof n=="object"&&p){if(Qme&&typeof n[Qme]=="function"&&LZ)return LZ(n,{depth:E-a});if(p!=="symbol"&&typeof n.inspect=="function")return n.inspect()}if(hLe(n)){var le=[];return Hme&&Hme.call(n,function($e,tt){le.push(_(tt,n,!0)+" => "+_($e,n))}),rhe("Map",p5.call(n),le,O)}if(yLe(n)){var ne=[];return Ume&&Ume.call(n,function($e){ne.push(_($e,n))}),rhe("Set",m5.call(n),ne,O)}if(gLe(n))return zZ("WeakMap");if(vLe(n))return zZ("WeakSet");if(bLe(n))return zZ("WeakRef");if(uLe(n))return w3(_(Number(n)));if(fLe(n))return w3(_($Z.call(n)));if(dLe(n))return w3(QIe.call(n));if(cLe(n))return w3(_(String(n)));if(!aLe(n)&&!the(n)){var K=h5(n,_),ce=Yme?Yme(n)===Object.prototype:n instanceof Object||n.constructor===Object,ve=n instanceof Object?"":"null prototype",Ce=!ce&&Ud&&Object(n)===n&&Ud in n?RZ.call(Bw(n),8,-1):ve?"Object":"",ke=ce||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",ue=ke+(Ce||ve?"["+uy.call(qme.call([],Ce||[],ve||[]),": ")+"] ":"");return K.length===0?ue+"{}":O?ue+"{"+VZ(K,O)+"}":ue+"{ "+uy.call(K,", ")+" }"}return String(n)};function ehe(e,n,s){var a=(s.quoteStyle||n)==="double"?'"':"'";return a+e+a}function iLe(e){return Aw.call(String(e),/"/g,""")}function FZ(e){return Bw(e)==="[object Array]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function aLe(e){return Bw(e)==="[object Date]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function the(e){return Bw(e)==="[object RegExp]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function lLe(e){return Bw(e)==="[object Error]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function cLe(e){return Bw(e)==="[object String]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function uLe(e){return Bw(e)==="[object Number]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function dLe(e){return Bw(e)==="[object Boolean]"&&(!Ud||!(typeof e=="object"&&Ud in e))}function nhe(e){if(iO)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!IZ)return!1;try{return IZ.call(e),!0}catch(n){}return!1}function fLe(e){if(!e||typeof e!="object"||!$Z)return!1;try{return $Z.call(e),!0}catch(n){}return!1}var pLe=Object.prototype.hasOwnProperty||function(e){return e in this};function Mw(e,n){return pLe.call(e,n)}function Bw(e){return eLe.call(e)}function mLe(e){if(e.name)return e.name;var n=nLe.call(tLe.call(e),/^function\s*([\w$]+)/);return n?n[1]:null}function ohe(e,n){if(e.indexOf)return e.indexOf(n);for(var s=0,a=e.length;s<a;s++)if(e[s]===n)return s;return-1}function hLe(e){if(!p5||!e||typeof e!="object")return!1;try{p5.call(e);try{m5.call(e)}catch(n){return!0}return e instanceof Map}catch(n){}return!1}function gLe(e){if(!y3||!e||typeof e!="object")return!1;try{y3.call(e,y3);try{v3.call(e,v3)}catch(n){return!0}return e instanceof WeakMap}catch(n){}return!1}function bLe(e){if(!Wme||!e||typeof e!="object")return!1;try{return Wme.call(e),!0}catch(n){}return!1}function yLe(e){if(!m5||!e||typeof e!="object")return!1;try{m5.call(e);try{p5.call(e)}catch(n){return!0}return e instanceof Set}catch(n){}return!1}function vLe(e){if(!v3||!e||typeof e!="object")return!1;try{v3.call(e,v3);try{y3.call(e,y3)}catch(n){return!0}return e instanceof WeakSet}catch(n){}return!1}function wLe(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function she(e,n){if(e.length>n.maxStringLength){var s=e.length-n.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return she(RZ.call(e,0,n.maxStringLength),n)+a}var c=Aw.call(Aw.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,CLe);return ehe(c,"single",n)}function CLe(e){var n=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return s?"\\"+s:"\\x"+(n<16?"0":"")+oLe.call(n.toString(16))}function w3(e){return"Object("+e+")"}function zZ(e){return e+" { ? }"}function rhe(e,n,s,a){var c=a?VZ(s,a):uy.call(s,", ");return e+" ("+n+") {"+c+"}"}function SLe(e){for(var n=0;n<e.length;n++)if(ohe(e[n],`
|
|
40
40
|
`)>=0)return!1;return!0}function xLe(e,n){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=uy.call(Array(e.indent+1)," ");else return null;return{base:s,prev:uy.call(Array(n+1),s)}}function VZ(e,n){if(e.length===0)return"";var s=`
|
|
41
41
|
`+n.prev+n.base;return s+uy.call(e,","+s)+`
|
|
42
|
-
`+n.prev}function h5(e,n){var s=FZ(e),a=[];if(s){a.length=e.length;for(var c=0;c<e.length;c++)a[c]=Mw(e,c)?n(e[c],e):""}var f=typeof PZ=="function"?PZ(e):[],p;if(iO){p={};for(var g=0;g<f.length;g++)p["$"+f[g]]=f[g]}for(var v in e)Mw(e,v)&&(s&&String(Number(v))===v&&v<e.length||iO&&p["$"+v]instanceof Symbol||(Kme.call(/[^\w$]/,v)?a.push(n(v,e)+": "+n(e[v],e)):a.push(v+": "+n(e[v],e))));if(typeof PZ=="function")for(var C=0;C<f.length;C++)Gme.call(e,f[C])&&a.push("["+n(f[C])+"]: "+n(e[f[C]],e));return a}var HZ=_Z,aO=ZIe,kLe=rLe,ELe=HZ("%TypeError%"),g5=HZ("%WeakMap%",!0),b5=HZ("%Map%",!0),TLe=aO("WeakMap.prototype.get",!0),OLe=aO("WeakMap.prototype.set",!0),NLe=aO("WeakMap.prototype.has",!0),_Le=aO("Map.prototype.get",!0),ALe=aO("Map.prototype.set",!0),MLe=aO("Map.prototype.has",!0),UZ=function(e,n){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===n)return s.next=a.next,a.next=e.next,e.next=a,a},BLe=function(e,n){var s=UZ(e,n);return s&&s.value},DLe=function(e,n,s){var a=UZ(e,n);a?a.value=s:e.next={key:n,next:e.next,value:s}},RLe=function(e,n){return!!UZ(e,n)},$Le=function(){var n,s,a,c={assert:function(f){if(!c.has(f))throw new ELe("Side channel does not contain "+kLe(f))},get:function(f){if(g5&&f&&(typeof f=="object"||typeof f=="function")){if(n)return TLe(n,f)}else if(b5){if(s)return _Le(s,f)}else if(a)return BLe(a,f)},has:function(f){if(g5&&f&&(typeof f=="object"||typeof f=="function")){if(n)return NLe(n,f)}else if(b5){if(s)return MLe(s,f)}else if(a)return RLe(a,f);return!1},set:function(f,p){g5&&f&&(typeof f=="object"||typeof f=="function")?(n||(n=new g5),OLe(n,f,p)):b5?(s||(s=new b5),ALe(s,f,p)):(a||(a={key:{},next:null}),DLe(a,f,p))}};return c},PLe=String.prototype.replace,ILe=/%20/g,WZ={RFC1738:"RFC1738",RFC3986:"RFC3986"},jZ={default:WZ.RFC3986,formatters:{RFC1738:function(e){return PLe.call(e,ILe,"+")},RFC3986:function(e){return String(e)}},RFC1738:WZ.RFC1738,RFC3986:WZ.RFC3986},LLe=jZ,KZ=Object.prototype.hasOwnProperty,z2=Array.isArray,dy=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),FLe=function(n){for(;n.length>1;){var s=n.pop(),a=s.obj[s.prop];if(z2(a)){for(var c=[],f=0;f<a.length;++f)typeof a[f]!="undefined"&&c.push(a[f]);s.obj[s.prop]=c}}},ihe=function(n,s){for(var a=s&&s.plainObjects?Object.create(null):{},c=0;c<n.length;++c)typeof n[c]!="undefined"&&(a[c]=n[c]);return a},zLe=function e(n,s,a){if(!s)return n;if(typeof s!="object"){if(z2(n))n.push(s);else if(n&&typeof n=="object")(a&&(a.plainObjects||a.allowPrototypes)||!KZ.call(Object.prototype,s))&&(n[s]=!0);else return[n,s];return n}if(!n||typeof n!="object")return[n].concat(s);var c=n;return z2(n)&&!z2(s)&&(c=ihe(n,a)),z2(n)&&z2(s)?(s.forEach(function(f,p){if(KZ.call(n,p)){var g=n[p];g&&typeof g=="object"&&f&&typeof f=="object"?n[p]=e(g,f,a):n.push(f)}else n[p]=f}),n):Object.keys(s).reduce(function(f,p){var g=s[p];return KZ.call(f,p)?f[p]=e(f[p],g,a):f[p]=g,f},c)},VLe=function(n,s){return Object.keys(s).reduce(function(a,c){return a[c]=s[c],a},n)},HLe=function(e,n,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(c){return a}},ULe=function(n,s,a,c,f){if(n.length===0)return n;var p=n;if(typeof n=="symbol"?p=Symbol.prototype.toString.call(n):typeof n!="string"&&(p=String(n)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(E){return"%26%23"+parseInt(E.slice(2),16)+"%3B"});for(var g="",v=0;v<p.length;++v){var C=p.charCodeAt(v);if(C===45||C===46||C===95||C===126||C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122||f===LLe.RFC1738&&(C===40||C===41)){g+=p.charAt(v);continue}if(C<128){g=g+dy[C];continue}if(C<2048){g=g+(dy[192|C>>6]+dy[128|C&63]);continue}if(C<55296||C>=57344){g=g+(dy[224|C>>12]+dy[128|C>>6&63]+dy[128|C&63]);continue}v+=1,C=65536+((C&1023)<<10|p.charCodeAt(v)&1023),g+=dy[240|C>>18]+dy[128|C>>12&63]+dy[128|C>>6&63]+dy[128|C&63]}return g},WLe=function(n){for(var s=[{obj:{o:n},prop:"o"}],a=[],c=0;c<s.length;++c)for(var f=s[c],p=f.obj[f.prop],g=Object.keys(p),v=0;v<g.length;++v){var C=g[v],E=p[C];typeof E=="object"&&E!==null&&a.indexOf(E)===-1&&(s.push({obj:p,prop:C}),a.push(E))}return FLe(s),n},jLe=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},KLe=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},qLe=function(n,s){return[].concat(n,s)},ZLe=function(n,s){if(z2(n)){for(var a=[],c=0;c<n.length;c+=1)a.push(s(n[c]));return a}return s(n)},ahe={arrayToObject:ihe,assign:VLe,combine:qLe,compact:WLe,decode:HLe,encode:ULe,isBuffer:KLe,isRegExp:jLe,maybeMap:ZLe,merge:zLe},lhe=$Le,y5=ahe,C3=jZ,GLe=Object.prototype.hasOwnProperty,che={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,s){return n+"["+s+"]"},repeat:function(n){return n}},c0=Array.isArray,YLe=Array.prototype.push,uhe=function(e,n){YLe.apply(e,c0(n)?n:[n])},XLe=Date.prototype.toISOString,dhe=C3.default,Wd={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:y5.encode,encodeValuesOnly:!1,format:dhe,formatter:C3.formatters[dhe],indices:!1,serializeDate:function(n){return XLe.call(n)},skipNulls:!1,strictNullHandling:!1},JLe=function(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="symbol"||typeof n=="bigint"},qZ={},QLe=function e(n,s,a,c,f,p,g,v,C,E,O,_,D,M,R,I){for(var V=n,J=I,H=0,U=!1;(J=J.get(qZ))!==void 0&&!U;){var le=J.get(n);if(H+=1,typeof le!="undefined"){if(le===H)throw new RangeError("Cyclic object value");U=!0}typeof J.get(qZ)=="undefined"&&(H=0)}if(typeof v=="function"?V=v(s,V):V instanceof Date?V=O(V):a==="comma"&&c0(V)&&(V=y5.maybeMap(V,function(q){return q instanceof Date?O(q):q})),V===null){if(f)return g&&!M?g(s,Wd.encoder,R,"key",_):s;V=""}if(JLe(V)||y5.isBuffer(V)){if(g){var ne=M?s:g(s,Wd.encoder,R,"key",_);return[D(ne)+"="+D(g(V,Wd.encoder,R,"value",_))]}return[D(s)+"="+D(String(V))]}var K=[];if(typeof V=="undefined")return K;var ce;if(a==="comma"&&c0(V))M&&g&&(V=y5.maybeMap(V,g)),ce=[{value:V.length>0?V.join(",")||null:void 0}];else if(c0(v))ce=v;else{var ve=Object.keys(V);ce=C?ve.sort(C):ve}for(var Ce=c&&c0(V)&&V.length===1?s+"[]":s,ke=0;ke<ce.length;++ke){var ue=ce[ke],$e=typeof ue=="object"&&typeof ue.value!="undefined"?ue.value:V[ue];if(!(p&&$e===null)){var tt=c0(V)?typeof a=="function"?a(Ce,ue):Ce:Ce+(E?"."+ue:"["+ue+"]");I.set(n,H);var it=lhe();it.set(qZ,I),uhe(K,e($e,tt,a,c,f,p,a==="comma"&&M&&c0(V)?null:g,v,C,E,O,_,D,M,R,it))}}return K},eFe=function(n){if(!n)return Wd;if(n.encoder!==null&&typeof n.encoder!="undefined"&&typeof n.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=n.charset||Wd.charset;if(typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=C3.default;if(typeof n.format!="undefined"){if(!GLe.call(C3.formatters,n.format))throw new TypeError("Unknown format option provided.");a=n.format}var c=C3.formatters[a],f=Wd.filter;return(typeof n.filter=="function"||c0(n.filter))&&(f=n.filter),{addQueryPrefix:typeof n.addQueryPrefix=="boolean"?n.addQueryPrefix:Wd.addQueryPrefix,allowDots:typeof n.allowDots=="undefined"?Wd.allowDots:!!n.allowDots,charset:s,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Wd.charsetSentinel,delimiter:typeof n.delimiter=="undefined"?Wd.delimiter:n.delimiter,encode:typeof n.encode=="boolean"?n.encode:Wd.encode,encoder:typeof n.encoder=="function"?n.encoder:Wd.encoder,encodeValuesOnly:typeof n.encodeValuesOnly=="boolean"?n.encodeValuesOnly:Wd.encodeValuesOnly,filter:f,format:a,formatter:c,serializeDate:typeof n.serializeDate=="function"?n.serializeDate:Wd.serializeDate,skipNulls:typeof n.skipNulls=="boolean"?n.skipNulls:Wd.skipNulls,sort:typeof n.sort=="function"?n.sort:null,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Wd.strictNullHandling}},tFe=function(e,n){var s=e,a=eFe(n),c,f;typeof a.filter=="function"?(f=a.filter,s=f("",s)):c0(a.filter)&&(f=a.filter,c=f);var p=[];if(typeof s!="object"||s===null)return"";var g;n&&n.arrayFormat in che?g=n.arrayFormat:n&&"indices"in n?g=n.indices?"indices":"repeat":g="indices";var v=che[g];if(n&&"commaRoundTrip"in n&&typeof n.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var C=v==="comma"&&n&&n.commaRoundTrip;c||(c=Object.keys(s)),a.sort&&c.sort(a.sort);for(var E=lhe(),O=0;O<c.length;++O){var _=c[O];a.skipNulls&&s[_]===null||uhe(p,QLe(s[_],_,v,C,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,E))}var D=p.join(a.delimiter),M=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?M+="utf8=%26%2310003%3B&":M+="utf8=%E2%9C%93&"),D.length>0?M+D:""},lO=ahe,ZZ=Object.prototype.hasOwnProperty,nFe=Array.isArray,Lu={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:lO.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oFe=function(e){return e.replace(/&#(\d+);/g,function(n,s){return String.fromCharCode(parseInt(s,10))})},fhe=function(e,n){return e&&typeof e=="string"&&n.comma&&e.indexOf(",")>-1?e.split(","):e},sFe="utf8=%26%2310003%3B",rFe="utf8=%E2%9C%93",iFe=function(n,s){var a={},c=s.ignoreQueryPrefix?n.replace(/^\?/,""):n,f=s.parameterLimit===1/0?void 0:s.parameterLimit,p=c.split(s.delimiter,f),g=-1,v,C=s.charset;if(s.charsetSentinel)for(v=0;v<p.length;++v)p[v].indexOf("utf8=")===0&&(p[v]===rFe?C="utf-8":p[v]===sFe&&(C="iso-8859-1"),g=v,v=p.length);for(v=0;v<p.length;++v)if(v!==g){var E=p[v],O=E.indexOf("]="),_=O===-1?E.indexOf("="):O+1,D,M;_===-1?(D=s.decoder(E,Lu.decoder,C,"key"),M=s.strictNullHandling?null:""):(D=s.decoder(E.slice(0,_),Lu.decoder,C,"key"),M=lO.maybeMap(fhe(E.slice(_+1),s),function(R){return s.decoder(R,Lu.decoder,C,"value")})),M&&s.interpretNumericEntities&&C==="iso-8859-1"&&(M=oFe(M)),E.indexOf("[]=")>-1&&(M=nFe(M)?[M]:M),ZZ.call(a,D)?a[D]=lO.combine(a[D],M):a[D]=M}return a},aFe=function(e,n,s,a){for(var c=a?n:fhe(n,s),f=e.length-1;f>=0;--f){var p,g=e[f];if(g==="[]"&&s.parseArrays)p=[].concat(c);else{p=s.plainObjects?Object.create(null):{};var v=g.charAt(0)==="["&&g.charAt(g.length-1)==="]"?g.slice(1,-1):g,C=parseInt(v,10);!s.parseArrays&&v===""?p={0:c}:!isNaN(C)&&g!==v&&String(C)===v&&C>=0&&s.parseArrays&&C<=s.arrayLimit?(p=[],p[C]=c):v!=="__proto__"&&(p[v]=c)}c=p}return c},lFe=function(n,s,a,c){if(n){var f=a.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,p=/(\[[^[\]]*])/,g=/(\[[^[\]]*])/g,v=a.depth>0&&p.exec(f),C=v?f.slice(0,v.index):f,E=[];if(C){if(!a.plainObjects&&ZZ.call(Object.prototype,C)&&!a.allowPrototypes)return;E.push(C)}for(var O=0;a.depth>0&&(v=g.exec(f))!==null&&O<a.depth;){if(O+=1,!a.plainObjects&&ZZ.call(Object.prototype,v[1].slice(1,-1))&&!a.allowPrototypes)return;E.push(v[1])}return v&&E.push("["+f.slice(v.index)+"]"),aFe(E,s,a,c)}},cFe=function(n){if(!n)return Lu;if(n.decoder!==null&&n.decoder!==void 0&&typeof n.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof n.charset=="undefined"?Lu.charset:n.charset;return{allowDots:typeof n.allowDots=="undefined"?Lu.allowDots:!!n.allowDots,allowPrototypes:typeof n.allowPrototypes=="boolean"?n.allowPrototypes:Lu.allowPrototypes,allowSparse:typeof n.allowSparse=="boolean"?n.allowSparse:Lu.allowSparse,arrayLimit:typeof n.arrayLimit=="number"?n.arrayLimit:Lu.arrayLimit,charset:s,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Lu.charsetSentinel,comma:typeof n.comma=="boolean"?n.comma:Lu.comma,decoder:typeof n.decoder=="function"?n.decoder:Lu.decoder,delimiter:typeof n.delimiter=="string"||lO.isRegExp(n.delimiter)?n.delimiter:Lu.delimiter,depth:typeof n.depth=="number"||n.depth===!1?+n.depth:Lu.depth,ignoreQueryPrefix:n.ignoreQueryPrefix===!0,interpretNumericEntities:typeof n.interpretNumericEntities=="boolean"?n.interpretNumericEntities:Lu.interpretNumericEntities,parameterLimit:typeof n.parameterLimit=="number"?n.parameterLimit:Lu.parameterLimit,parseArrays:n.parseArrays!==!1,plainObjects:typeof n.plainObjects=="boolean"?n.plainObjects:Lu.plainObjects,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Lu.strictNullHandling}},uFe=function(e,n){var s=cFe(n);if(e===""||e===null||typeof e=="undefined")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?iFe(e,s):e,c=s.plainObjects?Object.create(null):{},f=Object.keys(a),p=0;p<f.length;++p){var g=f[p],v=lFe(g,a[g],s,typeof e=="string");c=lO.merge(c,v,s)}return s.allowSparse===!0?c:lO.compact(c)},dFe=tFe,fFe=uFe,pFe=jZ,mFe={formats:pFe,parse:fFe,stringify:dFe};const phe=CAe(mFe);let Dw=window.sessionStorage,Op={get:function(e){if(!Dw){this.noSupport();return}try{let n=Dw.getItem(e);return n==null?null:JSON.parse(n)}catch(n){return console.error(n),null}},set:function(e,n){if(!Dw){this.noSupport();return}if(!(e==null||n==null))try{Dw.setItem(e,JSON.stringify(n)),window.localStorage.setItem(e,JSON.stringify(n))}catch(s){console.error(s)}},remove:function(e){if(!Dw){this.noSupport();return}Dw.removeItem(e),window.localStorage.removeItem(e)},clearAll:function(){if(!Dw){this.noSupport();return}Dw.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};const mhe=1e3*60*60*2;function hFe(e,n=!0,s){return ur(this,null,function*(){let{url:a,param:c,option:f}=s;if(e.name=="AxiosError"&&(e.code=="ERR_BAD_REQUEST"||e.code=="ERR_BAD_RESPONSE"))if(e.response){let{data:p,status:g}=e.response;if(g==401)if(f.withRefresh&&f.appendToken){f=We(te({},f),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{let v=sessionStorage.getItem("lastest_success_ajax_time");if(v&&new Date().getTime()-(v-0)>mhe)throw new Error(`未操作时间超过${mhe}`);return yield gFe(a,f),yield k3(a,c,f)}catch(v){GZ(f)}}else GZ(f);else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:p.message||p.msg,customClass:"ajax-tip"})}}else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:e.message||"服务器发生错误",customClass:"ajax-tip"})}else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:e.message,customClass:"ajax-tip"})}})}function gFe(e,n){return ur(this,null,function*(){let s="",a=Op.get("logininfo");if(a)s=a.refreshUrl;else throw new Error("未发现logininfo");s||(s=new URL(e).origin+"/system/login/refReshTokenWeb");let c=a.refresh_token;if(!c)throw new Error("logininfo中未发现refresh_token");let f=yield bFe(s,c),{data:p}=f;if(p.code=="200"){let g=p.val;a.refresh_token=g.refresh_token,a.token="bearer "+g.access_token,Op.set("logininfo",a)}else throw new Error("刷新token失败")})}let v5=!1,hhe=[],ghe=[];function bFe(e,n){return new Promise((s,a)=>{hhe.push(s),ghe.push(a),v5||(v5=!0,k3(e,{refReshToken:n},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}).then(c=>{hhe.forEach(f=>{f(c)}),v5=!1}).catch(c=>{ghe.forEach(f=>{f(c)}),v5=!1}))})}function GZ(e){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let n=JSON.parse("/login.html"),s=window.localStorage.getItem("loginPage");if(s)try{n=s.replace(/^['"]|['"]$/g,"")}catch(a){n="/login.html"}e!=null&&e.loginPage&&(n=e.loginPage.replace(/^['"]|['"]$/g,"")),location.href=n}const GQe="",cO=(e,n)=>{const s=e.__vccOpts||e;for(const[a,c]of n)s[a]=c;return s},yFe={name:"SyncLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,height:this.size,width:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-syncStretchDelay",animationDuration:"0.6s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.07s"},spinnerDelay2:{animationDelay:"0.14s"},spinnerDelay3:{animationDelay:"0.21s"}}}},vFe={class:"v-spinner"};function wFe(e,n,s,a,c,f){return l.withDirectives((l.openBlock(),l.createElementBlock("div",vFe,[l.createElementVNode("div",{class:"v-sync v-sync1",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay1])},null,4),l.createElementVNode("div",{class:"v-sync v-sync2",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay2])},null,4),l.createElementVNode("div",{class:"v-sync v-sync3",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay3])},null,4)],512)),[[l.vShow,s.loading]])}const CFe=cO(yFe,[["render",wFe]]),SFe={class:"zy-loading-con"},xFe=l.defineComponent({name:"LoadingPlay"}),kFe=l.defineComponent(We(te({},xFe),{props:{cont:{type:l.ref},options:{type:Object}},setup(e){const{cont:n,options:s}=e,a=l.computed(()=>({left:s.left+"px",top:s.top+"px",right:s.right+"px",bottom:s.bottom+"px"})),c=l.computed(()=>n&&n.value?["show"]:null);return(f,p)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["zy-loading-wrapper",c.value]),style:l.normalizeStyle(a.value)},[l.createElementVNode("div",SFe,[l.createVNode(CFe,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),bhe=1440,YZ=216,EFe=56,w5={left:0,top:0,bottom:0,right:0};class TFe{constructor(){this.loadingCont=l.ref(!1),this.options=l.reactive(te({},w5)),this.createLoadingApp()}createLoadingApp(){let n=document.createElement("div");document.body.appendChild(n),this.loadingApp=l.createApp({name:"LoadingApp",render:()=>l.h(kFe,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(n)}ShowLoading(n){n=n?te(te({},w5),n):te({},w5),n.LoadingType=="business"?(n=te(te({},n),OFe()),delete n.LoadingType):n.LoadingType=="forceFullscreen"&&(n=te({},w5),delete n.LoadingType),c3(this.options,n),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function OFe(){let e=document.documentElement.clientWidth||document.body.clientWidth,n=0,s=0,a=0,c=0,f=document.querySelector(".zy-applayout-base");return f&&(n=EFe),e<=1480?f&&(s=YZ+12):f&&(f.classList.contains("fullscreen")?s=YZ+24:(s=Math.round((e-bhe)/2)+YZ,a=Math.round((e-bhe)/2))),{left:s,top:n,bottom:c,right:a}}const C5=new TFe;function yhe(){let e=Op.get("logininfo");if(!e)throw new Error("logininfo未发现");return e.token}function NFe(e){let n=_Fe(),s=n.checkApi(e);return s&&n.storeApi(e),s}function _Fe(){return S3.instance||(S3.instance=new S3),S3.instance}class S3{constructor(){this.apiList=[]}checkApi(n){let s=this.apiList.findIndex(f=>f.api==n);if(s<0)return!0;let a=this.apiList[s];return new Date().getTime()-a.time<=1e3?!1:(this.apiList.splice(s,1),!0)}storeApi(n){let s=this.apiList.findIndex(a=>a.api==n);s<0?this.apiList.push({api:n,time:new Date().getTime()}):this.apiList[s].time=new Date().getTime()}}S3.instance=null;const x3=qg("methods.Ajax"),S5={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:x3("successTipText"),confirmMsg:"",antiShake:!1,withRefresh:!0,responseType:"json"},k3=(e,n,s)=>ur(this,null,function*(){const a=e;s=s?te(te({},S5),s):te({},S5),s.confirmMsg&&(yield Qpe.confirm(s.confirmMsg,x3("confirmMsgText"),{confirmButtonText:x3("confirmButtonText"),cancelButtonText:x3("cancelButtonText"),type:"warning"})),s.method=s.method.toLowerCase();let c=n;if((s.method=="get"||s.method=="delete")&&n&&QT(n)&&Object.keys(n).length>0&&(e=e+(e.indexOf("?")>-1?"&"+phe.stringify(n):"?"+phe.stringify(n))),s.antiShake&&!NFe(e))throw console.warn(`${e}在1s内连续发起请求,判定为抖动`),new Error(x3("shakeText"));(s.method=="post"||s.method=="put")&&s.fd&&(c=ome(n));let f,p=s.fd?"multipart/form-data":"application/json;charset=UTF-8";if(s.appendToken){let g;try{g=yhe()}catch(v){if(s.handleError){GZ(s);return}else console.error(v)}f=kZ.create({headers:{Authorization:g,"Content-Type":p,"Accept-Language":jg()},signal:s.signal?s.signal.signal:null})}else f=kZ.create({headers:{"Content-Type":p,"Accept-Language":jg()},signal:s.signal?s.signal.signal:null});try{if(s.loading){let v=null;s.fullscreen||(v={LoadingType:"business"}),s.forceFullscreen&&(v={LoadingType:"forceFullscreen"}),C5.ShowLoading(v)}let g=yield f.request({method:s.method,url:e,withCredentials:!1,data:c,responseType:s.responseType});return s.loading&&C5.HidenLoading(),g}catch(g){if(s.loading&&C5.HidenLoading(),s.handleError||s.withRefresh){let v={url:a,param:n,option:s};if(g.name&&g.name=="CanceledError")return g;let C=yield hFe(g,s.errorMsg,v);return C||g}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(g),g}}),ld=(e,n,s)=>ur(this,null,function*(){var p;const a=((p=window.HS_GLOBAL_CONFIG)==null?void 0:p.Ajax)||{};!!(s!=null&&s.successTip)&&(s.successMsg=!0),s=s?te(te(te({},S5),a),s):te(te({},a),S5),s.method=s.method.toLowerCase();let f=!1;s.hasOwnProperty("pageInfo")&&s.pageInfo!=null&&(f=!0,s.hasOwnProperty("page")&&!s.page&&(f=!1),n=te(te({},l.unref(s.pageInfo)),n));try{const g=yield k3(e,n,s);if(g instanceof CIe)throw g;let v=g.data;if(v.code!=200){if(s.errorMsg&&Dl({type:"error",grouping:!0,message:v.msg,customClass:"ajax-tip"}),v.name&&v.name=="CanceledError")return console.warn("请求被取消"),{data:null};throw new Error(`请求:${e}出现错误,错误码:${v.code},错误信息:${v.msg}`)}else{s.successMsg&&Dl({type:"success",grouping:!0,message:s.successTip,customClass:"ajax-tip"});let C=v.val||v.list,E=l.unref(s.pageInfo),O={total:0,pageSize:0,pageIndex:0};return f&&s.hasOwnProperty("pageInfo")&&(O.pageIndex=E.pageIndex,O.pageSize=E.pageSize,v.hasOwnProperty("pageInfo")?O=te({},v.pageInfo):O.total=v.total||0,E.total=O.total),sessionStorage.setItem("lastest_success_ajax_time",new Date().getTime()+""),{data:C,code:v.code,msg:v.msg,pageInfo:O}}}catch(g){throw console.warn(g),g}}),x5=(e="./login.html")=>{let n=window.localStorage.getItem("loginPage");if(n){try{n=JSON.parse(n)}catch(s){console.warn(s)}e=n}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=e},vhe=(e="./index.html")=>{let n=window.localStorage.getItem("homePage");if(n){try{n=JSON.parse(n)}catch(s){console.warn(s)}e=n}window.location.href=e};/*!
|
|
42
|
+
`+n.prev}function h5(e,n){var s=FZ(e),a=[];if(s){a.length=e.length;for(var c=0;c<e.length;c++)a[c]=Mw(e,c)?n(e[c],e):""}var f=typeof PZ=="function"?PZ(e):[],p;if(iO){p={};for(var g=0;g<f.length;g++)p["$"+f[g]]=f[g]}for(var v in e)Mw(e,v)&&(s&&String(Number(v))===v&&v<e.length||iO&&p["$"+v]instanceof Symbol||(Kme.call(/[^\w$]/,v)?a.push(n(v,e)+": "+n(e[v],e)):a.push(v+": "+n(e[v],e))));if(typeof PZ=="function")for(var C=0;C<f.length;C++)Gme.call(e,f[C])&&a.push("["+n(f[C])+"]: "+n(e[f[C]],e));return a}var HZ=_Z,aO=ZIe,kLe=rLe,ELe=HZ("%TypeError%"),g5=HZ("%WeakMap%",!0),b5=HZ("%Map%",!0),TLe=aO("WeakMap.prototype.get",!0),OLe=aO("WeakMap.prototype.set",!0),NLe=aO("WeakMap.prototype.has",!0),_Le=aO("Map.prototype.get",!0),ALe=aO("Map.prototype.set",!0),MLe=aO("Map.prototype.has",!0),UZ=function(e,n){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===n)return s.next=a.next,a.next=e.next,e.next=a,a},BLe=function(e,n){var s=UZ(e,n);return s&&s.value},DLe=function(e,n,s){var a=UZ(e,n);a?a.value=s:e.next={key:n,next:e.next,value:s}},RLe=function(e,n){return!!UZ(e,n)},$Le=function(){var n,s,a,c={assert:function(f){if(!c.has(f))throw new ELe("Side channel does not contain "+kLe(f))},get:function(f){if(g5&&f&&(typeof f=="object"||typeof f=="function")){if(n)return TLe(n,f)}else if(b5){if(s)return _Le(s,f)}else if(a)return BLe(a,f)},has:function(f){if(g5&&f&&(typeof f=="object"||typeof f=="function")){if(n)return NLe(n,f)}else if(b5){if(s)return MLe(s,f)}else if(a)return RLe(a,f);return!1},set:function(f,p){g5&&f&&(typeof f=="object"||typeof f=="function")?(n||(n=new g5),OLe(n,f,p)):b5?(s||(s=new b5),ALe(s,f,p)):(a||(a={key:{},next:null}),DLe(a,f,p))}};return c},PLe=String.prototype.replace,ILe=/%20/g,WZ={RFC1738:"RFC1738",RFC3986:"RFC3986"},jZ={default:WZ.RFC3986,formatters:{RFC1738:function(e){return PLe.call(e,ILe,"+")},RFC3986:function(e){return String(e)}},RFC1738:WZ.RFC1738,RFC3986:WZ.RFC3986},LLe=jZ,KZ=Object.prototype.hasOwnProperty,z2=Array.isArray,dy=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),FLe=function(n){for(;n.length>1;){var s=n.pop(),a=s.obj[s.prop];if(z2(a)){for(var c=[],f=0;f<a.length;++f)typeof a[f]!="undefined"&&c.push(a[f]);s.obj[s.prop]=c}}},ihe=function(n,s){for(var a=s&&s.plainObjects?Object.create(null):{},c=0;c<n.length;++c)typeof n[c]!="undefined"&&(a[c]=n[c]);return a},zLe=function e(n,s,a){if(!s)return n;if(typeof s!="object"){if(z2(n))n.push(s);else if(n&&typeof n=="object")(a&&(a.plainObjects||a.allowPrototypes)||!KZ.call(Object.prototype,s))&&(n[s]=!0);else return[n,s];return n}if(!n||typeof n!="object")return[n].concat(s);var c=n;return z2(n)&&!z2(s)&&(c=ihe(n,a)),z2(n)&&z2(s)?(s.forEach(function(f,p){if(KZ.call(n,p)){var g=n[p];g&&typeof g=="object"&&f&&typeof f=="object"?n[p]=e(g,f,a):n.push(f)}else n[p]=f}),n):Object.keys(s).reduce(function(f,p){var g=s[p];return KZ.call(f,p)?f[p]=e(f[p],g,a):f[p]=g,f},c)},VLe=function(n,s){return Object.keys(s).reduce(function(a,c){return a[c]=s[c],a},n)},HLe=function(e,n,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(c){return a}},ULe=function(n,s,a,c,f){if(n.length===0)return n;var p=n;if(typeof n=="symbol"?p=Symbol.prototype.toString.call(n):typeof n!="string"&&(p=String(n)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(E){return"%26%23"+parseInt(E.slice(2),16)+"%3B"});for(var g="",v=0;v<p.length;++v){var C=p.charCodeAt(v);if(C===45||C===46||C===95||C===126||C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122||f===LLe.RFC1738&&(C===40||C===41)){g+=p.charAt(v);continue}if(C<128){g=g+dy[C];continue}if(C<2048){g=g+(dy[192|C>>6]+dy[128|C&63]);continue}if(C<55296||C>=57344){g=g+(dy[224|C>>12]+dy[128|C>>6&63]+dy[128|C&63]);continue}v+=1,C=65536+((C&1023)<<10|p.charCodeAt(v)&1023),g+=dy[240|C>>18]+dy[128|C>>12&63]+dy[128|C>>6&63]+dy[128|C&63]}return g},WLe=function(n){for(var s=[{obj:{o:n},prop:"o"}],a=[],c=0;c<s.length;++c)for(var f=s[c],p=f.obj[f.prop],g=Object.keys(p),v=0;v<g.length;++v){var C=g[v],E=p[C];typeof E=="object"&&E!==null&&a.indexOf(E)===-1&&(s.push({obj:p,prop:C}),a.push(E))}return FLe(s),n},jLe=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},KLe=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},qLe=function(n,s){return[].concat(n,s)},ZLe=function(n,s){if(z2(n)){for(var a=[],c=0;c<n.length;c+=1)a.push(s(n[c]));return a}return s(n)},ahe={arrayToObject:ihe,assign:VLe,combine:qLe,compact:WLe,decode:HLe,encode:ULe,isBuffer:KLe,isRegExp:jLe,maybeMap:ZLe,merge:zLe},lhe=$Le,y5=ahe,C3=jZ,GLe=Object.prototype.hasOwnProperty,che={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,s){return n+"["+s+"]"},repeat:function(n){return n}},c0=Array.isArray,YLe=Array.prototype.push,uhe=function(e,n){YLe.apply(e,c0(n)?n:[n])},XLe=Date.prototype.toISOString,dhe=C3.default,Wd={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:y5.encode,encodeValuesOnly:!1,format:dhe,formatter:C3.formatters[dhe],indices:!1,serializeDate:function(n){return XLe.call(n)},skipNulls:!1,strictNullHandling:!1},JLe=function(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="symbol"||typeof n=="bigint"},qZ={},QLe=function e(n,s,a,c,f,p,g,v,C,E,O,_,D,M,R,I){for(var V=n,J=I,H=0,U=!1;(J=J.get(qZ))!==void 0&&!U;){var le=J.get(n);if(H+=1,typeof le!="undefined"){if(le===H)throw new RangeError("Cyclic object value");U=!0}typeof J.get(qZ)=="undefined"&&(H=0)}if(typeof v=="function"?V=v(s,V):V instanceof Date?V=O(V):a==="comma"&&c0(V)&&(V=y5.maybeMap(V,function(q){return q instanceof Date?O(q):q})),V===null){if(f)return g&&!M?g(s,Wd.encoder,R,"key",_):s;V=""}if(JLe(V)||y5.isBuffer(V)){if(g){var ne=M?s:g(s,Wd.encoder,R,"key",_);return[D(ne)+"="+D(g(V,Wd.encoder,R,"value",_))]}return[D(s)+"="+D(String(V))]}var K=[];if(typeof V=="undefined")return K;var ce;if(a==="comma"&&c0(V))M&&g&&(V=y5.maybeMap(V,g)),ce=[{value:V.length>0?V.join(",")||null:void 0}];else if(c0(v))ce=v;else{var ve=Object.keys(V);ce=C?ve.sort(C):ve}for(var Ce=c&&c0(V)&&V.length===1?s+"[]":s,ke=0;ke<ce.length;++ke){var ue=ce[ke],$e=typeof ue=="object"&&typeof ue.value!="undefined"?ue.value:V[ue];if(!(p&&$e===null)){var tt=c0(V)?typeof a=="function"?a(Ce,ue):Ce:Ce+(E?"."+ue:"["+ue+"]");I.set(n,H);var it=lhe();it.set(qZ,I),uhe(K,e($e,tt,a,c,f,p,a==="comma"&&M&&c0(V)?null:g,v,C,E,O,_,D,M,R,it))}}return K},eFe=function(n){if(!n)return Wd;if(n.encoder!==null&&typeof n.encoder!="undefined"&&typeof n.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=n.charset||Wd.charset;if(typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=C3.default;if(typeof n.format!="undefined"){if(!GLe.call(C3.formatters,n.format))throw new TypeError("Unknown format option provided.");a=n.format}var c=C3.formatters[a],f=Wd.filter;return(typeof n.filter=="function"||c0(n.filter))&&(f=n.filter),{addQueryPrefix:typeof n.addQueryPrefix=="boolean"?n.addQueryPrefix:Wd.addQueryPrefix,allowDots:typeof n.allowDots=="undefined"?Wd.allowDots:!!n.allowDots,charset:s,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Wd.charsetSentinel,delimiter:typeof n.delimiter=="undefined"?Wd.delimiter:n.delimiter,encode:typeof n.encode=="boolean"?n.encode:Wd.encode,encoder:typeof n.encoder=="function"?n.encoder:Wd.encoder,encodeValuesOnly:typeof n.encodeValuesOnly=="boolean"?n.encodeValuesOnly:Wd.encodeValuesOnly,filter:f,format:a,formatter:c,serializeDate:typeof n.serializeDate=="function"?n.serializeDate:Wd.serializeDate,skipNulls:typeof n.skipNulls=="boolean"?n.skipNulls:Wd.skipNulls,sort:typeof n.sort=="function"?n.sort:null,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Wd.strictNullHandling}},tFe=function(e,n){var s=e,a=eFe(n),c,f;typeof a.filter=="function"?(f=a.filter,s=f("",s)):c0(a.filter)&&(f=a.filter,c=f);var p=[];if(typeof s!="object"||s===null)return"";var g;n&&n.arrayFormat in che?g=n.arrayFormat:n&&"indices"in n?g=n.indices?"indices":"repeat":g="indices";var v=che[g];if(n&&"commaRoundTrip"in n&&typeof n.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var C=v==="comma"&&n&&n.commaRoundTrip;c||(c=Object.keys(s)),a.sort&&c.sort(a.sort);for(var E=lhe(),O=0;O<c.length;++O){var _=c[O];a.skipNulls&&s[_]===null||uhe(p,QLe(s[_],_,v,C,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,E))}var D=p.join(a.delimiter),M=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?M+="utf8=%26%2310003%3B&":M+="utf8=%E2%9C%93&"),D.length>0?M+D:""},lO=ahe,ZZ=Object.prototype.hasOwnProperty,nFe=Array.isArray,Lu={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:lO.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},oFe=function(e){return e.replace(/&#(\d+);/g,function(n,s){return String.fromCharCode(parseInt(s,10))})},fhe=function(e,n){return e&&typeof e=="string"&&n.comma&&e.indexOf(",")>-1?e.split(","):e},sFe="utf8=%26%2310003%3B",rFe="utf8=%E2%9C%93",iFe=function(n,s){var a={},c=s.ignoreQueryPrefix?n.replace(/^\?/,""):n,f=s.parameterLimit===1/0?void 0:s.parameterLimit,p=c.split(s.delimiter,f),g=-1,v,C=s.charset;if(s.charsetSentinel)for(v=0;v<p.length;++v)p[v].indexOf("utf8=")===0&&(p[v]===rFe?C="utf-8":p[v]===sFe&&(C="iso-8859-1"),g=v,v=p.length);for(v=0;v<p.length;++v)if(v!==g){var E=p[v],O=E.indexOf("]="),_=O===-1?E.indexOf("="):O+1,D,M;_===-1?(D=s.decoder(E,Lu.decoder,C,"key"),M=s.strictNullHandling?null:""):(D=s.decoder(E.slice(0,_),Lu.decoder,C,"key"),M=lO.maybeMap(fhe(E.slice(_+1),s),function(R){return s.decoder(R,Lu.decoder,C,"value")})),M&&s.interpretNumericEntities&&C==="iso-8859-1"&&(M=oFe(M)),E.indexOf("[]=")>-1&&(M=nFe(M)?[M]:M),ZZ.call(a,D)?a[D]=lO.combine(a[D],M):a[D]=M}return a},aFe=function(e,n,s,a){for(var c=a?n:fhe(n,s),f=e.length-1;f>=0;--f){var p,g=e[f];if(g==="[]"&&s.parseArrays)p=[].concat(c);else{p=s.plainObjects?Object.create(null):{};var v=g.charAt(0)==="["&&g.charAt(g.length-1)==="]"?g.slice(1,-1):g,C=parseInt(v,10);!s.parseArrays&&v===""?p={0:c}:!isNaN(C)&&g!==v&&String(C)===v&&C>=0&&s.parseArrays&&C<=s.arrayLimit?(p=[],p[C]=c):v!=="__proto__"&&(p[v]=c)}c=p}return c},lFe=function(n,s,a,c){if(n){var f=a.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,p=/(\[[^[\]]*])/,g=/(\[[^[\]]*])/g,v=a.depth>0&&p.exec(f),C=v?f.slice(0,v.index):f,E=[];if(C){if(!a.plainObjects&&ZZ.call(Object.prototype,C)&&!a.allowPrototypes)return;E.push(C)}for(var O=0;a.depth>0&&(v=g.exec(f))!==null&&O<a.depth;){if(O+=1,!a.plainObjects&&ZZ.call(Object.prototype,v[1].slice(1,-1))&&!a.allowPrototypes)return;E.push(v[1])}return v&&E.push("["+f.slice(v.index)+"]"),aFe(E,s,a,c)}},cFe=function(n){if(!n)return Lu;if(n.decoder!==null&&n.decoder!==void 0&&typeof n.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof n.charset!="undefined"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof n.charset=="undefined"?Lu.charset:n.charset;return{allowDots:typeof n.allowDots=="undefined"?Lu.allowDots:!!n.allowDots,allowPrototypes:typeof n.allowPrototypes=="boolean"?n.allowPrototypes:Lu.allowPrototypes,allowSparse:typeof n.allowSparse=="boolean"?n.allowSparse:Lu.allowSparse,arrayLimit:typeof n.arrayLimit=="number"?n.arrayLimit:Lu.arrayLimit,charset:s,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Lu.charsetSentinel,comma:typeof n.comma=="boolean"?n.comma:Lu.comma,decoder:typeof n.decoder=="function"?n.decoder:Lu.decoder,delimiter:typeof n.delimiter=="string"||lO.isRegExp(n.delimiter)?n.delimiter:Lu.delimiter,depth:typeof n.depth=="number"||n.depth===!1?+n.depth:Lu.depth,ignoreQueryPrefix:n.ignoreQueryPrefix===!0,interpretNumericEntities:typeof n.interpretNumericEntities=="boolean"?n.interpretNumericEntities:Lu.interpretNumericEntities,parameterLimit:typeof n.parameterLimit=="number"?n.parameterLimit:Lu.parameterLimit,parseArrays:n.parseArrays!==!1,plainObjects:typeof n.plainObjects=="boolean"?n.plainObjects:Lu.plainObjects,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Lu.strictNullHandling}},uFe=function(e,n){var s=cFe(n);if(e===""||e===null||typeof e=="undefined")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?iFe(e,s):e,c=s.plainObjects?Object.create(null):{},f=Object.keys(a),p=0;p<f.length;++p){var g=f[p],v=lFe(g,a[g],s,typeof e=="string");c=lO.merge(c,v,s)}return s.allowSparse===!0?c:lO.compact(c)},dFe=tFe,fFe=uFe,pFe=jZ,mFe={formats:pFe,parse:fFe,stringify:dFe};const phe=CAe(mFe);let Dw=window.sessionStorage,Op={get:function(e){if(!Dw){this.noSupport();return}try{let n=Dw.getItem(e);return n==null?null:JSON.parse(n)}catch(n){return console.error(n),null}},set:function(e,n){if(!Dw){this.noSupport();return}if(!(e==null||n==null))try{Dw.setItem(e,JSON.stringify(n)),window.localStorage.setItem(e,JSON.stringify(n))}catch(s){console.error(s)}},remove:function(e){if(!Dw){this.noSupport();return}Dw.removeItem(e),window.localStorage.removeItem(e)},clearAll:function(){if(!Dw){this.noSupport();return}Dw.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};const mhe=1e3*60*60*2;function hFe(e,n=!0,s){return ur(this,null,function*(){let{url:a,param:c,option:f}=s;if(e.name=="AxiosError"&&(e.code=="ERR_BAD_REQUEST"||e.code=="ERR_BAD_RESPONSE"))if(e.response){let{data:p,status:g}=e.response;if(g==401)if(f.withRefresh&&f.appendToken){f=We(te({},f),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{let v=sessionStorage.getItem("lastest_success_ajax_time");if(v&&new Date().getTime()-(v-0)>mhe)throw new Error(`未操作时间超过${mhe}`);return yield gFe(a,f),yield k3(a,c,f)}catch(v){GZ(f)}}else GZ(f);else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:p.message||p.msg,customClass:"ajax-tip"})}}else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:e.message||"服务器发生错误",customClass:"ajax-tip"})}else{if(!f.handleError)return;n&&Dl({type:"error",grouping:!0,message:e.message,customClass:"ajax-tip"})}})}function gFe(e,n){return ur(this,null,function*(){let s="",a=Op.get("logininfo");if(a)s=a.refreshUrl;else throw new Error("未发现logininfo");s||(s=new URL(e).origin+"/system/login/refReshTokenWeb");let c=a.refresh_token;if(!c)throw new Error("logininfo中未发现refresh_token");let f=yield bFe(s,c),{data:p}=f;if(p.code=="200"){let g=p.val;a.refresh_token=g.refresh_token,a.token="bearer "+g.access_token,Op.set("logininfo",a)}else throw new Error("刷新token失败")})}let v5=!1,hhe=[],ghe=[];function bFe(e,n){return new Promise((s,a)=>{hhe.push(s),ghe.push(a),v5||(v5=!0,k3(e,{refReshToken:n},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}).then(c=>{hhe.forEach(f=>{f(c)}),v5=!1}).catch(c=>{ghe.forEach(f=>{f(c)}),v5=!1}))})}function GZ(e){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let n=JSON.parse("/login.html"),s=window.localStorage.getItem("loginPage");if(s)try{n=s}catch(a){}e.loginPage&&(n=e.loginPage),location.href=n}const GQe="",cO=(e,n)=>{const s=e.__vccOpts||e;for(const[a,c]of n)s[a]=c;return s},yFe={name:"SyncLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,height:this.size,width:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-syncStretchDelay",animationDuration:"0.6s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.07s"},spinnerDelay2:{animationDelay:"0.14s"},spinnerDelay3:{animationDelay:"0.21s"}}}},vFe={class:"v-spinner"};function wFe(e,n,s,a,c,f){return l.withDirectives((l.openBlock(),l.createElementBlock("div",vFe,[l.createElementVNode("div",{class:"v-sync v-sync1",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay1])},null,4),l.createElementVNode("div",{class:"v-sync v-sync2",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay2])},null,4),l.createElementVNode("div",{class:"v-sync v-sync3",style:l.normalizeStyle([c.spinnerStyle,c.spinnerDelay3])},null,4)],512)),[[l.vShow,s.loading]])}const CFe=cO(yFe,[["render",wFe]]),SFe={class:"zy-loading-con"},xFe=l.defineComponent({name:"LoadingPlay"}),kFe=l.defineComponent(We(te({},xFe),{props:{cont:{type:l.ref},options:{type:Object}},setup(e){const{cont:n,options:s}=e,a=l.computed(()=>({left:s.left+"px",top:s.top+"px",right:s.right+"px",bottom:s.bottom+"px"})),c=l.computed(()=>n&&n.value?["show"]:null);return(f,p)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["zy-loading-wrapper",c.value]),style:l.normalizeStyle(a.value)},[l.createElementVNode("div",SFe,[l.createVNode(CFe,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),bhe=1440,YZ=216,EFe=56,w5={left:0,top:0,bottom:0,right:0};class TFe{constructor(){this.loadingCont=l.ref(!1),this.options=l.reactive(te({},w5)),this.createLoadingApp()}createLoadingApp(){let n=document.createElement("div");document.body.appendChild(n),this.loadingApp=l.createApp({name:"LoadingApp",render:()=>l.h(kFe,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(n)}ShowLoading(n){n=n?te(te({},w5),n):te({},w5),n.LoadingType=="business"?(n=te(te({},n),OFe()),delete n.LoadingType):n.LoadingType=="forceFullscreen"&&(n=te({},w5),delete n.LoadingType),c3(this.options,n),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function OFe(){let e=document.documentElement.clientWidth||document.body.clientWidth,n=0,s=0,a=0,c=0,f=document.querySelector(".zy-applayout-base");return f&&(n=EFe),e<=1480?f&&(s=YZ+12):f&&(f.classList.contains("fullscreen")?s=YZ+24:(s=Math.round((e-bhe)/2)+YZ,a=Math.round((e-bhe)/2))),{left:s,top:n,bottom:c,right:a}}const C5=new TFe;function yhe(){let e=Op.get("logininfo");if(!e)throw new Error("logininfo未发现");return e.token}function NFe(e){let n=_Fe(),s=n.checkApi(e);return s&&n.storeApi(e),s}function _Fe(){return S3.instance||(S3.instance=new S3),S3.instance}class S3{constructor(){this.apiList=[]}checkApi(n){let s=this.apiList.findIndex(f=>f.api==n);if(s<0)return!0;let a=this.apiList[s];return new Date().getTime()-a.time<=1e3?!1:(this.apiList.splice(s,1),!0)}storeApi(n){let s=this.apiList.findIndex(a=>a.api==n);s<0?this.apiList.push({api:n,time:new Date().getTime()}):this.apiList[s].time=new Date().getTime()}}S3.instance=null;const x3=qg("methods.Ajax"),S5={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:x3("successTipText"),confirmMsg:"",antiShake:!1,withRefresh:!0,responseType:"json"},k3=(e,n,s)=>ur(this,null,function*(){const a=e;s=s?te(te({},S5),s):te({},S5),s.confirmMsg&&(yield Qpe.confirm(s.confirmMsg,x3("confirmMsgText"),{confirmButtonText:x3("confirmButtonText"),cancelButtonText:x3("cancelButtonText"),type:"warning"})),s.method=s.method.toLowerCase();let c=n;if((s.method=="get"||s.method=="delete")&&n&&QT(n)&&Object.keys(n).length>0&&(e=e+(e.indexOf("?")>-1?"&"+phe.stringify(n):"?"+phe.stringify(n))),s.antiShake&&!NFe(e))throw console.warn(`${e}在1s内连续发起请求,判定为抖动`),new Error(x3("shakeText"));(s.method=="post"||s.method=="put")&&s.fd&&(c=ome(n));let f,p=s.fd?"multipart/form-data":"application/json;charset=UTF-8";if(s.appendToken){let g;try{g=yhe()}catch(v){if(s.handleError){GZ(s);return}else console.error(v)}f=kZ.create({headers:{Authorization:g,"Content-Type":p,"Accept-Language":jg()},signal:s.signal?s.signal.signal:null})}else f=kZ.create({headers:{"Content-Type":p,"Accept-Language":jg()},signal:s.signal?s.signal.signal:null});try{if(s.loading){let v=null;s.fullscreen||(v={LoadingType:"business"}),s.forceFullscreen&&(v={LoadingType:"forceFullscreen"}),C5.ShowLoading(v)}let g=yield f.request({method:s.method,url:e,withCredentials:!1,data:c,responseType:s.responseType});return s.loading&&C5.HidenLoading(),g}catch(g){if(s.loading&&C5.HidenLoading(),s.handleError||s.withRefresh){let v={url:a,param:n,option:s};if(g.name&&g.name=="CanceledError")return g;let C=yield hFe(g,s.errorMsg,v);return C||g}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(g),g}}),ld=(e,n,s)=>ur(this,null,function*(){var p;const a=((p=window.HS_GLOBAL_CONFIG)==null?void 0:p.Ajax)||{};!!(s!=null&&s.successTip)&&(s.successMsg=!0),s=s?te(te(te({},S5),a),s):te(te({},a),S5),s.method=s.method.toLowerCase();let f=!1;s.hasOwnProperty("pageInfo")&&s.pageInfo!=null&&(f=!0,s.hasOwnProperty("page")&&!s.page&&(f=!1),n=te(te({},l.unref(s.pageInfo)),n));try{const g=yield k3(e,n,s);if(g instanceof CIe)throw g;let v=g.data;if(v.code!=200){if(s.errorMsg&&Dl({type:"error",grouping:!0,message:v.msg,customClass:"ajax-tip"}),v.name&&v.name=="CanceledError")return console.warn("请求被取消"),{data:null};throw new Error(`请求:${e}出现错误,错误码:${v.code},错误信息:${v.msg}`)}else{s.successMsg&&Dl({type:"success",grouping:!0,message:s.successTip,customClass:"ajax-tip"});let C=v.val||v.list,E=l.unref(s.pageInfo),O={total:0,pageSize:0,pageIndex:0};return f&&s.hasOwnProperty("pageInfo")&&(O.pageIndex=E.pageIndex,O.pageSize=E.pageSize,v.hasOwnProperty("pageInfo")?O=te({},v.pageInfo):O.total=v.total||0,E.total=O.total),sessionStorage.setItem("lastest_success_ajax_time",new Date().getTime()+""),{data:C,code:v.code,msg:v.msg,pageInfo:O}}}catch(g){throw console.warn(g),g}}),x5=(e="./login.html")=>{let n=window.localStorage.getItem("loginPage");if(n){try{n=JSON.parse(n)}catch(s){console.warn(s)}e=n}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=e},vhe=(e="./index.html")=>{let n=window.localStorage.getItem("homePage");if(n){try{n=JSON.parse(n)}catch(s){console.warn(s)}e=n}window.location.href=e};/*!
|
|
43
43
|
* Viewer.js v1.11.3
|
|
44
44
|
* https://fengyuanchen.github.io/viewerjs
|
|
45
45
|
*
|