ScopeSentry/static/assets/index-Cr6_Qzhf.js

2 lines
66 KiB
JavaScript

import{ce as e,aH as t,aI as r,cf as n,a2 as o,cg as i,ch as a,ci as s}from"./index-rxu9Faad.js";function c(e,t){return function(){return e.apply(t,arguments)}}const{toString:l}=Object.prototype,{getPrototypeOf:u}=Object,f=(e=>t=>{const r=l.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>f(t)===e),y=e=>t=>typeof t===e,{isArray:d}=Array,h=y("undefined");const m=p("ArrayBuffer");const b=y("string"),g=y("function"),w=y("number"),v=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==f(e))return!1;const t=u(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},O=p("Date"),E=p("File"),A=p("Blob"),j=p("FileList"),R=p("URLSearchParams");function P(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function x(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!h(e)&&e!==T;const _=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&u(Uint8Array)),F=p("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),k=p("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};P(r,((r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},I="abcdefghijklmnopqrstuvwxyz",U="0123456789",B={DIGIT:U,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+U};const L=p("AsyncFunction"),M={isArray:d,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=f(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:b,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:S,isUndefined:h,isDate:O,isFile:E,isBlob:A,isRegExp:k,isFunction:g,isStream:e=>v(e)&&g(e.pipe),isURLSearchParams:R,isTypedArray:_,isFileList:j,forEach:P,merge:function e(){const{caseless:t}=N(this)&&this||{},r={},n=(n,o)=>{const i=t&&x(r,o)||o;S(r[i])&&S(n)?r[i]=e(r[i],n):S(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&P(arguments[o],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(P(t,((t,n)=>{r&&g(t)?e[n]=c(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:p,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];g(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:x,global:T,isContextDefined:N,ALPHABET:B,generateString:(e=16,t=B.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=d(e)?[]:{};return P(e,((e,t)=>{const i=r(e,n+1);!h(i)&&(o[t]=i)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:L,isThenable:e=>e&&(v(e)||g(e))&&g(e.then)&&g(e.catch)};function q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}M.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const W=q.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{z[e]={value:e}})),Object.defineProperties(q,z),Object.defineProperty(W,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,i)=>{const a=Object.create(W);return M.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),q.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function H(e){return M.isPlainObject(e)||M.isArray(e)}function K(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function J(e,t,r){return e?e.concat(t).map((function(e,t){return e=K(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const V=M.toFlatObject(M,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!M.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(M.isDate(e))return e.toISOString();if(!s&&M.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(e)||M.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(M.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(M.isArray(e)&&function(e){return M.isArray(e)&&!e.some(H)}(e)||(M.isFileList(e)||M.endsWith(r,"[]"))&&(s=M.toArray(e)))return r=K(r),s.forEach((function(e,n){!M.isUndefined(e)&&null!==e&&t.append(!0===a?J([r],n,i):null===a?r:r+"[]",c(e))})),!1;return!!H(e)||(t.append(J(o,r,i),c(e)),!1)}const u=[],f=Object.assign(V,{defaultVisitor:l,convertValue:c,isVisitable:H});if(!M.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!M.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),M.forEach(r,(function(r,i){!0===(!(M.isUndefined(r)||null===r)&&o.call(t,r,M.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])})),u.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Q(e,t){this._pairs=[],e&&$(e,this,t)}const X=Q.prototype;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,r){if(!t)return e;const n=r&&r.encode||Z,o=r&&r.serialize;let i;if(i=o?o(t,r):M.isURLSearchParams(t)?t.toString():new Q(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ee{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){M.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ne="undefined"!=typeof window&&"undefined"!=typeof document,oe=(ie="undefined"!=typeof navigator&&navigator.product,ne&&["ReactNative","NativeScript","NS"].indexOf(ie)<0);var ie;const ae="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,se={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserEnv:oe,hasStandardBrowserWebWorkerEnv:ae},Symbol.toStringTag,{value:"Module"})),...re};function ce(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&M.isArray(n)?n.length:i,s)return M.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&M.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&M.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,((e,n)=>{t(function(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const le={transitional:te,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=M.isObject(e);o&&M.isHTMLForm(e)&&(e=new FormData(e));if(M.isFormData(e))return n?JSON.stringify(ce(e)):e;if(M.isArrayBuffer(e)||M.isBuffer(e)||M.isStream(e)||M.isFile(e)||M.isBlob(e))return e;if(M.isArrayBufferView(e))return e.buffer;if(M.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new se.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return se.isNode&&M.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=M.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||le.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&M.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],(e=>{le.headers[e]={}}));const ue=le,fe=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pe=Symbol("internals");function ye(e){return e&&String(e).trim().toLowerCase()}function de(e){return!1===e||null==e?e:M.isArray(e)?e.map(de):String(e)}function he(e,t,r,n,o){return M.isFunction(n)?n.call(this,t,r):(o&&(t=r),M.isString(t)?M.isString(n)?-1!==t.indexOf(n):M.isRegExp(n)?n.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ye(t);if(!o)throw new Error("header name must be a non-empty string");const i=M.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=de(e))}const i=(e,t)=>M.forEach(e,((e,r)=>o(e,r,t)));return M.isPlainObject(e)||e instanceof this.constructor?i(e,t):M.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&fe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=ye(e)){const r=M.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(M.isFunction(t))return t.call(this,e,r);if(M.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ye(e)){const r=M.findKey(this,e);return!(!r||void 0===this[r]||t&&!he(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ye(e)){const o=M.findKey(r,e);!o||t&&!he(0,r[o],o,t)||(delete r[o],n=!0)}}return M.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!he(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return M.forEach(this,((n,o)=>{const i=M.findKey(r,o);if(i)return t[i]=de(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete t[o],t[a]=de(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return M.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&M.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[pe]=this[pe]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ye(e);t[n]||(!function(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return M.isArray(e)?e.forEach(n):n(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.reduceDescriptors(me.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),M.freezeMethods(me);const be=me;function ge(e,t){const r=this||ue,n=t||r,o=be.from(n.headers);let i=n.data;return M.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function we(e){return!(!e||!e.__CANCEL__)}function ve(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}M.inherits(ve,q,{__CANCEL__:!0});const Se=se.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];M.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),M.isString(n)&&a.push("path="+n),M.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Oe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ee=se.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=M.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return function(){return!0}}();function Ae(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(1e3*f/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s);r=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const je={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=be.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(M.isFormData(n))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=Oe(e.baseURL,e.url);function p(){if(!u)return;const n=be.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Y(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(r(new q("Request aborted",q.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||te;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,u)),u=null},se.hasStandardBrowserEnv&&(c&&M.isFunction(c)&&(c=c(e)),c||!1!==c&&Ee(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Se.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in u&&M.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),M.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Ae(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ae(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(r(!t||t.type?new ve(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);y&&-1===se.protocols.indexOf(y)?r(new q("Unsupported protocol "+y+":",q.ERR_BAD_REQUEST,e)):u.send(n||null)}))}};M.forEach(je,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const Re=e=>`- ${e}`,Pe=e=>M.isFunction(e)||null===e||!1===e,xe=e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Pe(r)&&(n=je[(t=String(r)).toLowerCase()],void 0===n))throw new q(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new q("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Re).join("\n"):" "+Re(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ve(null,e)}function Ne(e){Te(e),e.headers=be.from(e.headers),e.data=ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return xe(e.adapter||ue.adapter)(e).then((function(t){return Te(e),t.data=ge.call(e,e.transformResponse,t),t.headers=be.from(t.headers),t}),(function(t){return we(t)||(Te(e),t&&t.response&&(t.response.data=ge.call(e,e.transformResponse,t.response),t.response.headers=be.from(t.response.headers))),Promise.reject(t)}))}const _e=e=>e instanceof be?{...e}:e;function Fe(e,t){t=t||{};const r={};function n(e,t,r){return M.isPlainObject(e)&&M.isPlainObject(t)?M.merge.call({caseless:r},e,t):M.isPlainObject(t)?M.merge({},t):M.isArray(t)?t.slice():t}function o(e,t,r){return M.isUndefined(t)?M.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!M.isUndefined(t))return n(void 0,t)}function a(e,t){return M.isUndefined(t)?M.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(_e(e),_e(t),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||o,a=i(e[n],t[n],n);M.isUndefined(a)&&i!==s||(r[n]=a)})),r}const De="1.6.8",ke={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ke[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ce={};ke.transitional=function(e,t,r){return(n,o,i)=>{if(!1===e)throw new q(function(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Ce[o]&&(Ce[o]=!0),!e||e(n,o,i)}};const Ie={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new q("option "+i+" must be "+r,q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}},validators:ke},Ue=Ie.validators;class Be{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Ie.assertOptions(r,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),null!=n&&(M.isFunction(n)?t.paramsSerializer={serialize:n}:Ie.assertOptions(n,{encode:Ue.function,serialize:Ue.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&M.merge(o.common,o[t.method]);o&&M.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=be.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[Ne.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=a.length;let p=t;for(f=0;f<u;){const e=a[f++],t=a[f++];try{p=e(p)}catch(y){t.call(this,y);break}}try{l=Ne.call(this,p)}catch(y){return Promise.reject(y)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return Y(Oe((e=Fe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}M.forEach(["delete","get","head","options"],(function(e){Be.prototype[e]=function(t,r){return this.request(Fe(r||{},{method:e,url:t,data:(r||{}).data}))}})),M.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Fe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Be.prototype[e]=t(),Be.prototype[e+"Form"]=t(!0)}));const Le=Be;class Me{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new ve(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Me((function(t){e=t})),cancel:e}}}const qe=Me;const We={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(We).forEach((([e,t])=>{We[t]=e}));const ze=We;const He=function e(t){const r=new Le(t),n=c(Le.prototype.request,r);return M.extend(n,Le.prototype,r,{allOwnKeys:!0}),M.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Fe(t,r))},n}(ue);He.Axios=Le,He.CanceledError=ve,He.CancelToken=qe,He.isCancel=we,He.VERSION=De,He.toFormData=$,He.AxiosError=q,He.Cancel=He.CanceledError,He.all=function(e){return Promise.all(e)},He.spread=function(e){return function(t){return e.apply(null,t)}},He.isAxiosError=function(e){return M.isObject(e)&&!0===e.isAxiosError},He.mergeConfig=Fe,He.AxiosHeaders=be,He.formToJSON=e=>ce(M.isHTMLForm(e)?new FormData(e):e),He.getAdapter=xe,He.HttpStatusCode=ze,He.default=He;var Ke,Je=Error,Ve=EvalError,$e=RangeError,Ge=ReferenceError,Qe=SyntaxError,Xe=TypeError,Ze=URIError,Ye="undefined"!=typeof Symbol&&Symbol,et=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},tt={__proto__:null,foo:{}},rt=Object,nt=Object.prototype.toString,ot=Math.max,it=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},at=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==nt.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),o=ot(0,t.length-n.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,it(n,arguments));return Object(o)===o?o:this}return t.apply(e,it(n,arguments))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},st=Function.prototype.bind||at,ct=Function.prototype.call,lt=Object.prototype.hasOwnProperty,ut=st.call(ct,lt),ft=Je,pt=Ve,yt=$e,dt=Ge,ht=Qe,mt=Xe,bt=Ze,gt=Function,wt=function(e){try{return gt('"use strict"; return ('+e+").constructor;")()}catch(t){}},vt=Object.getOwnPropertyDescriptor;if(vt)try{vt({},"")}catch(io){vt=null}var St=function(){throw new mt},Ot=vt?function(){try{return St}catch(e){try{return vt(arguments,"callee").get}catch(t){return St}}}():St,Et="function"==typeof Ye&&"function"==typeof Symbol&&"symbol"==typeof Ye("foo")&&"symbol"==typeof Symbol("bar")&&et(),At={__proto__:tt}.foo===tt.foo&&!(tt instanceof rt),jt=Object.getPrototypeOf||(At?function(e){return e.__proto__}:null),Rt={},Pt="undefined"!=typeof Uint8Array&&jt?jt(Uint8Array):Ke,xt={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?Ke:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Ke:ArrayBuffer,"%ArrayIteratorPrototype%":Et&&jt?jt([][Symbol.iterator]()):Ke,"%AsyncFromSyncIteratorPrototype%":Ke,"%AsyncFunction%":Rt,"%AsyncGenerator%":Rt,"%AsyncGeneratorFunction%":Rt,"%AsyncIteratorPrototype%":Rt,"%Atomics%":"undefined"==typeof Atomics?Ke:Atomics,"%BigInt%":"undefined"==typeof BigInt?Ke:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Ke:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Ke:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Ke:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ft,"%eval%":eval,"%EvalError%":pt,"%Float32Array%":"undefined"==typeof Float32Array?Ke:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Ke:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Ke:FinalizationRegistry,"%Function%":gt,"%GeneratorFunction%":Rt,"%Int8Array%":"undefined"==typeof Int8Array?Ke:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Ke:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Ke:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Et&&jt?jt(jt([][Symbol.iterator]())):Ke,"%JSON%":"object"==typeof JSON?JSON:Ke,"%Map%":"undefined"==typeof Map?Ke:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Et&&jt?jt((new Map)[Symbol.iterator]()):Ke,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Ke:Promise,"%Proxy%":"undefined"==typeof Proxy?Ke:Proxy,"%RangeError%":yt,"%ReferenceError%":dt,"%Reflect%":"undefined"==typeof Reflect?Ke:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Ke:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Et&&jt?jt((new Set)[Symbol.iterator]()):Ke,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Ke:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Et&&jt?jt(""[Symbol.iterator]()):Ke,"%Symbol%":Et?Symbol:Ke,"%SyntaxError%":ht,"%ThrowTypeError%":Ot,"%TypedArray%":Pt,"%TypeError%":mt,"%Uint8Array%":"undefined"==typeof Uint8Array?Ke:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Ke:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Ke:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Ke:Uint32Array,"%URIError%":bt,"%WeakMap%":"undefined"==typeof WeakMap?Ke:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Ke:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Ke:WeakSet};if(jt)try{null.error}catch(io){var Tt=jt(jt(io));xt["%Error.prototype%"]=Tt}var Nt,_t,Ft=function e(t){var r;if("%AsyncFunction%"===t)r=wt("async function () {}");else if("%GeneratorFunction%"===t)r=wt("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=wt("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&jt&&(r=jt(o.prototype))}return xt[t]=r,r},Dt={__proto__:null,"%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"]},kt=st,Ct=ut,It=kt.call(Function.call,Array.prototype.concat),Ut=kt.call(Function.apply,Array.prototype.splice),Bt=kt.call(Function.call,String.prototype.replace),Lt=kt.call(Function.call,String.prototype.slice),Mt=kt.call(Function.call,RegExp.prototype.exec),qt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Wt=/\\(\\)?/g,zt=function(e,t){var r,n=e;if(Ct(Dt,n)&&(n="%"+(r=Dt[n])[0]+"%"),Ct(xt,n)){var o=xt[n];if(o===Rt&&(o=Ft(n)),void 0===o&&!t)throw new mt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ht("intrinsic "+e+" does not exist!")},Ht=function(e,t){if("string"!=typeof e||0===e.length)throw new mt("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new mt('"allowMissing" argument must be a boolean');if(null===Mt(/^%?[^%]*%?$/,e))throw new ht("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Lt(e,0,1),r=Lt(e,-1);if("%"===t&&"%"!==r)throw new ht("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ht("invalid intrinsic syntax, expected opening `%`");var n=[];return Bt(e,qt,(function(e,t,r,o){n[n.length]=r?Bt(o,Wt,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=zt("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],Ut(r,It([0,1],c)));for(var l=1,u=!0;l<r.length;l+=1){var f=r[l],p=Lt(f,0,1),y=Lt(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new ht("property names with quotes must have matching quotes");if("constructor"!==f&&u||(s=!0),Ct(xt,i="%"+(n+="."+f)+"%"))a=xt[i];else if(null!=a){if(!(f in a)){if(!t)throw new mt("base intrinsic for "+e+" exists, but the property is not available.");return}if(vt&&l+1>=r.length){var d=vt(a,f);a=(u=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else u=Ct(a,f),a=a[f];u&&!s&&(xt[i]=a)}}return a},Kt={exports:{}};function Jt(){if(_t)return Nt;_t=1;var e=Ht("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(io){e=!1}return Nt=e}var Vt=Ht("%Object.getOwnPropertyDescriptor%",!0);if(Vt)try{Vt([],"length")}catch(io){Vt=null}var $t=Vt,Gt=Jt(),Qt=Qe,Xt=Xe,Zt=$t,Yt=Jt(),er=function(){return!!Yt};er.hasArrayLengthDefineBug=function(){if(!Yt)return null;try{return 1!==Yt([],"length",{value:1}).length}catch(io){return!0}};var tr=Ht,rr=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new Xt("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new Xt("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Xt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Xt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Xt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Xt("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],s=!!Zt&&Zt(e,t);if(Gt)Gt(e,t,{configurable:null===i&&s?s.configurable:!i,enumerable:null===n&&s?s.enumerable:!n,value:r,writable:null===o&&s?s.writable:!o});else{if(!a&&(n||o||i))throw new Qt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},nr=er(),or=$t,ir=Xe,ar=tr("%Math.floor%"),sr=function(e,t){if("function"!=typeof e)throw new ir("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||ar(t)!==t)throw new ir("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&or){var i=or(e,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(nr?rr(e,"length",t,!0,!0):rr(e,"length",t)),e};!function(e){var t=st,r=Ht,n=sr,o=Xe,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),c=Jt(),l=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=s(t,a,arguments);return n(r,1+l(0,e.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u}(Kt);var cr=Ht,lr=Kt.exports,ur=lr(cr("String.prototype.indexOf"));const fr=e(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var pr="function"==typeof Map&&Map.prototype,yr=Object.getOwnPropertyDescriptor&&pr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,dr=pr&&yr&&"function"==typeof yr.get?yr.get:null,hr=pr&&Map.prototype.forEach,mr="function"==typeof Set&&Set.prototype,br=Object.getOwnPropertyDescriptor&&mr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,gr=mr&&br&&"function"==typeof br.get?br.get:null,wr=mr&&Set.prototype.forEach,vr="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Sr="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Or="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Er=Boolean.prototype.valueOf,Ar=Object.prototype.toString,jr=Function.prototype.toString,Rr=String.prototype.match,Pr=String.prototype.slice,xr=String.prototype.replace,Tr=String.prototype.toUpperCase,Nr=String.prototype.toLowerCase,_r=RegExp.prototype.test,Fr=Array.prototype.concat,Dr=Array.prototype.join,kr=Array.prototype.slice,Cr=Math.floor,Ir="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ur=Object.getOwnPropertySymbols,Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Lr="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Mr="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Lr||"symbol")?Symbol.toStringTag:null,qr=Object.prototype.propertyIsEnumerable,Wr=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function zr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_r.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Cr(-e):Cr(e);if(n!==e){var o=String(n),i=Pr.call(t,o.length+1);return xr.call(o,r,"$&_")+"."+xr.call(xr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return xr.call(t,r,"$&_")}var Hr=fr,Kr=Hr.custom,Jr=Xr(Kr)?Kr:null;function Vr(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function $r(e){return xr.call(String(e),/"/g,"&quot;")}function Gr(e){return!("[object Array]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}function Qr(e){return!("[object RegExp]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}function Xr(e){if(Lr)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Br)return!1;try{return Br.call(e),!0}catch(io){}return!1}var Zr=Object.prototype.hasOwnProperty||function(e){return e in this};function Yr(e,t){return Zr.call(e,t)}function en(e){return Ar.call(e)}function tn(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function rn(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return rn(Pr.call(e,0,t.maxStringLength),t)+n}return Vr(xr.call(xr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,nn),"single",t)}function nn(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Tr.call(t.toString(16))}function on(e){return"Object("+e+")"}function an(e){return e+" { ? }"}function sn(e,t,r,n){return e+" ("+t+") {"+(n?cn(r,n):Dr.call(r,", "))+"}"}function cn(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Dr.call(e,","+r)+"\n"+t.prev}function ln(e,t){var r=Gr(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Yr(e,o)?t(e[o],e):""}var i,a="function"==typeof Ur?Ur(e):[];if(Lr){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)Yr(e,c)&&(r&&String(Number(c))===c&&c<e.length||Lr&&i["$"+c]instanceof Symbol||(_r.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof Ur)for(var l=0;l<a.length;l++)qr.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var un=Ht,fn=function(e,t){var r=cr(e,!!t);return"function"==typeof r&&ur(e,".prototype.")>-1?lr(r):r},pn=function e(r,n,o,i){var a=n||{};if(Yr(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Yr(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!Yr(a,"customInspect")||a.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Yr(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Yr(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return rn(r,a);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var l=String(r);return c?zr(r,l):l}if("bigint"==typeof r){var u=String(r)+"n";return c?zr(r,u):u}var f=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=f&&f>0&&"object"==typeof r)return Gr(r)?"[Array]":"[Object]";var p=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Dr.call(Array(e.indent+1)," ")}return{base:r,prev:Dr.call(Array(t+1),r)}}(a,o);if(void 0===i)i=[];else if(tn(i,r)>=0)return"[Circular]";function y(t,r,n){if(r&&(i=kr.call(i)).push(r),n){var s={depth:a.depth};return Yr(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,o+1,i)}return e(t,a,o+1,i)}if("function"==typeof r&&!Qr(r)){var d=function(e){if(e.name)return e.name;var t=Rr.call(jr.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(r),h=ln(r,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+Dr.call(h,", ")+" }":"")}if(Xr(r)){var m=Lr?xr.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Br.call(r);return"object"!=typeof r||Lr?m:on(m)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(r)){for(var b="<"+Nr.call(String(r.nodeName)),g=r.attributes||[],w=0;w<g.length;w++)b+=" "+g[w].name+"="+Vr($r(g[w].value),"double",a);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Nr.call(String(r.nodeName))+">"}if(Gr(r)){if(0===r.length)return"[]";var v=ln(r,y);return p&&!function(e){for(var t=0;t<e.length;t++)if(tn(e[t],"\n")>=0)return!1;return!0}(v)?"["+cn(v,p)+"]":"[ "+Dr.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}(r)){var S=ln(r,y);return"cause"in Error.prototype||!("cause"in r)||qr.call(r,"cause")?0===S.length?"["+String(r)+"]":"{ ["+String(r)+"] "+Dr.call(S,", ")+" }":"{ ["+String(r)+"] "+Dr.call(Fr.call("[cause]: "+y(r.cause),S),", ")+" }"}if("object"==typeof r&&s){if(Jr&&"function"==typeof r[Jr]&&Hr)return Hr(r,{depth:f-o});if("symbol"!==s&&"function"==typeof r.inspect)return r.inspect()}if(function(e){if(!dr||!e||"object"!=typeof e)return!1;try{dr.call(e);try{gr.call(e)}catch(b){return!0}return e instanceof Map}catch(io){}return!1}(r)){var O=[];return hr&&hr.call(r,(function(e,t){O.push(y(t,r,!0)+" => "+y(e,r))})),sn("Map",dr.call(r),O,p)}if(function(e){if(!gr||!e||"object"!=typeof e)return!1;try{gr.call(e);try{dr.call(e)}catch(t){return!0}return e instanceof Set}catch(io){}return!1}(r)){var E=[];return wr&&wr.call(r,(function(e){E.push(y(e,r))})),sn("Set",gr.call(r),E,p)}if(function(e){if(!vr||!e||"object"!=typeof e)return!1;try{vr.call(e,vr);try{Sr.call(e,Sr)}catch(b){return!0}return e instanceof WeakMap}catch(io){}return!1}(r))return an("WeakMap");if(function(e){if(!Sr||!e||"object"!=typeof e)return!1;try{Sr.call(e,Sr);try{vr.call(e,vr)}catch(b){return!0}return e instanceof WeakSet}catch(io){}return!1}(r))return an("WeakSet");if(function(e){if(!Or||!e||"object"!=typeof e)return!1;try{return Or.call(e),!0}catch(io){}return!1}(r))return an("WeakRef");if(function(e){return!("[object Number]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}(r))return on(y(Number(r)));if(function(e){if(!e||"object"!=typeof e||!Ir)return!1;try{return Ir.call(e),!0}catch(io){}return!1}(r))return on(y(Ir.call(r)));if(function(e){return!("[object Boolean]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}(r))return on(Er.call(r));if(function(e){return!("[object String]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}(r))return on(y(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if(r===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==en(e)||Mr&&"object"==typeof e&&Mr in e)}(r)&&!Qr(r)){var A=ln(r,y),j=Wr?Wr(r)===Object.prototype:r instanceof Object||r.constructor===Object,R=r instanceof Object?"":"null prototype",P=!j&&Mr&&Object(r)===r&&Mr in r?Pr.call(en(r),8,-1):R?"Object":"",x=(j||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(P||R?"["+Dr.call(Fr.call([],P||[],R||[]),": ")+"] ":"");return 0===A.length?x+"{}":p?x+"{"+cn(A,p)+"}":x+"{ "+Dr.call(A,", ")+" }"}return String(r)},yn=Xe,dn=un("%WeakMap%",!0),hn=un("%Map%",!0),mn=fn("WeakMap.prototype.get",!0),bn=fn("WeakMap.prototype.set",!0),gn=fn("WeakMap.prototype.has",!0),wn=fn("Map.prototype.get",!0),vn=fn("Map.prototype.set",!0),Sn=fn("Map.prototype.has",!0),On=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},En=String.prototype.replace,An=/%20/g,jn="RFC3986",Rn={default:jn,formatters:{RFC1738:function(e){return En.call(e,An,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:jn},Pn=Rn,xn=Object.prototype.hasOwnProperty,Tn=Array.isArray,Nn=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),_n=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},Fn={arrayToObject:_n,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=i[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:i,prop:c}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(Tn(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(io){return n}},encode:function(e,t,r,n,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var c=i.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Pn.RFC1738&&(40===c||41===c)?a+=i.charAt(s):c<128?a+=Nn[c]:c<2048?a+=Nn[192|c>>6]+Nn[128|63&c]:c<55296||c>=57344?a+=Nn[224|c>>12]+Nn[128|c>>6&63]+Nn[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(s)),a+=Nn[240|c>>18]+Nn[128|c>>12&63]+Nn[128|c>>6&63]+Nn[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Tn(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(Tn(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!xn.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return Tn(t)&&!Tn(r)&&(o=_n(t,n)),Tn(t)&&Tn(r)?(r.forEach((function(r,o){if(xn.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return xn.call(t,o)?t[o]=e(t[o],i,n):t[o]=i,t}),o)}},Dn=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new yn("Side channel does not contain "+pn(e))},get:function(n){if(dn&&n&&("object"==typeof n||"function"==typeof n)){if(e)return mn(e,n)}else if(hn){if(t)return wn(t,n)}else if(r)return function(e,t){var r=On(e,t);return r&&r.value}(r,n)},has:function(n){if(dn&&n&&("object"==typeof n||"function"==typeof n)){if(e)return gn(e,n)}else if(hn){if(t)return Sn(t,n)}else if(r)return function(e,t){return!!On(e,t)}(r,n);return!1},set:function(n,o){dn&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new dn),bn(e,n,o)):hn?(t||(t=new hn),vn(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=On(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n},kn=Fn,Cn=Rn,In=Object.prototype.hasOwnProperty,Un={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Bn=Array.isArray,Ln=Array.prototype.push,Mn=function(e,t){Ln.apply(e,Bn(t)?t:[t])},qn=Date.prototype.toISOString,Wn=Cn.default,zn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:kn.encode,encodeValuesOnly:!1,format:Wn,formatter:Cn.formatters[Wn],indices:!1,serializeDate:function(e){return qn.call(e)},skipNulls:!1,strictNullHandling:!1},Hn={},Kn=function e(t,r,n,o,i,a,s,c,l,u,f,p,y,d,h,m,b,g){for(var w,v=t,S=g,O=0,E=!1;void 0!==(S=S.get(Hn))&&!E;){var A=S.get(t);if(O+=1,void 0!==A){if(A===O)throw new RangeError("Cyclic object value");E=!0}void 0===S.get(Hn)&&(O=0)}if("function"==typeof u?v=u(r,v):v instanceof Date?v=y(v):"comma"===n&&Bn(v)&&(v=kn.maybeMap(v,(function(e){return e instanceof Date?y(e):e}))),null===v){if(a)return l&&!m?l(r,zn.encoder,b,"key",d):r;v=""}if("string"==typeof(w=v)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||kn.isBuffer(v))return l?[h(m?r:l(r,zn.encoder,b,"key",d))+"="+h(l(v,zn.encoder,b,"value",d))]:[h(r)+"="+h(String(v))];var j,R=[];if(void 0===v)return R;if("comma"===n&&Bn(v))m&&l&&(v=kn.maybeMap(v,l)),j=[{value:v.length>0?v.join(",")||null:void 0}];else if(Bn(u))j=u;else{var P=Object.keys(v);j=f?P.sort(f):P}var x=c?r.replace(/\./g,"%2E"):r,T=o&&Bn(v)&&1===v.length?x+"[]":x;if(i&&Bn(v)&&0===v.length)return T+"[]";for(var N=0;N<j.length;++N){var _=j[N],F="object"==typeof _&&void 0!==_.value?_.value:v[_];if(!s||null!==F){var D=p&&c?_.replace(/\./g,"%2E"):_,k=Bn(v)?"function"==typeof n?n(T,D):T:T+(p?"."+D:"["+D+"]");g.set(t,O);var C=Dn();C.set(Hn,g),Mn(R,e(F,k,n,o,i,a,s,c,"comma"===n&&m&&Bn(v)?null:l,u,f,p,y,d,h,m,b,C))}}return R},Jn=Fn,Vn=Object.prototype.hasOwnProperty,$n=Array.isArray,Gn={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:Jn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qn=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Xn=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Zn=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,c=[];if(s){if(!r.plainObjects&&Vn.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var l=0;r.depth>0&&null!==(a=i.exec(o))&&l<r.depth;){if(l+=1,!r.plainObjects&&Vn.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:Xn(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(c,t,r,n)}};const Yn=r({formats:Rn,parse:function(e,t){var r=function(e){if(!e)return Gn;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Gn.charset:e.charset,r=void 0===e.duplicates?Gn.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||Gn.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:Gn.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Gn.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Gn.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Gn.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Gn.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Gn.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:Gn.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:Gn.decoder,delimiter:"string"==typeof e.delimiter||Jn.isRegExp(e.delimiter)?e.delimiter:Gn.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Gn.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Gn.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Gn.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Gn.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Gn.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),s=-1,c=t.charset;if(t.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?c="utf-8":"utf8=%26%2310003%3B"===a[r]&&(c="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var l,u,f=a[r],p=f.indexOf("]="),y=-1===p?f.indexOf("="):p+1;-1===y?(l=t.decoder(f,Gn.decoder,c,"key"),u=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,y),Gn.decoder,c,"key"),u=Jn.maybeMap(Xn(f.slice(y+1),t),(function(e){return t.decoder(e,Gn.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=Qn(u)),f.indexOf("[]=")>-1&&(u=$n(u)?[u]:u);var d=Vn.call(n,l);d&&"combine"===t.duplicates?n[l]=Jn.combine(n[l],u):d&&"last"!==t.duplicates||(n[l]=u)}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var s=i[a],c=Zn(s,n[s],r,"string"==typeof e);o=Jn.merge(o,c,r)}return!0===r.allowSparse?o:Jn.compact(o)},stringify:function(e,t){var r,n=e,o=function(e){if(!e)return zn;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||zn.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Cn.default;if(void 0!==e.format){if(!In.call(Cn.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=Cn.formatters[r],i=zn.filter;if(("function"==typeof e.filter||Bn(e.filter))&&(i=e.filter),n=e.arrayFormat in Un?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":zn.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||zn.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:zn.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:zn.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:zn.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?zn.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:zn.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:zn.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:zn.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:zn.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:zn.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:zn.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:zn.strictNullHandling}}(t);"function"==typeof o.filter?n=(0,o.filter)("",n):Bn(o.filter)&&(r=o.filter);var i=[];if("object"!=typeof n||null===n)return"";var a=Un[o.arrayFormat],s="comma"===a&&o.commaRoundTrip;r||(r=Object.keys(n)),o.sort&&r.sort(o.sort);for(var c=Dn(),l=0;l<r.length;++l){var u=r[l];o.skipNulls&&null===n[u]||Mn(i,Kn(n[u],u,a,s,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var f=i.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""}}),eo=new Map,to=He.create({timeout:a,baseURL:""});to.interceptors.request.use((e=>{const t=new AbortController,r=e.url||"";return e.signal=t.signal,eo.set(r,t),e})),to.interceptors.response.use((e=>{const t=e.config.url||"";return eo.delete(t),e}),(e=>(o.error(e.message),Promise.reject(e)))),to.interceptors.request.use((e=>{if("post"===e.method&&"application/x-www-form-urlencoded"===e.headers["Content-Type"]&&(e.data=Yn.stringify(e.data)),"get"===e.method&&e.params){let t=e.url;t+="?";const r=Object.keys(e.params);for(const n of r)void 0!==e.params[n]&&null!==e.params[n]&&(t+=`${n}=${encodeURIComponent(e.params[n])}&`);t=t.substring(0,t.length-1),e.params={},e.url=t}return e})),to.interceptors.response.use((e=>{var t,r,a,s,c;if("blob"===(null==(t=null==e?void 0:e.config)?void 0:t.responseType))return e;if(e.data.code===n)return(null==(r=null==e?void 0:e.data)?void 0:r.message)&&o.success(null==(a=null==e?void 0:e.data)?void 0:a.message),e.data;if(o.error(null==(s=null==e?void 0:e.data)?void 0:s.message),401===(null==(c=null==e?void 0:e.data)?void 0:c.code)){i().logout()}return e.data}));const ro={request:e=>new Promise(((t,r)=>{var n;(null==(n=e.interceptors)?void 0:n.requestInterceptors)&&(e=e.interceptors.requestInterceptors(e)),to.request(e).then((e=>{t(e)})).catch((e=>{r(e)}))})),cancelRequest:e=>{var t;const r=Array.isArray(e)?e:[e];for(const n of r)null==(t=eo.get(n))||t.abort(),eo.delete(n)},cancelAllRequest(){for(const[e,t]of eo)t.abort();eo.clear()}},no=e=>{const{url:t,method:r,params:n,data:o,headers:a,responseType:c}=e,l=i();return ro.request({url:t,method:r,params:n,data:o,responseType:c,headers:{"Content-Type":s,[l.getTokenKey??"Authorization"]:l.getToken??"",...a}})},oo={get:e=>no({method:"get",...e}),post:e=>no({method:"post",...e}),delete:e=>no({method:"delete",...e}),put:e=>no({method:"put",...e}),cancelRequest:e=>ro.cancelRequest(e),cancelAllRequest:()=>ro.cancelAllRequest()};export{oo as r};