hongshu-view 0.6.18 → 0.6.19
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/dist/hongshu-view.mjs +16 -7
- package/dist/hongshu-view.umd.js +1 -1
- package/package.json +1 -1
package/dist/hongshu-view.mjs
CHANGED
|
@@ -21927,14 +21927,16 @@ const rP = Xh("methods.Ajax"), oV = {
|
|
|
21927
21927
|
Authorization: S,
|
|
21928
21928
|
"Content-Type": w,
|
|
21929
21929
|
"Accept-Language": ME()
|
|
21930
|
-
}
|
|
21930
|
+
},
|
|
21931
|
+
signal: l.signal ? l.signal.signal : null
|
|
21931
21932
|
});
|
|
21932
21933
|
} else
|
|
21933
21934
|
b = Ree.create({
|
|
21934
21935
|
headers: {
|
|
21935
21936
|
"Content-Type": w,
|
|
21936
21937
|
"Accept-Language": ME()
|
|
21937
|
-
}
|
|
21938
|
+
},
|
|
21939
|
+
signal: l.signal ? l.signal.signal : null
|
|
21938
21940
|
});
|
|
21939
21941
|
try {
|
|
21940
21942
|
if (l.loading) {
|
|
@@ -21962,7 +21964,10 @@ const rP = Xh("methods.Ajax"), oV = {
|
|
|
21962
21964
|
url: u,
|
|
21963
21965
|
param: a,
|
|
21964
21966
|
option: l
|
|
21965
|
-
}
|
|
21967
|
+
};
|
|
21968
|
+
if (S.name && S.name == "CanceledError")
|
|
21969
|
+
return S;
|
|
21970
|
+
let _ = yield p3e(S, l.errorMsg, T);
|
|
21966
21971
|
return _ || S;
|
|
21967
21972
|
} else
|
|
21968
21973
|
throw console.warn("ajax出现错误,并忽略错误处理"), console.error(S), S;
|
|
@@ -21978,13 +21983,17 @@ const rP = Xh("methods.Ajax"), oV = {
|
|
|
21978
21983
|
if (S instanceof bAe)
|
|
21979
21984
|
throw S;
|
|
21980
21985
|
let T = S.data;
|
|
21981
|
-
if (T.code != 200)
|
|
21982
|
-
|
|
21986
|
+
if (T.code != 200) {
|
|
21987
|
+
if (l.errorMsg && Wh({
|
|
21983
21988
|
type: "error",
|
|
21984
21989
|
grouping: !0,
|
|
21985
21990
|
message: T.msg
|
|
21986
|
-
}),
|
|
21987
|
-
|
|
21991
|
+
}), T.name && T.name == "CanceledError")
|
|
21992
|
+
return console.warn("请求被取消"), {
|
|
21993
|
+
data: null
|
|
21994
|
+
};
|
|
21995
|
+
throw new Error(`请求:${o}出现错误,错误码:${T.code},错误信息:${T.msg}`);
|
|
21996
|
+
} else {
|
|
21988
21997
|
l.successMsg && Wh({
|
|
21989
21998
|
type: "success",
|
|
21990
21999
|
grouping: !0,
|
package/dist/hongshu-view.umd.js
CHANGED
|
@@ -47,7 +47,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:d,curr
|
|
|
47
47
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...c){const d=new this(i);return c.forEach(h=>d.set(h)),d}static accessor(i){const d=(this[Vae]=this[Vae]={accessors:{}}).accessors,h=this.prototype;function v(w){const x=_A(w);d[x]||(d_e(h,w),d[x]=!0)}return sn.isArray(i)?i.forEach(v):v(i),this}};FP.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),sn.freezeMethods(FP.prototype),sn.freezeMethods(FP);const V1=FP;function mU(o,i){const c=this||dU,d=i||c,h=V1.from(d.headers);let v=d.data;return sn.forEach(o,function(x){v=x.call(c,v,h.normalize(),i?i.status:void 0)}),h.normalize(),v}function Hae(o){return!!(o&&o.__CANCEL__)}function OA(o,i,c){sa.call(this,o==null?"canceled":o,sa.ERR_CANCELED,i,c),this.name="CanceledError"}sn.inherits(OA,sa,{__CANCEL__:!0});function f_e(o,i,c){const d=c.config.validateStatus;!c.status||!d||d(c.status)?o(c):i(new sa("Request failed with status code "+c.status,[sa.ERR_BAD_REQUEST,sa.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}const m_e=Vg.isStandardBrowserEnv?function(){return{write:function(c,d,h,v,w,x){const T=[];T.push(c+"="+encodeURIComponent(d)),sn.isNumber(h)&&T.push("expires="+new Date(h).toGMTString()),sn.isString(v)&&T.push("path="+v),sn.isString(w)&&T.push("domain="+w),x===!0&&T.push("secure"),document.cookie=T.join("; ")},read:function(c){const d=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function p_e(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function h_e(o,i){return i?o.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):o}function Uae(o,i){return o&&!p_e(i)?h_e(o,i):i}const g_e=Vg.isStandardBrowserEnv?function(){const i=/(msie|trident)/i.test(navigator.userAgent),c=document.createElement("a");let d;function h(v){let w=v;return i&&(c.setAttribute("href",w),w=c.href),c.setAttribute("href",w),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return d=h(window.location.href),function(w){const x=sn.isString(w)?h(w):w;return x.protocol===d.protocol&&x.host===d.host}}():function(){return function(){return!0}}();function b_e(o){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return i&&i[1]||""}function y_e(o,i){o=o||10;const c=new Array(o),d=new Array(o);let h=0,v=0,w;return i=i!==void 0?i:1e3,function(T){const O=Date.now(),D=d[v];w||(w=O),c[h]=T,d[h]=O;let R=v,L=0;for(;R!==h;)L+=c[R++],R=R%o;if(h=(h+1)%o,h===v&&(v=(v+1)%o),O-w<i)return;const K=D&&O-D;return K?Math.round(L*1e3/K):void 0}}function Wae(o,i){let c=0;const d=y_e(50,250);return h=>{const v=h.loaded,w=h.lengthComputable?h.total:void 0,x=v-c,T=d(x),O=v<=w;c=v;const D={loaded:v,total:w,progress:w?v/w:void 0,bytes:x,rate:T||void 0,estimated:T&&w&&O?(w-v)/T:void 0,event:h};D[i?"download":"upload"]=!0,o(D)}}const zP={http:jTe,xhr:typeof XMLHttpRequest!="undefined"&&function(o){return new Promise(function(c,d){let h=o.data;const v=V1.from(o.headers).normalize(),w=o.responseType;let x;function T(){o.cancelToken&&o.cancelToken.unsubscribe(x),o.signal&&o.signal.removeEventListener("abort",x)}sn.isFormData(h)&&(Vg.isStandardBrowserEnv||Vg.isStandardBrowserWebWorkerEnv?v.setContentType(!1):v.setContentType("multipart/form-data;",!1));let O=new XMLHttpRequest;if(o.auth){const K=o.auth.username||"",z=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";v.set("Authorization","Basic "+btoa(K+":"+z))}const D=Uae(o.baseURL,o.url);O.open(o.method.toUpperCase(),Iae(D,o.params,o.paramsSerializer),!0),O.timeout=o.timeout;function R(){if(!O)return;const K=V1.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),F={data:!w||w==="text"||w==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:K,config:o,request:O};f_e(function(G){c(G),T()},function(G){d(G),T()},F),O=null}if("onloadend"in O?O.onloadend=R:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(R)},O.onabort=function(){O&&(d(new sa("Request aborted",sa.ECONNABORTED,o,O)),O=null)},O.onerror=function(){d(new sa("Network Error",sa.ERR_NETWORK,o,O)),O=null},O.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||Fae;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),d(new sa(z,F.clarifyTimeoutError?sa.ETIMEDOUT:sa.ECONNABORTED,o,O)),O=null},Vg.isStandardBrowserEnv){const K=(o.withCredentials||g_e(D))&&o.xsrfCookieName&&m_e.read(o.xsrfCookieName);K&&v.set(o.xsrfHeaderName,K)}h===void 0&&v.setContentType(null),"setRequestHeader"in O&&sn.forEach(v.toJSON(),function(z,F){O.setRequestHeader(F,z)}),sn.isUndefined(o.withCredentials)||(O.withCredentials=!!o.withCredentials),w&&w!=="json"&&(O.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&O.addEventListener("progress",Wae(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&O.upload&&O.upload.addEventListener("progress",Wae(o.onUploadProgress)),(o.cancelToken||o.signal)&&(x=K=>{O&&(d(!K||K.type?new OA(null,o,O):K),O.abort(),O=null)},o.cancelToken&&o.cancelToken.subscribe(x),o.signal&&(o.signal.aborted?x():o.signal.addEventListener("abort",x)));const L=b_e(D);if(L&&Vg.protocols.indexOf(L)===-1){d(new sa("Unsupported protocol "+L+":",sa.ERR_BAD_REQUEST,o));return}O.send(h||null)})}};sn.forEach(zP,(o,i)=>{if(o){try{Object.defineProperty(o,"name",{value:i})}catch(c){}Object.defineProperty(o,"adapterName",{value:i})}});const v_e={getAdapter:o=>{o=sn.isArray(o)?o:[o];const{length:i}=o;let c,d;for(let h=0;h<i&&(c=o[h],!(d=sn.isString(c)?zP[c.toLowerCase()]:c));h++);if(!d)throw d===!1?new sa(`Adapter ${c} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(sn.hasOwnProp(zP,c)?`Adapter '${c}' is not available in the build`:`Unknown adapter '${c}'`);if(!sn.isFunction(d))throw new TypeError("adapter is not a function");return d},adapters:zP};function pU(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new OA(null,o)}function jae(o){return pU(o),o.headers=V1.from(o.headers),o.data=mU.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),v_e.getAdapter(o.adapter||dU.adapter)(o).then(function(d){return pU(o),d.data=mU.call(o,o.transformResponse,d),d.headers=V1.from(d.headers),d},function(d){return Hae(d)||(pU(o),d&&d.response&&(d.response.data=mU.call(o,o.transformResponse,d.response),d.response.headers=V1.from(d.response.headers))),Promise.reject(d)})}const Zae=o=>o instanceof V1?o.toJSON():o;function BE(o,i){i=i||{};const c={};function d(O,D,R){return sn.isPlainObject(O)&&sn.isPlainObject(D)?sn.merge.call({caseless:R},O,D):sn.isPlainObject(D)?sn.merge({},D):sn.isArray(D)?D.slice():D}function h(O,D,R){if(sn.isUndefined(D)){if(!sn.isUndefined(O))return d(void 0,O,R)}else return d(O,D,R)}function v(O,D){if(!sn.isUndefined(D))return d(void 0,D)}function w(O,D){if(sn.isUndefined(D)){if(!sn.isUndefined(O))return d(void 0,O)}else return d(void 0,D)}function x(O,D,R){if(R in i)return d(O,D);if(R in o)return d(void 0,O)}const T={url:v,method:v,data:v,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:x,headers:(O,D)=>h(Zae(O),Zae(D),!0)};return sn.forEach(Object.keys(Object.assign({},o,i)),function(D){const R=T[D]||h,L=R(o[D],i[D],D);sn.isUndefined(L)&&R!==x||(c[D]=L)}),c}const Kae="1.4.0",hU={};["object","boolean","number","function","string","symbol"].forEach((o,i)=>{hU[o]=function(d){return typeof d===o||"a"+(i<1?"n ":" ")+o}});const qae={};hU.transitional=function(i,c,d){function h(v,w){return"[Axios v"+Kae+"] Transitional option '"+v+"'"+w+(d?". "+d:"")}return(v,w,x)=>{if(i===!1)throw new sa(h(w," has been removed"+(c?" in "+c:"")),sa.ERR_DEPRECATED);return c&&!qae[w]&&(qae[w]=!0,console.warn(h(w," has been deprecated since v"+c+" and will be removed in the near future"))),i?i(v,w,x):!0}};function C_e(o,i,c){if(typeof o!="object")throw new sa("options must be an object",sa.ERR_BAD_OPTION_VALUE);const d=Object.keys(o);let h=d.length;for(;h-- >0;){const v=d[h],w=i[v];if(w){const x=o[v],T=x===void 0||w(x,v,o);if(T!==!0)throw new sa("option "+v+" must be "+T,sa.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new sa("Unknown option "+v,sa.ERR_BAD_OPTION)}}const gU={assertOptions:C_e,validators:hU},G0=gU.validators;let VP=class{constructor(i){this.defaults=i,this.interceptors={request:new Lae,response:new Lae}}request(i,c){typeof i=="string"?(c=c||{},c.url=i):c=i||{},c=BE(this.defaults,c);const{transitional:d,paramsSerializer:h,headers:v}=c;d!==void 0&&gU.assertOptions(d,{silentJSONParsing:G0.transitional(G0.boolean),forcedJSONParsing:G0.transitional(G0.boolean),clarifyTimeoutError:G0.transitional(G0.boolean)},!1),h!=null&&(sn.isFunction(h)?c.paramsSerializer={serialize:h}:gU.assertOptions(h,{encode:G0.function,serialize:G0.function},!0)),c.method=(c.method||this.defaults.method||"get").toLowerCase();let w;w=v&&sn.merge(v.common,v[c.method]),w&&sn.forEach(["delete","get","head","post","put","patch","common"],z=>{delete v[z]}),c.headers=V1.concat(w,v);const x=[];let T=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(c)===!1||(T=T&&F.synchronous,x.unshift(F.fulfilled,F.rejected))});const O=[];this.interceptors.response.forEach(function(F){O.push(F.fulfilled,F.rejected)});let D,R=0,L;if(!T){const z=[jae.bind(this),void 0];for(z.unshift.apply(z,x),z.push.apply(z,O),L=z.length,D=Promise.resolve(c);R<L;)D=D.then(z[R++],z[R++]);return D}L=x.length;let K=c;for(R=0;R<L;){const z=x[R++],F=x[R++];try{K=z(K)}catch(J){F.call(this,J);break}}try{D=jae.call(this,K)}catch(z){return Promise.reject(z)}for(R=0,L=O.length;R<L;)D=D.then(O[R++],O[R++]);return D}getUri(i){i=BE(this.defaults,i);const c=Uae(i.baseURL,i.url);return Iae(c,i.params,i.paramsSerializer)}};sn.forEach(["delete","get","head","options"],function(i){VP.prototype[i]=function(c,d){return this.request(BE(d||{},{method:i,url:c,data:(d||{}).data}))}}),sn.forEach(["post","put","patch"],function(i){function c(d){return function(v,w,x){return this.request(BE(x||{},{method:i,headers:d?{"Content-Type":"multipart/form-data"}:{},url:v,data:w}))}}VP.prototype[i]=c(),VP.prototype[i+"Form"]=c(!0)});const HP=VP,w_e=class Sue{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(v){c=v});const d=this;this.promise.then(h=>{if(!d._listeners)return;let v=d._listeners.length;for(;v-- >0;)d._listeners[v](h);d._listeners=null}),this.promise.then=h=>{let v;const w=new Promise(x=>{d.subscribe(x),v=x}).then(h);return w.cancel=function(){d.unsubscribe(v)},w},i(function(v,w,x){d.reason||(d.reason=new OA(v,w,x),c(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const c=this._listeners.indexOf(i);c!==-1&&this._listeners.splice(c,1)}static source(){let i;return{token:new Sue(function(h){i=h}),cancel:i}}};function S_e(o){return function(c){return o.apply(null,c)}}function x_e(o){return sn.isObject(o)&&o.isAxiosError===!0}const bU={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(bU).forEach(([o,i])=>{bU[i]=o});const E_e=bU;function Gae(o){const i=new HP(o),c=wae(HP.prototype.request,i);return sn.extend(c,HP.prototype,i,{allOwnKeys:!0}),sn.extend(c,i,null,{allOwnKeys:!0}),c.create=function(h){return Gae(BE(o,h))},c}const Pc=Gae(dU);Pc.Axios=HP,Pc.CanceledError=OA,Pc.CancelToken=w_e,Pc.isCancel=Hae,Pc.VERSION=Kae,Pc.toFormData=PP,Pc.AxiosError=sa,Pc.Cancel=Pc.CanceledError,Pc.all=function(i){return Promise.all(i)},Pc.spread=S_e,Pc.isAxiosError=x_e,Pc.mergeConfig=BE,Pc.AxiosHeaders=V1,Pc.formToJSON=o=>zae(sn.isHTMLForm(o)?new FormData(o):o),Pc.HttpStatusCode=E_e,Pc.default=Pc;const yU=Pc,{Axios:NMe,AxiosError:k_e,CanceledError:AMe,isCancel:BMe,CancelToken:DMe,VERSION:$Me,all:RMe,Cancel:MMe,isAxiosError:PMe,spread:IMe,toFormData:LMe,AxiosHeaders:FMe,HttpStatusCode:zMe,formToJSON:VMe,mergeConfig:HMe}=yU;var T_e=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},c=Symbol("test"),d=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(d)!=="[object Symbol]")return!1;var h=42;i[c]=h;for(c in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var v=Object.getOwnPropertySymbols(i);if(v.length!==1||v[0]!==c||!Object.prototype.propertyIsEnumerable.call(i,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var w=Object.getOwnPropertyDescriptor(i,c);if(w.value!==h||w.enumerable!==!0)return!1}return!0},Yae=typeof Symbol!="undefined"&&Symbol,__e=T_e,O_e=function(){return typeof Yae!="function"||typeof Symbol!="function"||typeof Yae("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:__e()},Xae={foo:{}},N_e=Object,A_e=function(){return{__proto__:Xae}.foo===Xae.foo&&!({__proto__:null}instanceof N_e)},B_e="Function.prototype.bind called on incompatible ",vU=Array.prototype.slice,D_e=Object.prototype.toString,$_e="[object Function]",R_e=function(i){var c=this;if(typeof c!="function"||D_e.call(c)!==$_e)throw new TypeError(B_e+c);for(var d=vU.call(arguments,1),h,v=function(){if(this instanceof h){var D=c.apply(this,d.concat(vU.call(arguments)));return Object(D)===D?D:this}else return c.apply(i,d.concat(vU.call(arguments)))},w=Math.max(0,c.length-d.length),x=[],T=0;T<w;T++)x.push("$"+T);if(h=Function("binder","return function ("+x.join(",")+"){ return binder.apply(this,arguments); }")(v),c.prototype){var O=function(){};O.prototype=c.prototype,h.prototype=new O,O.prototype=null}return h},M_e=R_e,CU=Function.prototype.bind||M_e,P_e=CU,I_e=P_e.call(Function.call,Object.prototype.hasOwnProperty),Ur,DE=SyntaxError,Jae=Function,$E=TypeError,wU=function(o){try{return Jae('"use strict"; return ('+o+").constructor;")()}catch(i){}},zw=Object.getOwnPropertyDescriptor;if(zw)try{zw({},"")}catch(o){zw=null}var SU=function(){throw new $E},L_e=zw?function(){try{return arguments.callee,SU}catch(o){try{return zw(arguments,"callee").get}catch(i){return SU}}}():SU,RE=O_e(),F_e=A_e(),ru=Object.getPrototypeOf||(F_e?function(o){return o.__proto__}:null),ME={},z_e=typeof Uint8Array=="undefined"||!ru?Ur:ru(Uint8Array),Vw={"%AggregateError%":typeof AggregateError=="undefined"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":RE&&ru?ru([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":ME,"%AsyncGenerator%":ME,"%AsyncGeneratorFunction%":ME,"%AsyncIteratorPrototype%":ME,"%Atomics%":typeof Atomics=="undefined"?Ur:Atomics,"%BigInt%":typeof BigInt=="undefined"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?Ur:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Ur:FinalizationRegistry,"%Function%":Jae,"%GeneratorFunction%":ME,"%Int8Array%":typeof Int8Array=="undefined"?Ur:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Ur:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":RE&&ru?ru(ru([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map=="undefined"?Ur:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!RE||!ru?Ur:ru(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Ur:Promise,"%Proxy%":typeof Proxy=="undefined"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Ur:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!RE||!ru?Ur:ru(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":RE&&ru?ru(""[Symbol.iterator]()):Ur,"%Symbol%":RE?Symbol:Ur,"%SyntaxError%":DE,"%ThrowTypeError%":L_e,"%TypedArray%":z_e,"%TypeError%":$E,"%Uint8Array%":typeof Uint8Array=="undefined"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?Ur:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Ur:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Ur:WeakSet};if(ru)try{null.error}catch(o){var V_e=ru(ru(o));Vw["%Error.prototype%"]=V_e}var H_e=function o(i){var c;if(i==="%AsyncFunction%")c=wU("async function () {}");else if(i==="%GeneratorFunction%")c=wU("function* () {}");else if(i==="%AsyncGeneratorFunction%")c=wU("async function* () {}");else if(i==="%AsyncGenerator%"){var d=o("%AsyncGeneratorFunction%");d&&(c=d.prototype)}else if(i==="%AsyncIteratorPrototype%"){var h=o("%AsyncGenerator%");h&&ru&&(c=ru(h.prototype))}return Vw[i]=c,c},Qae={"%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"]},NA=CU,UP=I_e,U_e=NA.call(Function.call,Array.prototype.concat),W_e=NA.call(Function.apply,Array.prototype.splice),eie=NA.call(Function.call,String.prototype.replace),WP=NA.call(Function.call,String.prototype.slice),j_e=NA.call(Function.call,RegExp.prototype.exec),Z_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K_e=/\\(\\)?/g,q_e=function(i){var c=WP(i,0,1),d=WP(i,-1);if(c==="%"&&d!=="%")throw new DE("invalid intrinsic syntax, expected closing `%`");if(d==="%"&&c!=="%")throw new DE("invalid intrinsic syntax, expected opening `%`");var h=[];return eie(i,Z_e,function(v,w,x,T){h[h.length]=x?eie(T,K_e,"$1"):w||v}),h},G_e=function(i,c){var d=i,h;if(UP(Qae,d)&&(h=Qae[d],d="%"+h[0]+"%"),UP(Vw,d)){var v=Vw[d];if(v===ME&&(v=H_e(d)),typeof v=="undefined"&&!c)throw new $E("intrinsic "+i+" exists, but is not available. Please file an issue!");return{alias:h,name:d,value:v}}throw new DE("intrinsic "+i+" does not exist!")},xU=function(i,c){if(typeof i!="string"||i.length===0)throw new $E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof c!="boolean")throw new $E('"allowMissing" argument must be a boolean');if(j_e(/^%?[^%]*%?$/,i)===null)throw new DE("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var d=q_e(i),h=d.length>0?d[0]:"",v=G_e("%"+h+"%",c),w=v.name,x=v.value,T=!1,O=v.alias;O&&(h=O[0],W_e(d,U_e([0,1],O)));for(var D=1,R=!0;D<d.length;D+=1){var L=d[D],K=WP(L,0,1),z=WP(L,-1);if((K==='"'||K==="'"||K==="`"||z==='"'||z==="'"||z==="`")&&K!==z)throw new DE("property names with quotes must have matching quotes");if((L==="constructor"||!R)&&(T=!0),h+="."+L,w="%"+h+"%",UP(Vw,w))x=Vw[w];else if(x!=null){if(!(L in x)){if(!c)throw new $E("base intrinsic for "+i+" exists, but the property is not available.");return}if(zw&&D+1>=d.length){var F=zw(x,L);R=!!F,R&&"get"in F&&!("originalValue"in F.get)?x=F.get:x=x[L]}else R=UP(x,L),x=x[L];R&&!T&&(Vw[w]=x)}}return x},tie={exports:{}};(function(o){var i=CU,c=xU,d=c("%Function.prototype.apply%"),h=c("%Function.prototype.call%"),v=c("%Reflect.apply%",!0)||i.call(h,d),w=c("%Object.getOwnPropertyDescriptor%",!0),x=c("%Object.defineProperty%",!0),T=c("%Math.max%");if(x)try{x({},"a",{value:1})}catch(D){x=null}o.exports=function(R){var L=v(i,h,arguments);if(w&&x){var K=w(L,"length");K.configurable&&x(L,"length",{value:1+T(0,R.length-(arguments.length-1))})}return L};var O=function(){return v(i,d,arguments)};x?x(o.exports,"apply",{value:O}):o.exports.apply=O})(tie);var Y_e=tie.exports,nie=xU,oie=Y_e,X_e=oie(nie("String.prototype.indexOf")),J_e=function(i,c){var d=nie(i,!!c);return typeof d=="function"&&X_e(i,".prototype.")>-1?oie(d):d};const Q_e=DCe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var EU=typeof Map=="function"&&Map.prototype,kU=Object.getOwnPropertyDescriptor&&EU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,jP=EU&&kU&&typeof kU.get=="function"?kU.get:null,sie=EU&&Map.prototype.forEach,TU=typeof Set=="function"&&Set.prototype,_U=Object.getOwnPropertyDescriptor&&TU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ZP=TU&&_U&&typeof _U.get=="function"?_U.get:null,rie=TU&&Set.prototype.forEach,eOe=typeof WeakMap=="function"&&WeakMap.prototype,AA=eOe?WeakMap.prototype.has:null,tOe=typeof WeakSet=="function"&&WeakSet.prototype,BA=tOe?WeakSet.prototype.has:null,nOe=typeof WeakRef=="function"&&WeakRef.prototype,aie=nOe?WeakRef.prototype.deref:null,oOe=Boolean.prototype.valueOf,sOe=Object.prototype.toString,rOe=Function.prototype.toString,aOe=String.prototype.match,OU=String.prototype.slice,Y0=String.prototype.replace,iOe=String.prototype.toUpperCase,iie=String.prototype.toLowerCase,lie=RegExp.prototype.test,cie=Array.prototype.concat,Hg=Array.prototype.join,lOe=Array.prototype.slice,uie=Math.floor,NU=typeof BigInt=="function"?BigInt.prototype.valueOf:null,AU=Object.getOwnPropertySymbols,BU=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,PE=typeof Symbol=="function"&&typeof Symbol.iterator=="object",td=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===PE||"symbol")?Symbol.toStringTag:null,die=Object.prototype.propertyIsEnumerable,fie=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function mie(o,i){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||lie.call(/e/,i))return i;var c=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var d=o<0?-uie(-o):uie(o);if(d!==o){var h=String(d),v=OU.call(i,h.length+1);return Y0.call(h,c,"$&_")+"."+Y0.call(Y0.call(v,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Y0.call(i,c,"$&_")}var DU=Q_e,pie=DU.custom,hie=yie(pie)?pie:null,cOe=function o(i,c,d,h){var v=c||{};if(X0(v,"quoteStyle")&&v.quoteStyle!=="single"&&v.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X0(v,"maxStringLength")&&(typeof v.maxStringLength=="number"?v.maxStringLength<0&&v.maxStringLength!==1/0:v.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var w=X0(v,"customInspect")?v.customInspect:!0;if(typeof w!="boolean"&&w!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X0(v,"indent")&&v.indent!==null&&v.indent!==" "&&!(parseInt(v.indent,10)===v.indent&&v.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X0(v,"numericSeparator")&&typeof v.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=v.numericSeparator;if(typeof i=="undefined")return"undefined";if(i===null)return"null";if(typeof i=="boolean")return i?"true":"false";if(typeof i=="string")return Cie(i,v);if(typeof i=="number"){if(i===0)return 1/0/i>0?"0":"-0";var T=String(i);return x?mie(i,T):T}if(typeof i=="bigint"){var O=String(i)+"n";return x?mie(i,O):O}var D=typeof v.depth=="undefined"?5:v.depth;if(typeof d=="undefined"&&(d=0),d>=D&&D>0&&typeof i=="object")return $U(i)?"[Array]":"[Object]";var R=_Oe(v,d);if(typeof h=="undefined")h=[];else if(vie(h,i)>=0)return"[Circular]";function L($t,ct,Je){if(ct&&(h=lOe.call(h),h.push(ct)),Je){var I={depth:v.depth};return X0(v,"quoteStyle")&&(I.quoteStyle=v.quoteStyle),o($t,I,d+1,h)}return o($t,v,d+1,h)}if(typeof i=="function"&&!bie(i)){var K=yOe(i),z=KP(i,L);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(z.length>0?" { "+Hg.call(z,", ")+" }":"")}if(yie(i)){var F=PE?Y0.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):BU.call(i);return typeof i=="object"&&!PE?DA(F):F}if(EOe(i)){for(var J="<"+iie.call(String(i.nodeName)),G=i.attributes||[],se=0;se<G.length;se++)J+=" "+G[se].name+"="+gie(uOe(G[se].value),"double",v);return J+=">",i.childNodes&&i.childNodes.length&&(J+="..."),J+="</"+iie.call(String(i.nodeName))+">",J}if($U(i)){if(i.length===0)return"[]";var H=KP(i,L);return R&&!TOe(H)?"["+MU(H,R)+"]":"[ "+Hg.call(H,", ")+" ]"}if(fOe(i)){var Y=KP(i,L);return!("cause"in Error.prototype)&&"cause"in i&&!die.call(i,"cause")?"{ ["+String(i)+"] "+Hg.call(cie.call("[cause]: "+L(i.cause),Y),", ")+" }":Y.length===0?"["+String(i)+"]":"{ ["+String(i)+"] "+Hg.call(Y,", ")+" }"}if(typeof i=="object"&&w){if(hie&&typeof i[hie]=="function"&&DU)return DU(i,{depth:D-d});if(w!=="symbol"&&typeof i.inspect=="function")return i.inspect()}if(vOe(i)){var Ce=[];return sie&&sie.call(i,function($t,ct){Ce.push(L(ct,i,!0)+" => "+L($t,i))}),wie("Map",jP.call(i),Ce,R)}if(SOe(i)){var de=[];return rie&&rie.call(i,function($t){de.push(L($t,i))}),wie("Set",ZP.call(i),de,R)}if(COe(i))return RU("WeakMap");if(xOe(i))return RU("WeakSet");if(wOe(i))return RU("WeakRef");if(pOe(i))return DA(L(Number(i)));if(gOe(i))return DA(L(NU.call(i)));if(hOe(i))return DA(oOe.call(i));if(mOe(i))return DA(L(String(i)));if(!dOe(i)&&!bie(i)){var Z=KP(i,L),ge=fie?fie(i)===Object.prototype:i instanceof Object||i.constructor===Object,De=i instanceof Object?"":"null prototype",Me=!ge&&td&&Object(i)===i&&td in i?OU.call(J0(i),8,-1):De?"Object":"",ke=ge||typeof i.constructor!="function"?"":i.constructor.name?i.constructor.name+" ":"",pe=ke+(Me||De?"["+Hg.call(cie.call([],Me||[],De||[]),": ")+"] ":"");return Z.length===0?pe+"{}":R?pe+"{"+MU(Z,R)+"}":pe+"{ "+Hg.call(Z,", ")+" }"}return String(i)};function gie(o,i,c){var d=(c.quoteStyle||i)==="double"?'"':"'";return d+o+d}function uOe(o){return Y0.call(String(o),/"/g,""")}function $U(o){return J0(o)==="[object Array]"&&(!td||!(typeof o=="object"&&td in o))}function dOe(o){return J0(o)==="[object Date]"&&(!td||!(typeof o=="object"&&td in o))}function bie(o){return J0(o)==="[object RegExp]"&&(!td||!(typeof o=="object"&&td in o))}function fOe(o){return J0(o)==="[object Error]"&&(!td||!(typeof o=="object"&&td in o))}function mOe(o){return J0(o)==="[object String]"&&(!td||!(typeof o=="object"&&td in o))}function pOe(o){return J0(o)==="[object Number]"&&(!td||!(typeof o=="object"&&td in o))}function hOe(o){return J0(o)==="[object Boolean]"&&(!td||!(typeof o=="object"&&td in o))}function yie(o){if(PE)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!BU)return!1;try{return BU.call(o),!0}catch(i){}return!1}function gOe(o){if(!o||typeof o!="object"||!NU)return!1;try{return NU.call(o),!0}catch(i){}return!1}var bOe=Object.prototype.hasOwnProperty||function(o){return o in this};function X0(o,i){return bOe.call(o,i)}function J0(o){return sOe.call(o)}function yOe(o){if(o.name)return o.name;var i=aOe.call(rOe.call(o),/^function\s*([\w$]+)/);return i?i[1]:null}function vie(o,i){if(o.indexOf)return o.indexOf(i);for(var c=0,d=o.length;c<d;c++)if(o[c]===i)return c;return-1}function vOe(o){if(!jP||!o||typeof o!="object")return!1;try{jP.call(o);try{ZP.call(o)}catch(i){return!0}return o instanceof Map}catch(i){}return!1}function COe(o){if(!AA||!o||typeof o!="object")return!1;try{AA.call(o,AA);try{BA.call(o,BA)}catch(i){return!0}return o instanceof WeakMap}catch(i){}return!1}function wOe(o){if(!aie||!o||typeof o!="object")return!1;try{return aie.call(o),!0}catch(i){}return!1}function SOe(o){if(!ZP||!o||typeof o!="object")return!1;try{ZP.call(o);try{jP.call(o)}catch(i){return!0}return o instanceof Set}catch(i){}return!1}function xOe(o){if(!BA||!o||typeof o!="object")return!1;try{BA.call(o,BA);try{AA.call(o,AA)}catch(i){return!0}return o instanceof WeakSet}catch(i){}return!1}function EOe(o){return!o||typeof o!="object"?!1:typeof HTMLElement!="undefined"&&o instanceof HTMLElement?!0:typeof o.nodeName=="string"&&typeof o.getAttribute=="function"}function Cie(o,i){if(o.length>i.maxStringLength){var c=o.length-i.maxStringLength,d="... "+c+" more character"+(c>1?"s":"");return Cie(OU.call(o,0,i.maxStringLength),i)+d}var h=Y0.call(Y0.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kOe);return gie(h,"single",i)}function kOe(o){var i=o.charCodeAt(0),c={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];return c?"\\"+c:"\\x"+(i<16?"0":"")+iOe.call(i.toString(16))}function DA(o){return"Object("+o+")"}function RU(o){return o+" { ? }"}function wie(o,i,c,d){var h=d?MU(c,d):Hg.call(c,", ");return o+" ("+i+") {"+h+"}"}function TOe(o){for(var i=0;i<o.length;i++)if(vie(o[i],`
|
|
48
48
|
`)>=0)return!1;return!0}function _Oe(o,i){var c;if(o.indent===" ")c=" ";else if(typeof o.indent=="number"&&o.indent>0)c=Hg.call(Array(o.indent+1)," ");else return null;return{base:c,prev:Hg.call(Array(i+1),c)}}function MU(o,i){if(o.length===0)return"";var c=`
|
|
49
49
|
`+i.prev+i.base;return c+Hg.call(o,","+c)+`
|
|
50
|
-
`+i.prev}function KP(o,i){var c=$U(o),d=[];if(c){d.length=o.length;for(var h=0;h<o.length;h++)d[h]=X0(o,h)?i(o[h],o):""}var v=typeof AU=="function"?AU(o):[],w;if(PE){w={};for(var x=0;x<v.length;x++)w["$"+v[x]]=v[x]}for(var T in o)X0(o,T)&&(c&&String(Number(T))===T&&T<o.length||PE&&w["$"+T]instanceof Symbol||(lie.call(/[^\w$]/,T)?d.push(i(T,o)+": "+i(o[T],o)):d.push(T+": "+i(o[T],o))));if(typeof AU=="function")for(var O=0;O<v.length;O++)die.call(o,v[O])&&d.push("["+i(v[O])+"]: "+i(o[v[O]],o));return d}var PU=xU,IE=J_e,OOe=cOe,NOe=PU("%TypeError%"),qP=PU("%WeakMap%",!0),GP=PU("%Map%",!0),AOe=IE("WeakMap.prototype.get",!0),BOe=IE("WeakMap.prototype.set",!0),DOe=IE("WeakMap.prototype.has",!0),$Oe=IE("Map.prototype.get",!0),ROe=IE("Map.prototype.set",!0),MOe=IE("Map.prototype.has",!0),IU=function(o,i){for(var c=o,d;(d=c.next)!==null;c=d)if(d.key===i)return c.next=d.next,d.next=o.next,o.next=d,d},POe=function(o,i){var c=IU(o,i);return c&&c.value},IOe=function(o,i,c){var d=IU(o,i);d?d.value=c:o.next={key:i,next:o.next,value:c}},LOe=function(o,i){return!!IU(o,i)},FOe=function(){var i,c,d,h={assert:function(v){if(!h.has(v))throw new NOe("Side channel does not contain "+OOe(v))},get:function(v){if(qP&&v&&(typeof v=="object"||typeof v=="function")){if(i)return AOe(i,v)}else if(GP){if(c)return $Oe(c,v)}else if(d)return POe(d,v)},has:function(v){if(qP&&v&&(typeof v=="object"||typeof v=="function")){if(i)return DOe(i,v)}else if(GP){if(c)return MOe(c,v)}else if(d)return LOe(d,v);return!1},set:function(v,w){qP&&v&&(typeof v=="object"||typeof v=="function")?(i||(i=new qP),BOe(i,v,w)):GP?(c||(c=new GP),ROe(c,v,w)):(d||(d={key:{},next:null}),IOe(d,v,w))}};return h},zOe=String.prototype.replace,VOe=/%20/g,LU={RFC1738:"RFC1738",RFC3986:"RFC3986"},FU={default:LU.RFC3986,formatters:{RFC1738:function(o){return zOe.call(o,VOe,"+")},RFC3986:function(o){return String(o)}},RFC1738:LU.RFC1738,RFC3986:LU.RFC3986},HOe=FU,zU=Object.prototype.hasOwnProperty,Hw=Array.isArray,Ug=function(){for(var o=[],i=0;i<256;++i)o.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return o}(),UOe=function(i){for(;i.length>1;){var c=i.pop(),d=c.obj[c.prop];if(Hw(d)){for(var h=[],v=0;v<d.length;++v)typeof d[v]!="undefined"&&h.push(d[v]);c.obj[c.prop]=h}}},Sie=function(i,c){for(var d=c&&c.plainObjects?Object.create(null):{},h=0;h<i.length;++h)typeof i[h]!="undefined"&&(d[h]=i[h]);return d},WOe=function o(i,c,d){if(!c)return i;if(typeof c!="object"){if(Hw(i))i.push(c);else if(i&&typeof i=="object")(d&&(d.plainObjects||d.allowPrototypes)||!zU.call(Object.prototype,c))&&(i[c]=!0);else return[i,c];return i}if(!i||typeof i!="object")return[i].concat(c);var h=i;return Hw(i)&&!Hw(c)&&(h=Sie(i,d)),Hw(i)&&Hw(c)?(c.forEach(function(v,w){if(zU.call(i,w)){var x=i[w];x&&typeof x=="object"&&v&&typeof v=="object"?i[w]=o(x,v,d):i.push(v)}else i[w]=v}),i):Object.keys(c).reduce(function(v,w){var x=c[w];return zU.call(v,w)?v[w]=o(v[w],x,d):v[w]=x,v},h)},jOe=function(i,c){return Object.keys(c).reduce(function(d,h){return d[h]=c[h],d},i)},ZOe=function(o,i,c){var d=o.replace(/\+/g," ");if(c==="iso-8859-1")return d.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(d)}catch(h){return d}},KOe=function(i,c,d,h,v){if(i.length===0)return i;var w=i;if(typeof i=="symbol"?w=Symbol.prototype.toString.call(i):typeof i!="string"&&(w=String(i)),d==="iso-8859-1")return escape(w).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});for(var x="",T=0;T<w.length;++T){var O=w.charCodeAt(T);if(O===45||O===46||O===95||O===126||O>=48&&O<=57||O>=65&&O<=90||O>=97&&O<=122||v===HOe.RFC1738&&(O===40||O===41)){x+=w.charAt(T);continue}if(O<128){x=x+Ug[O];continue}if(O<2048){x=x+(Ug[192|O>>6]+Ug[128|O&63]);continue}if(O<55296||O>=57344){x=x+(Ug[224|O>>12]+Ug[128|O>>6&63]+Ug[128|O&63]);continue}T+=1,O=65536+((O&1023)<<10|w.charCodeAt(T)&1023),x+=Ug[240|O>>18]+Ug[128|O>>12&63]+Ug[128|O>>6&63]+Ug[128|O&63]}return x},qOe=function(i){for(var c=[{obj:{o:i},prop:"o"}],d=[],h=0;h<c.length;++h)for(var v=c[h],w=v.obj[v.prop],x=Object.keys(w),T=0;T<x.length;++T){var O=x[T],D=w[O];typeof D=="object"&&D!==null&&d.indexOf(D)===-1&&(c.push({obj:w,prop:O}),d.push(D))}return UOe(c),i},GOe=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},YOe=function(i){return!i||typeof i!="object"?!1:!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))},XOe=function(i,c){return[].concat(i,c)},JOe=function(i,c){if(Hw(i)){for(var d=[],h=0;h<i.length;h+=1)d.push(c(i[h]));return d}return c(i)},xie={arrayToObject:Sie,assign:jOe,combine:XOe,compact:qOe,decode:ZOe,encode:KOe,isBuffer:YOe,isRegExp:GOe,maybeMap:JOe,merge:WOe},Eie=FOe,YP=xie,$A=FU,QOe=Object.prototype.hasOwnProperty,kie={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,c){return i+"["+c+"]"},repeat:function(i){return i}},H1=Array.isArray,eNe=Array.prototype.push,Tie=function(o,i){eNe.apply(o,H1(i)?i:[i])},tNe=Date.prototype.toISOString,_ie=$A.default,nd={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:YP.encode,encodeValuesOnly:!1,format:_ie,formatter:$A.formatters[_ie],indices:!1,serializeDate:function(i){return tNe.call(i)},skipNulls:!1,strictNullHandling:!1},nNe=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},VU={},oNe=function o(i,c,d,h,v,w,x,T,O,D,R,L,K,z,F,J){for(var G=i,se=J,H=0,Y=!1;(se=se.get(VU))!==void 0&&!Y;){var Ce=se.get(i);if(H+=1,typeof Ce!="undefined"){if(Ce===H)throw new RangeError("Cyclic object value");Y=!0}typeof se.get(VU)=="undefined"&&(H=0)}if(typeof T=="function"?G=T(c,G):G instanceof Date?G=R(G):d==="comma"&&H1(G)&&(G=YP.maybeMap(G,function(I){return I instanceof Date?R(I):I})),G===null){if(v)return x&&!z?x(c,nd.encoder,F,"key",L):c;G=""}if(nNe(G)||YP.isBuffer(G)){if(x){var de=z?c:x(c,nd.encoder,F,"key",L);return[K(de)+"="+K(x(G,nd.encoder,F,"value",L))]}return[K(c)+"="+K(String(G))]}var Z=[];if(typeof G=="undefined")return Z;var ge;if(d==="comma"&&H1(G))z&&x&&(G=YP.maybeMap(G,x)),ge=[{value:G.length>0?G.join(",")||null:void 0}];else if(H1(T))ge=T;else{var De=Object.keys(G);ge=O?De.sort(O):De}for(var Me=h&&H1(G)&&G.length===1?c+"[]":c,ke=0;ke<ge.length;++ke){var pe=ge[ke],$t=typeof pe=="object"&&typeof pe.value!="undefined"?pe.value:G[pe];if(!(w&&$t===null)){var ct=H1(G)?typeof d=="function"?d(Me,pe):Me:Me+(D?"."+pe:"["+pe+"]");J.set(i,H);var Je=Eie();Je.set(VU,J),Tie(Z,o($t,ct,d,h,v,w,d==="comma"&&z&&H1(G)?null:x,T,O,D,R,L,K,z,F,Je))}}return Z},sNe=function(i){if(!i)return nd;if(i.encoder!==null&&typeof i.encoder!="undefined"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=i.charset||nd.charset;if(typeof i.charset!="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var d=$A.default;if(typeof i.format!="undefined"){if(!QOe.call($A.formatters,i.format))throw new TypeError("Unknown format option provided.");d=i.format}var h=$A.formatters[d],v=nd.filter;return(typeof i.filter=="function"||H1(i.filter))&&(v=i.filter),{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:nd.addQueryPrefix,allowDots:typeof i.allowDots=="undefined"?nd.allowDots:!!i.allowDots,charset:c,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:nd.charsetSentinel,delimiter:typeof i.delimiter=="undefined"?nd.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:nd.encode,encoder:typeof i.encoder=="function"?i.encoder:nd.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:nd.encodeValuesOnly,filter:v,format:d,formatter:h,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:nd.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:nd.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:nd.strictNullHandling}},rNe=function(o,i){var c=o,d=sNe(i),h,v;typeof d.filter=="function"?(v=d.filter,c=v("",c)):H1(d.filter)&&(v=d.filter,h=v);var w=[];if(typeof c!="object"||c===null)return"";var x;i&&i.arrayFormat in kie?x=i.arrayFormat:i&&"indices"in i?x=i.indices?"indices":"repeat":x="indices";var T=kie[x];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=T==="comma"&&i&&i.commaRoundTrip;h||(h=Object.keys(c)),d.sort&&h.sort(d.sort);for(var D=Eie(),R=0;R<h.length;++R){var L=h[R];d.skipNulls&&c[L]===null||Tie(w,oNe(c[L],L,T,O,d.strictNullHandling,d.skipNulls,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,D))}var K=w.join(d.delimiter),z=d.addQueryPrefix===!0?"?":"";return d.charsetSentinel&&(d.charset==="iso-8859-1"?z+="utf8=%26%2310003%3B&":z+="utf8=%E2%9C%93&"),K.length>0?z+K:""},LE=xie,HU=Object.prototype.hasOwnProperty,aNe=Array.isArray,au={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:LE.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},iNe=function(o){return o.replace(/&#(\d+);/g,function(i,c){return String.fromCharCode(parseInt(c,10))})},Oie=function(o,i){return o&&typeof o=="string"&&i.comma&&o.indexOf(",")>-1?o.split(","):o},lNe="utf8=%26%2310003%3B",cNe="utf8=%E2%9C%93",uNe=function(i,c){var d={},h=c.ignoreQueryPrefix?i.replace(/^\?/,""):i,v=c.parameterLimit===1/0?void 0:c.parameterLimit,w=h.split(c.delimiter,v),x=-1,T,O=c.charset;if(c.charsetSentinel)for(T=0;T<w.length;++T)w[T].indexOf("utf8=")===0&&(w[T]===cNe?O="utf-8":w[T]===lNe&&(O="iso-8859-1"),x=T,T=w.length);for(T=0;T<w.length;++T)if(T!==x){var D=w[T],R=D.indexOf("]="),L=R===-1?D.indexOf("="):R+1,K,z;L===-1?(K=c.decoder(D,au.decoder,O,"key"),z=c.strictNullHandling?null:""):(K=c.decoder(D.slice(0,L),au.decoder,O,"key"),z=LE.maybeMap(Oie(D.slice(L+1),c),function(F){return c.decoder(F,au.decoder,O,"value")})),z&&c.interpretNumericEntities&&O==="iso-8859-1"&&(z=iNe(z)),D.indexOf("[]=")>-1&&(z=aNe(z)?[z]:z),HU.call(d,K)?d[K]=LE.combine(d[K],z):d[K]=z}return d},dNe=function(o,i,c,d){for(var h=d?i:Oie(i,c),v=o.length-1;v>=0;--v){var w,x=o[v];if(x==="[]"&&c.parseArrays)w=[].concat(h);else{w=c.plainObjects?Object.create(null):{};var T=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,O=parseInt(T,10);!c.parseArrays&&T===""?w={0:h}:!isNaN(O)&&x!==T&&String(O)===T&&O>=0&&c.parseArrays&&O<=c.arrayLimit?(w=[],w[O]=h):T!=="__proto__"&&(w[T]=h)}h=w}return h},fNe=function(i,c,d,h){if(i){var v=d.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i,w=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,T=d.depth>0&&w.exec(v),O=T?v.slice(0,T.index):v,D=[];if(O){if(!d.plainObjects&&HU.call(Object.prototype,O)&&!d.allowPrototypes)return;D.push(O)}for(var R=0;d.depth>0&&(T=x.exec(v))!==null&&R<d.depth;){if(R+=1,!d.plainObjects&&HU.call(Object.prototype,T[1].slice(1,-1))&&!d.allowPrototypes)return;D.push(T[1])}return T&&D.push("["+v.slice(T.index)+"]"),dNe(D,c,d,h)}},mNe=function(i){if(!i)return au;if(i.decoder!==null&&i.decoder!==void 0&&typeof i.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof i.charset!="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var c=typeof i.charset=="undefined"?au.charset:i.charset;return{allowDots:typeof i.allowDots=="undefined"?au.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes=="boolean"?i.allowPrototypes:au.allowPrototypes,allowSparse:typeof i.allowSparse=="boolean"?i.allowSparse:au.allowSparse,arrayLimit:typeof i.arrayLimit=="number"?i.arrayLimit:au.arrayLimit,charset:c,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:au.charsetSentinel,comma:typeof i.comma=="boolean"?i.comma:au.comma,decoder:typeof i.decoder=="function"?i.decoder:au.decoder,delimiter:typeof i.delimiter=="string"||LE.isRegExp(i.delimiter)?i.delimiter:au.delimiter,depth:typeof i.depth=="number"||i.depth===!1?+i.depth:au.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===!0,interpretNumericEntities:typeof i.interpretNumericEntities=="boolean"?i.interpretNumericEntities:au.interpretNumericEntities,parameterLimit:typeof i.parameterLimit=="number"?i.parameterLimit:au.parameterLimit,parseArrays:i.parseArrays!==!1,plainObjects:typeof i.plainObjects=="boolean"?i.plainObjects:au.plainObjects,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:au.strictNullHandling}},pNe=function(o,i){var c=mNe(i);if(o===""||o===null||typeof o=="undefined")return c.plainObjects?Object.create(null):{};for(var d=typeof o=="string"?uNe(o,c):o,h=c.plainObjects?Object.create(null):{},v=Object.keys(d),w=0;w<v.length;++w){var x=v[w],T=fNe(x,d[x],c,typeof o=="string");h=LE.merge(h,T,c)}return c.allowSparse===!0?h:LE.compact(h)},hNe=rNe,gNe=pNe,bNe=FU,yNe={formats:bNe,parse:gNe,stringify:hNe};const Nie=BCe(yNe);let Q0=window.sessionStorage,Wg={get:function(o){if(!Q0){this.noSupport();return}try{let i=Q0.getItem(o);return i==null?null:JSON.parse(i)}catch(i){return console.error(i),null}},set:function(o,i){if(!Q0){this.noSupport();return}if(!(o==null||i==null))try{Q0.setItem(o,JSON.stringify(i)),window.localStorage.setItem(o,JSON.stringify(i))}catch(c){console.error(c)}},remove:function(o){if(!Q0){this.noSupport();return}Q0.removeItem(o),window.localStorage.removeItem(o)},clearAll:function(){if(!Q0){this.noSupport();return}Q0.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};function vNe(o,i=!0,c){return ta(this,null,function*(){let{url:d,param:h,option:v}=c;if(o.name=="AxiosError"&&(o.code=="ERR_BAD_REQUEST"||o.code=="ERR_BAD_RESPONSE"))if(o.response){let{data:w,status:x}=o.response;if(x==401)if(v.withRefresh&&v.appendToken){v=He(le({},v),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{return yield CNe(d),yield PA(d,h,v)}catch(T){UU(v)}}else UU(v);else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:w.message||w.msg})}}else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:o.message||"服务器发生错误"})}else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:o.message})}})}function CNe(o){return ta(this,null,function*(){let i="",c=Wg.get("logininfo");if(c)i=c.refreshUrl;else throw new Error("未发现logininfo");i||(i=new URL(o).origin+"/system/login/refReshTokenWeb");let d=c.refresh_token;if(!d)throw new Error("logininfo中未发现refresh_token");let h=yield wNe(i,d),{data:v}=h;if(v.code=="200"){let w=v.val;c.refresh_token=w.refresh_token,c.token="bearer "+w.access_token,Wg.set("logininfo",c)}else throw new Error("刷新token失败")})}let XP=!1,Aie=[],Bie=[];function wNe(o,i){return new Promise((c,d)=>{Aie.push(c),Bie.push(d),XP||(XP=!0,PA(o,{refReshToken:i},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}).then(h=>{Aie.forEach(v=>{v(h)}),XP=!1}).catch(h=>{Bie.forEach(v=>{v(h)}),XP=!1}))})}function UU(o){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let i="/login.html",c=window.localStorage.getItem("loginPage");if(c)try{i=JSON.parse(c)}catch(d){}o.loginPage&&(i=o.loginPage),location.href=i}const jMe="",WU=(o,i)=>{const c=o.__vccOpts||o;for(const[d,h]of i)c[d]=h;return c},SNe={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"}}}},xNe={class:"v-spinner"};function ENe(o,i,c,d,h,v){return r.withDirectives((r.openBlock(),r.createElementBlock("div",xNe,[r.createElementVNode("div",{class:"v-sync v-sync1",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay1])},null,4),r.createElementVNode("div",{class:"v-sync v-sync2",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay2])},null,4),r.createElementVNode("div",{class:"v-sync v-sync3",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay3])},null,4)],512)),[[r.vShow,c.loading]])}const kNe=WU(SNe,[["render",ENe]]),TNe={class:"zy-loading-con"},_Ne=r.defineComponent({name:"LoadingPlay"}),ONe=r.defineComponent(He(le({},_Ne),{props:{cont:{type:r.ref},options:{type:Object}},setup(o){const{cont:i,options:c}=o,d=r.computed(()=>({left:c.left+"px",top:c.top+"px",right:c.right+"px",bottom:c.bottom+"px"})),h=r.computed(()=>i&&i.value?["show"]:null);return(v,w)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["zy-loading-wrapper",h.value]),style:r.normalizeStyle(d.value)},[r.createElementVNode("div",TNe,[r.createVNode(kNe,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),Die=1440,jU=216,NNe=56,JP={left:0,top:0,bottom:0,right:0};class ANe{constructor(){this.loadingCont=r.ref(!1),this.options=r.reactive(le({},JP)),this.createLoadingApp()}createLoadingApp(){let i=document.createElement("div");document.body.appendChild(i),this.loadingApp=r.createApp({name:"LoadingApp",render:()=>r.h(ONe,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(i)}ShowLoading(i){i=i?le(le({},JP),i):le({},JP),i.LoadingType=="business"?(i=le(le({},i),BNe()),delete i.LoadingType):i.LoadingType=="forceFullscreen"&&(i=le({},JP),delete i.LoadingType),wA(this.options,i),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function BNe(){let o=document.documentElement.clientWidth||document.body.clientWidth,i=0,c=0,d=0,h=0,v=document.querySelector(".zy-applayout-base");return v&&(i=NNe),o<=1480?v&&(c=jU+12):v&&(v.classList.contains("fullscreen")?c=jU+24:(c=Math.round((o-Die)/2)+jU,d=Math.round((o-Die)/2))),{left:c,top:i,bottom:h,right:d}}const QP=new ANe;function $ie(){let o=Wg.get("logininfo");if(!o)throw new Error("logininfo未发现");return o.token}function DNe(o){let i=$Ne(),c=i.checkApi(o);return c&&i.storeApi(o),c}function $Ne(){return RA.instance||(RA.instance=new RA),RA.instance}class RA{constructor(){this.apiList=[]}checkApi(i){let c=this.apiList.findIndex(v=>v.api==i);if(c<0)return!0;let d=this.apiList[c];return new Date().getTime()-d.time<=1e3?!1:(this.apiList.splice(c,1),!0)}storeApi(i){let c=this.apiList.findIndex(d=>d.api==i);c<0?this.apiList.push({api:i,time:new Date().getTime()}):this.apiList[c].time=new Date().getTime()}}RA.instance=null;const MA=yp("methods.Ajax"),eI={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:MA("successTipText"),confirmMsg:"",antiShake:!1,withRefresh:!0,responseType:"json"},PA=(o,i,c)=>ta(this,null,function*(){const d=o;c=c?le(le({},eI),c):le({},eI),c.confirmMsg&&(yield oU.confirm(c.confirmMsg,MA("confirmMsgText"),{confirmButtonText:MA("confirmButtonText"),cancelButtonText:MA("cancelButtonText"),type:"warning"})),c.method=c.method.toLowerCase();let h=i;if((c.method=="get"||c.method=="delete")&&i&&NE(i)&&Object.keys(i).length>0&&(o=o+(o.indexOf("?")>-1?"&"+Nie.stringify(i):"?"+Nie.stringify(i))),c.antiShake&&!DNe(o))throw console.warn(`${o}在1s内连续发起请求,判定为抖动`),new Error(MA("shakeText"));(c.method=="post"||c.method=="put")&&c.fd&&(h=vae(i));let v,w=c.fd?"multipart/form-data":"application/json;charset=UTF-8";if(c.appendToken){let x;try{x=$ie()}catch(T){if(c.handleError){UU(c);return}else console.error(T)}v=yU.create({headers:{Authorization:x,"Content-Type":w,"Accept-Language":Fw()}})}else v=yU.create({headers:{"Content-Type":w,"Accept-Language":Fw()}});try{if(c.loading){let T=null;c.fullscreen||(T={LoadingType:"business"}),c.forceFullscreen&&(T={LoadingType:"forceFullscreen"}),QP.ShowLoading(T)}let x=yield v.request({method:c.method,url:o,withCredentials:!1,data:h,responseType:c.responseType});return c.loading&&QP.HidenLoading(),x}catch(x){if(c.loading&&QP.HidenLoading(),c.handleError||c.withRefresh){let T={url:d,param:i,option:c},O=yield vNe(x,c.errorMsg,T);return O||x}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(x),x}}),jg=(o,i,c)=>ta(this,null,function*(){var w;const d=((w=window.HS_GLOBAL_CONFIG)==null?void 0:w.Ajax)||{};!!(c!=null&&c.successTip)&&(c.successMsg=!0),c=c?le(le(le({},eI),d),c):le(le({},d),eI),c.method=c.method.toLowerCase();let v=!1;c.hasOwnProperty("pageInfo")&&c.pageInfo!=null&&(v=!0,c.hasOwnProperty("page")&&!c.page&&(v=!1),i=le(le({},r.unref(c.pageInfo)),i));try{const x=yield PA(o,i,c);if(x instanceof k_e)throw x;let T=x.data;if(T.code!=200)throw c.errorMsg&&bp({type:"error",grouping:!0,message:T.msg}),new Error(`请求:${o}出现错误,错误码:${T.code},错误信息:${T.msg}`);{c.successMsg&&bp({type:"success",grouping:!0,message:c.successTip});let O=T.val||T.list,D=r.unref(c.pageInfo),R={total:0,pageSize:0,pageIndex:0};return v&&c.hasOwnProperty("pageInfo")&&(R.pageIndex=D.pageIndex,R.pageSize=D.pageSize,T.hasOwnProperty("pageInfo")?R=le({},T.pageInfo):R.total=T.total||0,D.total=R.total),{data:O,code:T.code,msg:T.msg,pageInfo:R}}}catch(x){throw console.warn(x),x}}),IA=(o="./login.html")=>{let i=window.localStorage.getItem("loginPage");if(i){try{i=JSON.parse(i)}catch(c){console.warn(c)}o=i}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=o},ZU=(o="./index.html")=>{let i=window.localStorage.getItem("homePage");if(i){try{i=JSON.parse(i)}catch(c){console.warn(c)}o=i}window.location.href=o};/*!
|
|
50
|
+
`+i.prev}function KP(o,i){var c=$U(o),d=[];if(c){d.length=o.length;for(var h=0;h<o.length;h++)d[h]=X0(o,h)?i(o[h],o):""}var v=typeof AU=="function"?AU(o):[],w;if(PE){w={};for(var x=0;x<v.length;x++)w["$"+v[x]]=v[x]}for(var T in o)X0(o,T)&&(c&&String(Number(T))===T&&T<o.length||PE&&w["$"+T]instanceof Symbol||(lie.call(/[^\w$]/,T)?d.push(i(T,o)+": "+i(o[T],o)):d.push(T+": "+i(o[T],o))));if(typeof AU=="function")for(var O=0;O<v.length;O++)die.call(o,v[O])&&d.push("["+i(v[O])+"]: "+i(o[v[O]],o));return d}var PU=xU,IE=J_e,OOe=cOe,NOe=PU("%TypeError%"),qP=PU("%WeakMap%",!0),GP=PU("%Map%",!0),AOe=IE("WeakMap.prototype.get",!0),BOe=IE("WeakMap.prototype.set",!0),DOe=IE("WeakMap.prototype.has",!0),$Oe=IE("Map.prototype.get",!0),ROe=IE("Map.prototype.set",!0),MOe=IE("Map.prototype.has",!0),IU=function(o,i){for(var c=o,d;(d=c.next)!==null;c=d)if(d.key===i)return c.next=d.next,d.next=o.next,o.next=d,d},POe=function(o,i){var c=IU(o,i);return c&&c.value},IOe=function(o,i,c){var d=IU(o,i);d?d.value=c:o.next={key:i,next:o.next,value:c}},LOe=function(o,i){return!!IU(o,i)},FOe=function(){var i,c,d,h={assert:function(v){if(!h.has(v))throw new NOe("Side channel does not contain "+OOe(v))},get:function(v){if(qP&&v&&(typeof v=="object"||typeof v=="function")){if(i)return AOe(i,v)}else if(GP){if(c)return $Oe(c,v)}else if(d)return POe(d,v)},has:function(v){if(qP&&v&&(typeof v=="object"||typeof v=="function")){if(i)return DOe(i,v)}else if(GP){if(c)return MOe(c,v)}else if(d)return LOe(d,v);return!1},set:function(v,w){qP&&v&&(typeof v=="object"||typeof v=="function")?(i||(i=new qP),BOe(i,v,w)):GP?(c||(c=new GP),ROe(c,v,w)):(d||(d={key:{},next:null}),IOe(d,v,w))}};return h},zOe=String.prototype.replace,VOe=/%20/g,LU={RFC1738:"RFC1738",RFC3986:"RFC3986"},FU={default:LU.RFC3986,formatters:{RFC1738:function(o){return zOe.call(o,VOe,"+")},RFC3986:function(o){return String(o)}},RFC1738:LU.RFC1738,RFC3986:LU.RFC3986},HOe=FU,zU=Object.prototype.hasOwnProperty,Hw=Array.isArray,Ug=function(){for(var o=[],i=0;i<256;++i)o.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return o}(),UOe=function(i){for(;i.length>1;){var c=i.pop(),d=c.obj[c.prop];if(Hw(d)){for(var h=[],v=0;v<d.length;++v)typeof d[v]!="undefined"&&h.push(d[v]);c.obj[c.prop]=h}}},Sie=function(i,c){for(var d=c&&c.plainObjects?Object.create(null):{},h=0;h<i.length;++h)typeof i[h]!="undefined"&&(d[h]=i[h]);return d},WOe=function o(i,c,d){if(!c)return i;if(typeof c!="object"){if(Hw(i))i.push(c);else if(i&&typeof i=="object")(d&&(d.plainObjects||d.allowPrototypes)||!zU.call(Object.prototype,c))&&(i[c]=!0);else return[i,c];return i}if(!i||typeof i!="object")return[i].concat(c);var h=i;return Hw(i)&&!Hw(c)&&(h=Sie(i,d)),Hw(i)&&Hw(c)?(c.forEach(function(v,w){if(zU.call(i,w)){var x=i[w];x&&typeof x=="object"&&v&&typeof v=="object"?i[w]=o(x,v,d):i.push(v)}else i[w]=v}),i):Object.keys(c).reduce(function(v,w){var x=c[w];return zU.call(v,w)?v[w]=o(v[w],x,d):v[w]=x,v},h)},jOe=function(i,c){return Object.keys(c).reduce(function(d,h){return d[h]=c[h],d},i)},ZOe=function(o,i,c){var d=o.replace(/\+/g," ");if(c==="iso-8859-1")return d.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(d)}catch(h){return d}},KOe=function(i,c,d,h,v){if(i.length===0)return i;var w=i;if(typeof i=="symbol"?w=Symbol.prototype.toString.call(i):typeof i!="string"&&(w=String(i)),d==="iso-8859-1")return escape(w).replace(/%u[0-9a-f]{4}/gi,function(D){return"%26%23"+parseInt(D.slice(2),16)+"%3B"});for(var x="",T=0;T<w.length;++T){var O=w.charCodeAt(T);if(O===45||O===46||O===95||O===126||O>=48&&O<=57||O>=65&&O<=90||O>=97&&O<=122||v===HOe.RFC1738&&(O===40||O===41)){x+=w.charAt(T);continue}if(O<128){x=x+Ug[O];continue}if(O<2048){x=x+(Ug[192|O>>6]+Ug[128|O&63]);continue}if(O<55296||O>=57344){x=x+(Ug[224|O>>12]+Ug[128|O>>6&63]+Ug[128|O&63]);continue}T+=1,O=65536+((O&1023)<<10|w.charCodeAt(T)&1023),x+=Ug[240|O>>18]+Ug[128|O>>12&63]+Ug[128|O>>6&63]+Ug[128|O&63]}return x},qOe=function(i){for(var c=[{obj:{o:i},prop:"o"}],d=[],h=0;h<c.length;++h)for(var v=c[h],w=v.obj[v.prop],x=Object.keys(w),T=0;T<x.length;++T){var O=x[T],D=w[O];typeof D=="object"&&D!==null&&d.indexOf(D)===-1&&(c.push({obj:w,prop:O}),d.push(D))}return UOe(c),i},GOe=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},YOe=function(i){return!i||typeof i!="object"?!1:!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))},XOe=function(i,c){return[].concat(i,c)},JOe=function(i,c){if(Hw(i)){for(var d=[],h=0;h<i.length;h+=1)d.push(c(i[h]));return d}return c(i)},xie={arrayToObject:Sie,assign:jOe,combine:XOe,compact:qOe,decode:ZOe,encode:KOe,isBuffer:YOe,isRegExp:GOe,maybeMap:JOe,merge:WOe},Eie=FOe,YP=xie,$A=FU,QOe=Object.prototype.hasOwnProperty,kie={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,c){return i+"["+c+"]"},repeat:function(i){return i}},H1=Array.isArray,eNe=Array.prototype.push,Tie=function(o,i){eNe.apply(o,H1(i)?i:[i])},tNe=Date.prototype.toISOString,_ie=$A.default,nd={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:YP.encode,encodeValuesOnly:!1,format:_ie,formatter:$A.formatters[_ie],indices:!1,serializeDate:function(i){return tNe.call(i)},skipNulls:!1,strictNullHandling:!1},nNe=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},VU={},oNe=function o(i,c,d,h,v,w,x,T,O,D,R,L,K,z,F,J){for(var G=i,se=J,H=0,Y=!1;(se=se.get(VU))!==void 0&&!Y;){var Ce=se.get(i);if(H+=1,typeof Ce!="undefined"){if(Ce===H)throw new RangeError("Cyclic object value");Y=!0}typeof se.get(VU)=="undefined"&&(H=0)}if(typeof T=="function"?G=T(c,G):G instanceof Date?G=R(G):d==="comma"&&H1(G)&&(G=YP.maybeMap(G,function(I){return I instanceof Date?R(I):I})),G===null){if(v)return x&&!z?x(c,nd.encoder,F,"key",L):c;G=""}if(nNe(G)||YP.isBuffer(G)){if(x){var de=z?c:x(c,nd.encoder,F,"key",L);return[K(de)+"="+K(x(G,nd.encoder,F,"value",L))]}return[K(c)+"="+K(String(G))]}var Z=[];if(typeof G=="undefined")return Z;var ge;if(d==="comma"&&H1(G))z&&x&&(G=YP.maybeMap(G,x)),ge=[{value:G.length>0?G.join(",")||null:void 0}];else if(H1(T))ge=T;else{var De=Object.keys(G);ge=O?De.sort(O):De}for(var Me=h&&H1(G)&&G.length===1?c+"[]":c,ke=0;ke<ge.length;++ke){var pe=ge[ke],$t=typeof pe=="object"&&typeof pe.value!="undefined"?pe.value:G[pe];if(!(w&&$t===null)){var ct=H1(G)?typeof d=="function"?d(Me,pe):Me:Me+(D?"."+pe:"["+pe+"]");J.set(i,H);var Je=Eie();Je.set(VU,J),Tie(Z,o($t,ct,d,h,v,w,d==="comma"&&z&&H1(G)?null:x,T,O,D,R,L,K,z,F,Je))}}return Z},sNe=function(i){if(!i)return nd;if(i.encoder!==null&&typeof i.encoder!="undefined"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=i.charset||nd.charset;if(typeof i.charset!="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var d=$A.default;if(typeof i.format!="undefined"){if(!QOe.call($A.formatters,i.format))throw new TypeError("Unknown format option provided.");d=i.format}var h=$A.formatters[d],v=nd.filter;return(typeof i.filter=="function"||H1(i.filter))&&(v=i.filter),{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:nd.addQueryPrefix,allowDots:typeof i.allowDots=="undefined"?nd.allowDots:!!i.allowDots,charset:c,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:nd.charsetSentinel,delimiter:typeof i.delimiter=="undefined"?nd.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:nd.encode,encoder:typeof i.encoder=="function"?i.encoder:nd.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:nd.encodeValuesOnly,filter:v,format:d,formatter:h,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:nd.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:nd.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:nd.strictNullHandling}},rNe=function(o,i){var c=o,d=sNe(i),h,v;typeof d.filter=="function"?(v=d.filter,c=v("",c)):H1(d.filter)&&(v=d.filter,h=v);var w=[];if(typeof c!="object"||c===null)return"";var x;i&&i.arrayFormat in kie?x=i.arrayFormat:i&&"indices"in i?x=i.indices?"indices":"repeat":x="indices";var T=kie[x];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=T==="comma"&&i&&i.commaRoundTrip;h||(h=Object.keys(c)),d.sort&&h.sort(d.sort);for(var D=Eie(),R=0;R<h.length;++R){var L=h[R];d.skipNulls&&c[L]===null||Tie(w,oNe(c[L],L,T,O,d.strictNullHandling,d.skipNulls,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,D))}var K=w.join(d.delimiter),z=d.addQueryPrefix===!0?"?":"";return d.charsetSentinel&&(d.charset==="iso-8859-1"?z+="utf8=%26%2310003%3B&":z+="utf8=%E2%9C%93&"),K.length>0?z+K:""},LE=xie,HU=Object.prototype.hasOwnProperty,aNe=Array.isArray,au={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:LE.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},iNe=function(o){return o.replace(/&#(\d+);/g,function(i,c){return String.fromCharCode(parseInt(c,10))})},Oie=function(o,i){return o&&typeof o=="string"&&i.comma&&o.indexOf(",")>-1?o.split(","):o},lNe="utf8=%26%2310003%3B",cNe="utf8=%E2%9C%93",uNe=function(i,c){var d={},h=c.ignoreQueryPrefix?i.replace(/^\?/,""):i,v=c.parameterLimit===1/0?void 0:c.parameterLimit,w=h.split(c.delimiter,v),x=-1,T,O=c.charset;if(c.charsetSentinel)for(T=0;T<w.length;++T)w[T].indexOf("utf8=")===0&&(w[T]===cNe?O="utf-8":w[T]===lNe&&(O="iso-8859-1"),x=T,T=w.length);for(T=0;T<w.length;++T)if(T!==x){var D=w[T],R=D.indexOf("]="),L=R===-1?D.indexOf("="):R+1,K,z;L===-1?(K=c.decoder(D,au.decoder,O,"key"),z=c.strictNullHandling?null:""):(K=c.decoder(D.slice(0,L),au.decoder,O,"key"),z=LE.maybeMap(Oie(D.slice(L+1),c),function(F){return c.decoder(F,au.decoder,O,"value")})),z&&c.interpretNumericEntities&&O==="iso-8859-1"&&(z=iNe(z)),D.indexOf("[]=")>-1&&(z=aNe(z)?[z]:z),HU.call(d,K)?d[K]=LE.combine(d[K],z):d[K]=z}return d},dNe=function(o,i,c,d){for(var h=d?i:Oie(i,c),v=o.length-1;v>=0;--v){var w,x=o[v];if(x==="[]"&&c.parseArrays)w=[].concat(h);else{w=c.plainObjects?Object.create(null):{};var T=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,O=parseInt(T,10);!c.parseArrays&&T===""?w={0:h}:!isNaN(O)&&x!==T&&String(O)===T&&O>=0&&c.parseArrays&&O<=c.arrayLimit?(w=[],w[O]=h):T!=="__proto__"&&(w[T]=h)}h=w}return h},fNe=function(i,c,d,h){if(i){var v=d.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i,w=/(\[[^[\]]*])/,x=/(\[[^[\]]*])/g,T=d.depth>0&&w.exec(v),O=T?v.slice(0,T.index):v,D=[];if(O){if(!d.plainObjects&&HU.call(Object.prototype,O)&&!d.allowPrototypes)return;D.push(O)}for(var R=0;d.depth>0&&(T=x.exec(v))!==null&&R<d.depth;){if(R+=1,!d.plainObjects&&HU.call(Object.prototype,T[1].slice(1,-1))&&!d.allowPrototypes)return;D.push(T[1])}return T&&D.push("["+v.slice(T.index)+"]"),dNe(D,c,d,h)}},mNe=function(i){if(!i)return au;if(i.decoder!==null&&i.decoder!==void 0&&typeof i.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof i.charset!="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var c=typeof i.charset=="undefined"?au.charset:i.charset;return{allowDots:typeof i.allowDots=="undefined"?au.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes=="boolean"?i.allowPrototypes:au.allowPrototypes,allowSparse:typeof i.allowSparse=="boolean"?i.allowSparse:au.allowSparse,arrayLimit:typeof i.arrayLimit=="number"?i.arrayLimit:au.arrayLimit,charset:c,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:au.charsetSentinel,comma:typeof i.comma=="boolean"?i.comma:au.comma,decoder:typeof i.decoder=="function"?i.decoder:au.decoder,delimiter:typeof i.delimiter=="string"||LE.isRegExp(i.delimiter)?i.delimiter:au.delimiter,depth:typeof i.depth=="number"||i.depth===!1?+i.depth:au.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===!0,interpretNumericEntities:typeof i.interpretNumericEntities=="boolean"?i.interpretNumericEntities:au.interpretNumericEntities,parameterLimit:typeof i.parameterLimit=="number"?i.parameterLimit:au.parameterLimit,parseArrays:i.parseArrays!==!1,plainObjects:typeof i.plainObjects=="boolean"?i.plainObjects:au.plainObjects,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:au.strictNullHandling}},pNe=function(o,i){var c=mNe(i);if(o===""||o===null||typeof o=="undefined")return c.plainObjects?Object.create(null):{};for(var d=typeof o=="string"?uNe(o,c):o,h=c.plainObjects?Object.create(null):{},v=Object.keys(d),w=0;w<v.length;++w){var x=v[w],T=fNe(x,d[x],c,typeof o=="string");h=LE.merge(h,T,c)}return c.allowSparse===!0?h:LE.compact(h)},hNe=rNe,gNe=pNe,bNe=FU,yNe={formats:bNe,parse:gNe,stringify:hNe};const Nie=BCe(yNe);let Q0=window.sessionStorage,Wg={get:function(o){if(!Q0){this.noSupport();return}try{let i=Q0.getItem(o);return i==null?null:JSON.parse(i)}catch(i){return console.error(i),null}},set:function(o,i){if(!Q0){this.noSupport();return}if(!(o==null||i==null))try{Q0.setItem(o,JSON.stringify(i)),window.localStorage.setItem(o,JSON.stringify(i))}catch(c){console.error(c)}},remove:function(o){if(!Q0){this.noSupport();return}Q0.removeItem(o),window.localStorage.removeItem(o)},clearAll:function(){if(!Q0){this.noSupport();return}Q0.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};function vNe(o,i=!0,c){return ta(this,null,function*(){let{url:d,param:h,option:v}=c;if(o.name=="AxiosError"&&(o.code=="ERR_BAD_REQUEST"||o.code=="ERR_BAD_RESPONSE"))if(o.response){let{data:w,status:x}=o.response;if(x==401)if(v.withRefresh&&v.appendToken){v=He(le({},v),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{return yield CNe(d),yield PA(d,h,v)}catch(T){UU(v)}}else UU(v);else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:w.message||w.msg})}}else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:o.message||"服务器发生错误"})}else{if(!v.handleError)return;i&&bp({type:"error",grouping:!0,message:o.message})}})}function CNe(o){return ta(this,null,function*(){let i="",c=Wg.get("logininfo");if(c)i=c.refreshUrl;else throw new Error("未发现logininfo");i||(i=new URL(o).origin+"/system/login/refReshTokenWeb");let d=c.refresh_token;if(!d)throw new Error("logininfo中未发现refresh_token");let h=yield wNe(i,d),{data:v}=h;if(v.code=="200"){let w=v.val;c.refresh_token=w.refresh_token,c.token="bearer "+w.access_token,Wg.set("logininfo",c)}else throw new Error("刷新token失败")})}let XP=!1,Aie=[],Bie=[];function wNe(o,i){return new Promise((c,d)=>{Aie.push(c),Bie.push(d),XP||(XP=!0,PA(o,{refReshToken:i},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}).then(h=>{Aie.forEach(v=>{v(h)}),XP=!1}).catch(h=>{Bie.forEach(v=>{v(h)}),XP=!1}))})}function UU(o){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let i="/login.html",c=window.localStorage.getItem("loginPage");if(c)try{i=JSON.parse(c)}catch(d){}o.loginPage&&(i=o.loginPage),location.href=i}const jMe="",WU=(o,i)=>{const c=o.__vccOpts||o;for(const[d,h]of i)c[d]=h;return c},SNe={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"}}}},xNe={class:"v-spinner"};function ENe(o,i,c,d,h,v){return r.withDirectives((r.openBlock(),r.createElementBlock("div",xNe,[r.createElementVNode("div",{class:"v-sync v-sync1",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay1])},null,4),r.createElementVNode("div",{class:"v-sync v-sync2",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay2])},null,4),r.createElementVNode("div",{class:"v-sync v-sync3",style:r.normalizeStyle([h.spinnerStyle,h.spinnerDelay3])},null,4)],512)),[[r.vShow,c.loading]])}const kNe=WU(SNe,[["render",ENe]]),TNe={class:"zy-loading-con"},_Ne=r.defineComponent({name:"LoadingPlay"}),ONe=r.defineComponent(He(le({},_Ne),{props:{cont:{type:r.ref},options:{type:Object}},setup(o){const{cont:i,options:c}=o,d=r.computed(()=>({left:c.left+"px",top:c.top+"px",right:c.right+"px",bottom:c.bottom+"px"})),h=r.computed(()=>i&&i.value?["show"]:null);return(v,w)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["zy-loading-wrapper",h.value]),style:r.normalizeStyle(d.value)},[r.createElementVNode("div",TNe,[r.createVNode(kNe,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),Die=1440,jU=216,NNe=56,JP={left:0,top:0,bottom:0,right:0};class ANe{constructor(){this.loadingCont=r.ref(!1),this.options=r.reactive(le({},JP)),this.createLoadingApp()}createLoadingApp(){let i=document.createElement("div");document.body.appendChild(i),this.loadingApp=r.createApp({name:"LoadingApp",render:()=>r.h(ONe,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(i)}ShowLoading(i){i=i?le(le({},JP),i):le({},JP),i.LoadingType=="business"?(i=le(le({},i),BNe()),delete i.LoadingType):i.LoadingType=="forceFullscreen"&&(i=le({},JP),delete i.LoadingType),wA(this.options,i),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function BNe(){let o=document.documentElement.clientWidth||document.body.clientWidth,i=0,c=0,d=0,h=0,v=document.querySelector(".zy-applayout-base");return v&&(i=NNe),o<=1480?v&&(c=jU+12):v&&(v.classList.contains("fullscreen")?c=jU+24:(c=Math.round((o-Die)/2)+jU,d=Math.round((o-Die)/2))),{left:c,top:i,bottom:h,right:d}}const QP=new ANe;function $ie(){let o=Wg.get("logininfo");if(!o)throw new Error("logininfo未发现");return o.token}function DNe(o){let i=$Ne(),c=i.checkApi(o);return c&&i.storeApi(o),c}function $Ne(){return RA.instance||(RA.instance=new RA),RA.instance}class RA{constructor(){this.apiList=[]}checkApi(i){let c=this.apiList.findIndex(v=>v.api==i);if(c<0)return!0;let d=this.apiList[c];return new Date().getTime()-d.time<=1e3?!1:(this.apiList.splice(c,1),!0)}storeApi(i){let c=this.apiList.findIndex(d=>d.api==i);c<0?this.apiList.push({api:i,time:new Date().getTime()}):this.apiList[c].time=new Date().getTime()}}RA.instance=null;const MA=yp("methods.Ajax"),eI={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:MA("successTipText"),confirmMsg:"",antiShake:!1,withRefresh:!0,responseType:"json"},PA=(o,i,c)=>ta(this,null,function*(){const d=o;c=c?le(le({},eI),c):le({},eI),c.confirmMsg&&(yield oU.confirm(c.confirmMsg,MA("confirmMsgText"),{confirmButtonText:MA("confirmButtonText"),cancelButtonText:MA("cancelButtonText"),type:"warning"})),c.method=c.method.toLowerCase();let h=i;if((c.method=="get"||c.method=="delete")&&i&&NE(i)&&Object.keys(i).length>0&&(o=o+(o.indexOf("?")>-1?"&"+Nie.stringify(i):"?"+Nie.stringify(i))),c.antiShake&&!DNe(o))throw console.warn(`${o}在1s内连续发起请求,判定为抖动`),new Error(MA("shakeText"));(c.method=="post"||c.method=="put")&&c.fd&&(h=vae(i));let v,w=c.fd?"multipart/form-data":"application/json;charset=UTF-8";if(c.appendToken){let x;try{x=$ie()}catch(T){if(c.handleError){UU(c);return}else console.error(T)}v=yU.create({headers:{Authorization:x,"Content-Type":w,"Accept-Language":Fw()},signal:c.signal?c.signal.signal:null})}else v=yU.create({headers:{"Content-Type":w,"Accept-Language":Fw()},signal:c.signal?c.signal.signal:null});try{if(c.loading){let T=null;c.fullscreen||(T={LoadingType:"business"}),c.forceFullscreen&&(T={LoadingType:"forceFullscreen"}),QP.ShowLoading(T)}let x=yield v.request({method:c.method,url:o,withCredentials:!1,data:h,responseType:c.responseType});return c.loading&&QP.HidenLoading(),x}catch(x){if(c.loading&&QP.HidenLoading(),c.handleError||c.withRefresh){let T={url:d,param:i,option:c};if(x.name&&x.name=="CanceledError")return x;let O=yield vNe(x,c.errorMsg,T);return O||x}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(x),x}}),jg=(o,i,c)=>ta(this,null,function*(){var w;const d=((w=window.HS_GLOBAL_CONFIG)==null?void 0:w.Ajax)||{};!!(c!=null&&c.successTip)&&(c.successMsg=!0),c=c?le(le(le({},eI),d),c):le(le({},d),eI),c.method=c.method.toLowerCase();let v=!1;c.hasOwnProperty("pageInfo")&&c.pageInfo!=null&&(v=!0,c.hasOwnProperty("page")&&!c.page&&(v=!1),i=le(le({},r.unref(c.pageInfo)),i));try{const x=yield PA(o,i,c);if(x instanceof k_e)throw x;let T=x.data;if(T.code!=200){if(c.errorMsg&&bp({type:"error",grouping:!0,message:T.msg}),T.name&&T.name=="CanceledError")return console.warn("请求被取消"),{data:null};throw new Error(`请求:${o}出现错误,错误码:${T.code},错误信息:${T.msg}`)}else{c.successMsg&&bp({type:"success",grouping:!0,message:c.successTip});let O=T.val||T.list,D=r.unref(c.pageInfo),R={total:0,pageSize:0,pageIndex:0};return v&&c.hasOwnProperty("pageInfo")&&(R.pageIndex=D.pageIndex,R.pageSize=D.pageSize,T.hasOwnProperty("pageInfo")?R=le({},T.pageInfo):R.total=T.total||0,D.total=R.total),{data:O,code:T.code,msg:T.msg,pageInfo:R}}}catch(x){throw console.warn(x),x}}),IA=(o="./login.html")=>{let i=window.localStorage.getItem("loginPage");if(i){try{i=JSON.parse(i)}catch(c){console.warn(c)}o=i}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=o},ZU=(o="./index.html")=>{let i=window.localStorage.getItem("homePage");if(i){try{i=JSON.parse(i)}catch(c){console.warn(c)}o=i}window.location.href=o};/*!
|
|
51
51
|
* Viewer.js v1.11.3
|
|
52
52
|
* https://fengyuanchen.github.io/viewerjs
|
|
53
53
|
*
|