UNPKG

@wdp-api/bim-api

Version:

51WORLD BIM/DCP Api is a JavaScript plugin for WdpApi, It provides a set of APIs for developers to integrate BIM/DCP into their own applications.

8 lines 186 kB
(function(Oe,Ce){typeof exports=="object"&&typeof module<"u"?module.exports=Ce():typeof define=="function"&&define.amd?define(Ce):(Oe=typeof globalThis<"u"?globalThis:Oe||self,Oe.BimApi=Ce())})(this,function(){"use strict";var za=Object.defineProperty;var Va=(Oe,Ce,Ne)=>Ce in Oe?za(Oe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Oe[Ce]=Ne;var ie=(Oe,Ce,Ne)=>Va(Oe,typeof Ce!="symbol"?Ce+"":Ce,Ne);class Oe{constructor(r,n){ie(this,"subject");ie(this,"level");this.subject=r,this.level=n??10}log(r,n,...s){if(typeof(s==null?void 0:s[0])=="string"&&s[0].match(/\%[sodif]?/gi)){const a=s.shift(),u=new Date;console.log(`${n}%c[${u.toLocaleTimeString()}.${u.getMilliseconds()}]::: %c${a}`,`color: ${r}`,"color: unset",...s)}else for(const a of s){const u=new Date;console.log(`${n}%c[${u.toLocaleTimeString()}.${u.getMilliseconds()}]:::`,`color: ${r}`,a)}}error(r,...n){this.level!==0&&(console.group(`%c${this.subject} %c ${r}`,"color: black; border-radius: 3px 0 0 3px; padding: 2px 2px 1px 10px; background: #ff4d4f","border-radius: 0 3px 3px 0; padding: 2px 10px 1px 2px; background: #ff4d4f20"),this.log("#ff4d4f","⭕",...n),console.groupEnd())}info(r,...n){console.groupCollapsed(`%c${this.subject} %c ${r}`,"color: black; border-radius: 3px 0 0 3px; padding: 2px 2px 1px 10px; background: #00dc82","border-radius: 0 3px 3px 0; padding: 2px 10px 1px 2px; background: #00dc8220"),this.log("#00dc82","🚀",...n),console.groupEnd()}warn(r,...n){console.group(`%c${this.subject} %c ${r}`,"color: black; border-radius: 3px 0 0 3px; padding: 2px 2px 1px 10px; background: #faad14","border-radius: 0 3px 3px 0; padding: 2px 10px 1px 2px; background: #faad1420"),this.log("#faad14","🔥",...n),console.groupEnd()}lowLevel(r,...n){this.level<1||this.info(r,...n)}highLevel(r,...n){this.level<3||this.warn(r,...n)}}const Ce=o=>!!o&&o.constructor===Symbol,Ne=Array.isArray,hi=o=>!!o&&o.constructor===Object,Lr=o=>!!(o&&o.constructor&&o.call&&o.apply),Tn=o=>{try{return Number(o)===o}catch{return!1}},pi=o=>Object.prototype.toString.call(o)==="[object Date]",$=o=>{if(o===!0||o===!1||o==null)return!0;if(Tn(o))return o===0;if(pi(o))return isNaN(o.getTime());if(Lr(o)||Ce(o))return!1;const r=o.length;if(Tn(r))return r===0;const n=o.size;return Tn(n)?n===0:Object.keys(o).length===0},ht=(o,r)=>{if(Object.is(o,r))return!0;if(o instanceof Date&&r instanceof Date)return o.getTime()===r.getTime();if(o instanceof RegExp&&r instanceof RegExp)return o.toString()===r.toString();if(typeof o!="object"||o===null||typeof r!="object"||r===null)return!1;const n=Reflect.ownKeys(o),s=Reflect.ownKeys(r);if(n.length!==s.length)return!1;for(let a=0;a<n.length;a++)if(!Reflect.has(r,n[a])||!ht(o[n[a]],r[n[a]]))return!1;return!0};function mi(o,r){if(!o||!o.length)return{};const n=Lr(r)?r:Ne(r)?(s,a)=>r[a]:(s,a)=>r;return o.reduce((s,a,u)=>(s[a]=n(a,u),s),{})}const yi=(o,r,n)=>o?o.reduce((s,a,u)=>(n(a,u)&&s.push(r(a,u)),s),[]):[],gi=(o,r)=>{const n=o.reduce((s,a)=>{const u=r(a);return s[u]||(s[u]=a),s},{});return Object.values(n)},Ue=(o,r)=>!o||!r?o??r??{}:Object.entries({...o,...r}).reduce((n,[s,a])=>({...n,[s]:hi(o[s])?Ue(o[s],a):a}),{});function Fr(o,r){return function(){return o.apply(r,arguments)}}const{toString:bi}=Object.prototype,{getPrototypeOf:jn}=Object,Vt=(o=>r=>{const n=bi.call(r);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),De=o=>(o=o.toLowerCase(),r=>Vt(r)===o),Wt=o=>r=>typeof r===o,{isArray:pt}=Array,Ct=Wt("undefined");function vi(o){return o!==null&&!Ct(o)&&o.constructor!==null&&!Ct(o.constructor)&&Ie(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const Gr=De("ArrayBuffer");function wi(o){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(o):r=o&&o.buffer&&Gr(o.buffer),r}const Si=Wt("string"),Ie=Wt("function"),Kr=Wt("number"),Jt=o=>o!==null&&typeof o=="object",Ai=o=>o===!0||o===!1,Xt=o=>{if(Vt(o)!=="object")return!1;const r=jn(o);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},_i=De("Date"),Ei=De("File"),Pi=De("Blob"),Ci=De("FileList"),Ii=o=>Jt(o)&&Ie(o.pipe),xi=o=>{let r;return o&&(typeof FormData=="function"&&o instanceof FormData||Ie(o.append)&&((r=Vt(o))==="formdata"||r==="object"&&Ie(o.toString)&&o.toString()==="[object FormData]"))},Oi=De("URLSearchParams"),[ki,Ni,Di,Ri]=["ReadableStream","Request","Response","Headers"].map(De),Ti=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function It(o,r,{allOwnKeys:n=!1}={}){if(o===null||typeof o>"u")return;let s,a;if(typeof o!="object"&&(o=[o]),pt(o))for(s=0,a=o.length;s<a;s++)r.call(null,o[s],s,o);else{const u=n?Object.getOwnPropertyNames(o):Object.keys(o),l=u.length;let f;for(s=0;s<l;s++)f=u[s],r.call(null,o[f],f,o)}}function qr(o,r){r=r.toLowerCase();const n=Object.keys(o);let s=n.length,a;for(;s-- >0;)if(a=n[s],r===a.toLowerCase())return a;return null}const Qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ur=o=>!Ct(o)&&o!==Qe;function Bn(){const{caseless:o}=Ur(this)&&this||{},r={},n=(s,a)=>{const u=o&&qr(r,a)||a;Xt(r[u])&&Xt(s)?r[u]=Bn(r[u],s):Xt(s)?r[u]=Bn({},s):pt(s)?r[u]=s.slice():r[u]=s};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&It(arguments[s],n);return r}const ji=(o,r,n,{allOwnKeys:s}={})=>(It(r,(a,u)=>{n&&Ie(a)?o[u]=Fr(a,n):o[u]=a},{allOwnKeys:s}),o),Bi=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),Mi=(o,r,n,s)=>{o.prototype=Object.create(r.prototype,s),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:r.prototype}),n&&Object.assign(o.prototype,n)},Li=(o,r,n,s)=>{let a,u,l;const f={};if(r=r||{},o==null)return r;do{for(a=Object.getOwnPropertyNames(o),u=a.length;u-- >0;)l=a[u],(!s||s(l,o,r))&&!f[l]&&(r[l]=o[l],f[l]=!0);o=n!==!1&&jn(o)}while(o&&(!n||n(o,r))&&o!==Object.prototype);return r},Fi=(o,r,n)=>{o=String(o),(n===void 0||n>o.length)&&(n=o.length),n-=r.length;const s=o.indexOf(r,n);return s!==-1&&s===n},Gi=o=>{if(!o)return null;if(pt(o))return o;let r=o.length;if(!Kr(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=o[r];return n},Ki=(o=>r=>o&&r instanceof o)(typeof Uint8Array<"u"&&jn(Uint8Array)),qi=(o,r)=>{const s=(o&&o[Symbol.iterator]).call(o);let a;for(;(a=s.next())&&!a.done;){const u=a.value;r.call(o,u[0],u[1])}},Ui=(o,r)=>{let n;const s=[];for(;(n=o.exec(r))!==null;)s.push(n);return s},Hi=De("HTMLFormElement"),$i=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,a){return s.toUpperCase()+a}),Hr=(({hasOwnProperty:o})=>(r,n)=>o.call(r,n))(Object.prototype),zi=De("RegExp"),$r=(o,r)=>{const n=Object.getOwnPropertyDescriptors(o),s={};It(n,(a,u)=>{let l;(l=r(a,u,o))!==!1&&(s[u]=l||a)}),Object.defineProperties(o,s)},Vi=o=>{$r(o,(r,n)=>{if(Ie(o)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=o[n];if(Ie(s)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Wi=(o,r)=>{const n={},s=a=>{a.forEach(u=>{n[u]=!0})};return pt(o)?s(o):s(String(o).split(r)),n},Ji=()=>{},Xi=(o,r)=>o!=null&&Number.isFinite(o=+o)?o:r,Mn="abcdefghijklmnopqrstuvwxyz",zr="0123456789",Vr={DIGIT:zr,ALPHA:Mn,ALPHA_DIGIT:Mn+Mn.toUpperCase()+zr},Yi=(o=16,r=Vr.ALPHA_DIGIT)=>{let n="";const{length:s}=r;for(;o--;)n+=r[Math.random()*s|0];return n};function Qi(o){return!!(o&&Ie(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const Zi=o=>{const r=new Array(10),n=(s,a)=>{if(Jt(s)){if(r.indexOf(s)>=0)return;if(!("toJSON"in s)){r[a]=s;const u=pt(s)?[]:{};return It(s,(l,f)=>{const y=n(l,a+1);!Ct(y)&&(u[f]=y)}),r[a]=void 0,u}}return s};return n(o,0)},eo=De("AsyncFunction"),to=o=>o&&(Jt(o)||Ie(o))&&Ie(o.then)&&Ie(o.catch),Wr=((o,r)=>o?setImmediate:r?((n,s)=>(Qe.addEventListener("message",({source:a,data:u})=>{a===Qe&&u===n&&s.length&&s.shift()()},!1),a=>{s.push(a),Qe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ie(Qe.postMessage)),no=typeof queueMicrotask<"u"?queueMicrotask.bind(Qe):typeof process<"u"&&process.nextTick||Wr,D={isArray:pt,isArrayBuffer:Gr,isBuffer:vi,isFormData:xi,isArrayBufferView:wi,isString:Si,isNumber:Kr,isBoolean:Ai,isObject:Jt,isPlainObject:Xt,isReadableStream:ki,isRequest:Ni,isResponse:Di,isHeaders:Ri,isUndefined:Ct,isDate:_i,isFile:Ei,isBlob:Pi,isRegExp:zi,isFunction:Ie,isStream:Ii,isURLSearchParams:Oi,isTypedArray:Ki,isFileList:Ci,forEach:It,merge:Bn,extend:ji,trim:Ti,stripBOM:Bi,inherits:Mi,toFlatObject:Li,kindOf:Vt,kindOfTest:De,endsWith:Fi,toArray:Gi,forEachEntry:qi,matchAll:Ui,isHTMLForm:Hi,hasOwnProperty:Hr,hasOwnProp:Hr,reduceDescriptors:$r,freezeMethods:Vi,toObjectSet:Wi,toCamelCase:$i,noop:Ji,toFiniteNumber:Xi,findKey:qr,global:Qe,isContextDefined:Ur,ALPHABET:Vr,generateString:Yi,isSpecCompliantForm:Qi,toJSONObject:Zi,isAsyncFn:eo,isThenable:to,setImmediate:Wr,asap:no};function X(o,r,n,s,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),s&&(this.request=s),a&&(this.response=a,this.status=a.status?a.status:null)}D.inherits(X,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});const Jr=X.prototype,Xr={};["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(o=>{Xr[o]={value:o}}),Object.defineProperties(X,Xr),Object.defineProperty(Jr,"isAxiosError",{value:!0}),X.from=(o,r,n,s,a,u)=>{const l=Object.create(Jr);return D.toFlatObject(o,l,function(y){return y!==Error.prototype},f=>f!=="isAxiosError"),X.call(l,o.message,r,n,s,a),l.cause=o,l.name=o.name,u&&Object.assign(l,u),l};const ro=null;function Ln(o){return D.isPlainObject(o)||D.isArray(o)}function Yr(o){return D.endsWith(o,"[]")?o.slice(0,-2):o}function Qr(o,r,n){return o?o.concat(r).map(function(a,u){return a=Yr(a),!n&&u?"["+a+"]":a}).join(n?".":""):r}function so(o){return D.isArray(o)&&!o.some(Ln)}const io=D.toFlatObject(D,{},null,function(r){return/^is[A-Z]/.test(r)});function Yt(o,r,n){if(!D.isObject(o))throw new TypeError("target must be an object");r=r||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,H){return!D.isUndefined(H[U])});const s=n.metaTokens,a=n.visitor||I,u=n.dots,l=n.indexes,y=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(r);if(!D.isFunction(a))throw new TypeError("visitor must be a function");function b(M){if(M===null)return"";if(D.isDate(M))return M.toISOString();if(!y&&D.isBlob(M))throw new X("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(M)||D.isTypedArray(M)?y&&typeof Blob=="function"?new Blob([M]):Buffer.from(M):M}function I(M,U,H){let ee=M;if(M&&!H&&typeof M=="object"){if(D.endsWith(U,"{}"))U=s?U:U.slice(0,-2),M=JSON.stringify(M);else if(D.isArray(M)&&so(M)||(D.isFileList(M)||D.endsWith(U,"[]"))&&(ee=D.toArray(M)))return U=Yr(U),ee.forEach(function(de,_e){!(D.isUndefined(de)||de===null)&&r.append(l===!0?Qr([U],_e,u):l===null?U:U+"[]",b(de))}),!1}return Ln(M)?!0:(r.append(Qr(H,U,u),b(M)),!1)}const O=[],j=Object.assign(io,{defaultVisitor:I,convertValue:b,isVisitable:Ln});function z(M,U){if(!D.isUndefined(M)){if(O.indexOf(M)!==-1)throw Error("Circular reference detected in "+U.join("."));O.push(M),D.forEach(M,function(ee,ae){(!(D.isUndefined(ee)||ee===null)&&a.call(r,ee,D.isString(ae)?ae.trim():ae,U,j))===!0&&z(ee,U?U.concat(ae):[ae])}),O.pop()}}if(!D.isObject(o))throw new TypeError("data must be an object");return z(o),r}function Zr(o){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(s){return r[s]})}function Fn(o,r){this._pairs=[],o&&Yt(o,this,r)}const es=Fn.prototype;es.append=function(r,n){this._pairs.push([r,n])},es.toString=function(r){const n=r?function(s){return r.call(this,s,Zr)}:Zr;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function oo(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ts(o,r,n){if(!r)return o;const s=n&&n.encode||oo;D.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let u;if(a?u=a(r,n):u=D.isURLSearchParams(r)?r.toString():new Fn(r,n).toString(s),u){const l=o.indexOf("#");l!==-1&&(o=o.slice(0,l)),o+=(o.indexOf("?")===-1?"?":"&")+u}return o}class ns{constructor(){this.handlers=[]}use(r,n,s){return this.handlers.push({fulfilled:r,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){D.forEach(this.handlers,function(s){s!==null&&r(s)})}}const rs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ao={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Fn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Gn=typeof window<"u"&&typeof document<"u",Kn=typeof navigator=="object"&&navigator||void 0,co=Gn&&(!Kn||["ReactNative","NativeScript","NS"].indexOf(Kn.product)<0),uo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lo=Gn&&window.location.href||"http://localhost",ve={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gn,hasStandardBrowserEnv:co,hasStandardBrowserWebWorkerEnv:uo,navigator:Kn,origin:lo},Symbol.toStringTag,{value:"Module"})),...ao};function fo(o,r){return Yt(o,new ve.classes.URLSearchParams,Object.assign({visitor:function(n,s,a,u){return ve.isNode&&D.isBuffer(n)?(this.append(s,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},r))}function ho(o){return D.matchAll(/\w+|\[(\w*)]/g,o).map(r=>r[0]==="[]"?"":r[1]||r[0])}function po(o){const r={},n=Object.keys(o);let s;const a=n.length;let u;for(s=0;s<a;s++)u=n[s],r[u]=o[u];return r}function ss(o){function r(n,s,a,u){let l=n[u++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),y=u>=n.length;return l=!l&&D.isArray(a)?a.length:l,y?(D.hasOwnProp(a,l)?a[l]=[a[l],s]:a[l]=s,!f):((!a[l]||!D.isObject(a[l]))&&(a[l]=[]),r(n,s,a[l],u)&&D.isArray(a[l])&&(a[l]=po(a[l])),!f)}if(D.isFormData(o)&&D.isFunction(o.entries)){const n={};return D.forEachEntry(o,(s,a)=>{r(ho(s),a,n,0)}),n}return null}function mo(o,r,n){if(D.isString(o))try{return(r||JSON.parse)(o),D.trim(o)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(o)}const xt={transitional:rs,adapter:["xhr","http","fetch"],transformRequest:[function(r,n){const s=n.getContentType()||"",a=s.indexOf("application/json")>-1,u=D.isObject(r);if(u&&D.isHTMLForm(r)&&(r=new FormData(r)),D.isFormData(r))return a?JSON.stringify(ss(r)):r;if(D.isArrayBuffer(r)||D.isBuffer(r)||D.isStream(r)||D.isFile(r)||D.isBlob(r)||D.isReadableStream(r))return r;if(D.isArrayBufferView(r))return r.buffer;if(D.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return fo(r,this.formSerializer).toString();if((f=D.isFileList(r))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Yt(f?{"files[]":r}:r,y&&new y,this.formSerializer)}}return u||a?(n.setContentType("application/json",!1),mo(r)):r}],transformResponse:[function(r){const n=this.transitional||xt.transitional,s=n&&n.forcedJSONParsing,a=this.responseType==="json";if(D.isResponse(r)||D.isReadableStream(r))return r;if(r&&D.isString(r)&&(s&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(r)}catch(f){if(l)throw f.name==="SyntaxError"?X.from(f,X.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],o=>{xt.headers[o]={}});const yo=D.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"]),go=o=>{const r={};let n,s,a;return o&&o.split(` `).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),s=l.substring(a+1).trim(),!(!n||r[n]&&yo[n])&&(n==="set-cookie"?r[n]?r[n].push(s):r[n]=[s]:r[n]=r[n]?r[n]+", "+s:s)}),r},is=Symbol("internals");function Ot(o){return o&&String(o).trim().toLowerCase()}function Qt(o){return o===!1||o==null?o:D.isArray(o)?o.map(Qt):String(o)}function bo(o){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(o);)r[s[1]]=s[2];return r}const vo=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function qn(o,r,n,s,a){if(D.isFunction(s))return s.call(this,r,n);if(a&&(r=n),!!D.isString(r)){if(D.isString(s))return r.indexOf(s)!==-1;if(D.isRegExp(s))return s.test(r)}}function wo(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,s)=>n.toUpperCase()+s)}function So(o,r){const n=D.toCamelCase(" "+r);["get","set","has"].forEach(s=>{Object.defineProperty(o,s+n,{value:function(a,u,l){return this[s].call(this,r,a,u,l)},configurable:!0})})}let Pe=class{constructor(r){r&&this.set(r)}set(r,n,s){const a=this;function u(f,y,b){const I=Ot(y);if(!I)throw new Error("header name must be a non-empty string");const O=D.findKey(a,I);(!O||a[O]===void 0||b===!0||b===void 0&&a[O]!==!1)&&(a[O||y]=Qt(f))}const l=(f,y)=>D.forEach(f,(b,I)=>u(b,I,y));if(D.isPlainObject(r)||r instanceof this.constructor)l(r,n);else if(D.isString(r)&&(r=r.trim())&&!vo(r))l(go(r),n);else if(D.isHeaders(r))for(const[f,y]of r.entries())u(y,f,s);else r!=null&&u(n,r,s);return this}get(r,n){if(r=Ot(r),r){const s=D.findKey(this,r);if(s){const a=this[s];if(!n)return a;if(n===!0)return bo(a);if(D.isFunction(n))return n.call(this,a,s);if(D.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=Ot(r),r){const s=D.findKey(this,r);return!!(s&&this[s]!==void 0&&(!n||qn(this,this[s],s,n)))}return!1}delete(r,n){const s=this;let a=!1;function u(l){if(l=Ot(l),l){const f=D.findKey(s,l);f&&(!n||qn(s,s[f],f,n))&&(delete s[f],a=!0)}}return D.isArray(r)?r.forEach(u):u(r),a}clear(r){const n=Object.keys(this);let s=n.length,a=!1;for(;s--;){const u=n[s];(!r||qn(this,this[u],u,r,!0))&&(delete this[u],a=!0)}return a}normalize(r){const n=this,s={};return D.forEach(this,(a,u)=>{const l=D.findKey(s,u);if(l){n[l]=Qt(a),delete n[u];return}const f=r?wo(u):String(u).trim();f!==u&&delete n[u],n[f]=Qt(a),s[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return D.forEach(this,(s,a)=>{s!=null&&s!==!1&&(n[a]=r&&D.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const s=new this(r);return n.forEach(a=>s.set(a)),s}static accessor(r){const s=(this[is]=this[is]={accessors:{}}).accessors,a=this.prototype;function u(l){const f=Ot(l);s[f]||(So(a,l),s[f]=!0)}return D.isArray(r)?r.forEach(u):u(r),this}};Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(Pe.prototype,({value:o},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>o,set(s){this[n]=s}}}),D.freezeMethods(Pe);function Un(o,r){const n=this||xt,s=r||n,a=Pe.from(s.headers);let u=s.data;return D.forEach(o,function(f){u=f.call(n,u,a.normalize(),r?r.status:void 0)}),a.normalize(),u}function os(o){return!!(o&&o.__CANCEL__)}function mt(o,r,n){X.call(this,o??"canceled",X.ERR_CANCELED,r,n),this.name="CanceledError"}D.inherits(mt,X,{__CANCEL__:!0});function as(o,r,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?o(n):r(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ao(o){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return r&&r[1]||""}function _o(o,r){o=o||10;const n=new Array(o),s=new Array(o);let a=0,u=0,l;return r=r!==void 0?r:1e3,function(y){const b=Date.now(),I=s[u];l||(l=b),n[a]=y,s[a]=b;let O=u,j=0;for(;O!==a;)j+=n[O++],O=O%o;if(a=(a+1)%o,a===u&&(u=(u+1)%o),b-l<r)return;const z=I&&b-I;return z?Math.round(j*1e3/z):void 0}}function Eo(o,r){let n=0,s=1e3/r,a,u;const l=(b,I=Date.now())=>{n=I,a=null,u&&(clearTimeout(u),u=null),o.apply(null,b)};return[(...b)=>{const I=Date.now(),O=I-n;O>=s?l(b,I):(a=b,u||(u=setTimeout(()=>{u=null,l(a)},s-O)))},()=>a&&l(a)]}const Zt=(o,r,n=3)=>{let s=0;const a=_o(50,250);return Eo(u=>{const l=u.loaded,f=u.lengthComputable?u.total:void 0,y=l-s,b=a(y),I=l<=f;s=l;const O={loaded:l,total:f,progress:f?l/f:void 0,bytes:y,rate:b||void 0,estimated:b&&f&&I?(f-l)/b:void 0,event:u,lengthComputable:f!=null,[r?"download":"upload"]:!0};o(O)},n)},cs=(o,r)=>{const n=o!=null;return[s=>r[0]({lengthComputable:n,total:o,loaded:s}),r[1]]},us=o=>(...r)=>D.asap(()=>o(...r)),Po=ve.hasStandardBrowserEnv?((o,r)=>n=>(n=new URL(n,ve.origin),o.protocol===n.protocol&&o.host===n.host&&(r||o.port===n.port)))(new URL(ve.origin),ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent)):()=>!0,Co=ve.hasStandardBrowserEnv?{write(o,r,n,s,a,u){const l=[o+"="+encodeURIComponent(r)];D.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),D.isString(s)&&l.push("path="+s),D.isString(a)&&l.push("domain="+a),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read(o){const r=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Io(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function xo(o,r){return r?o.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):o}function ls(o,r){return o&&!Io(r)?xo(o,r):r}const ds=o=>o instanceof Pe?{...o}:o;function Ze(o,r){r=r||{};const n={};function s(b,I,O,j){return D.isPlainObject(b)&&D.isPlainObject(I)?D.merge.call({caseless:j},b,I):D.isPlainObject(I)?D.merge({},I):D.isArray(I)?I.slice():I}function a(b,I,O,j){if(D.isUndefined(I)){if(!D.isUndefined(b))return s(void 0,b,O,j)}else return s(b,I,O,j)}function u(b,I){if(!D.isUndefined(I))return s(void 0,I)}function l(b,I){if(D.isUndefined(I)){if(!D.isUndefined(b))return s(void 0,b)}else return s(void 0,I)}function f(b,I,O){if(O in r)return s(b,I);if(O in o)return s(void 0,b)}const y={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(b,I,O)=>a(ds(b),ds(I),O,!0)};return D.forEach(Object.keys(Object.assign({},o,r)),function(I){const O=y[I]||a,j=O(o[I],r[I],I);D.isUndefined(j)&&O!==f||(n[I]=j)}),n}const fs=o=>{const r=Ze({},o);let{data:n,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:u,headers:l,auth:f}=r;r.headers=l=Pe.from(l),r.url=ts(ls(r.baseURL,r.url),o.params,o.paramsSerializer),f&&l.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let y;if(D.isFormData(n)){if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((y=l.getContentType())!==!1){const[b,...I]=y?y.split(";").map(O=>O.trim()).filter(Boolean):[];l.setContentType([b||"multipart/form-data",...I].join("; "))}}if(ve.hasStandardBrowserEnv&&(s&&D.isFunction(s)&&(s=s(r)),s||s!==!1&&Po(r.url))){const b=a&&u&&Co.read(u);b&&l.set(a,b)}return r},Oo=typeof XMLHttpRequest<"u"&&function(o){return new Promise(function(n,s){const a=fs(o);let u=a.data;const l=Pe.from(a.headers).normalize();let{responseType:f,onUploadProgress:y,onDownloadProgress:b}=a,I,O,j,z,M;function U(){z&&z(),M&&M(),a.cancelToken&&a.cancelToken.unsubscribe(I),a.signal&&a.signal.removeEventListener("abort",I)}let H=new XMLHttpRequest;H.open(a.method.toUpperCase(),a.url,!0),H.timeout=a.timeout;function ee(){if(!H)return;const de=Pe.from("getAllResponseHeaders"in H&&H.getAllResponseHeaders()),be={data:!f||f==="text"||f==="json"?H.responseText:H.response,status:H.status,statusText:H.statusText,headers:de,config:o,request:H};as(function(fe){n(fe),U()},function(fe){s(fe),U()},be),H=null}"onloadend"in H?H.onloadend=ee:H.onreadystatechange=function(){!H||H.readyState!==4||H.status===0&&!(H.responseURL&&H.responseURL.indexOf("file:")===0)||setTimeout(ee)},H.onabort=function(){H&&(s(new X("Request aborted",X.ECONNABORTED,o,H)),H=null)},H.onerror=function(){s(new X("Network Error",X.ERR_NETWORK,o,H)),H=null},H.ontimeout=function(){let _e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const be=a.transitional||rs;a.timeoutErrorMessage&&(_e=a.timeoutErrorMessage),s(new X(_e,be.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,o,H)),H=null},u===void 0&&l.setContentType(null),"setRequestHeader"in H&&D.forEach(l.toJSON(),function(_e,be){H.setRequestHeader(be,_e)}),D.isUndefined(a.withCredentials)||(H.withCredentials=!!a.withCredentials),f&&f!=="json"&&(H.responseType=a.responseType),b&&([j,M]=Zt(b,!0),H.addEventListener("progress",j)),y&&H.upload&&([O,z]=Zt(y),H.upload.addEventListener("progress",O),H.upload.addEventListener("loadend",z)),(a.cancelToken||a.signal)&&(I=de=>{H&&(s(!de||de.type?new mt(null,o,H):de),H.abort(),H=null)},a.cancelToken&&a.cancelToken.subscribe(I),a.signal&&(a.signal.aborted?I():a.signal.addEventListener("abort",I)));const ae=Ao(a.url);if(ae&&ve.protocols.indexOf(ae)===-1){s(new X("Unsupported protocol "+ae+":",X.ERR_BAD_REQUEST,o));return}H.send(u||null)})},ko=(o,r)=>{const{length:n}=o=o?o.filter(Boolean):[];if(r||n){let s=new AbortController,a;const u=function(b){if(!a){a=!0,f();const I=b instanceof Error?b:this.reason;s.abort(I instanceof X?I:new mt(I instanceof Error?I.message:I))}};let l=r&&setTimeout(()=>{l=null,u(new X(`timeout ${r} of ms exceeded`,X.ETIMEDOUT))},r);const f=()=>{o&&(l&&clearTimeout(l),l=null,o.forEach(b=>{b.unsubscribe?b.unsubscribe(u):b.removeEventListener("abort",u)}),o=null)};o.forEach(b=>b.addEventListener("abort",u));const{signal:y}=s;return y.unsubscribe=()=>D.asap(f),y}},No=function*(o,r){let n=o.byteLength;if(n<r){yield o;return}let s=0,a;for(;s<n;)a=s+r,yield o.slice(s,a),s=a},Do=async function*(o,r){for await(const n of Ro(o))yield*No(n,r)},Ro=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const r=o.getReader();try{for(;;){const{done:n,value:s}=await r.read();if(n)break;yield s}}finally{await r.cancel()}},hs=(o,r,n,s)=>{const a=Do(o,r);let u=0,l,f=y=>{l||(l=!0,s&&s(y))};return new ReadableStream({async pull(y){try{const{done:b,value:I}=await a.next();if(b){f(),y.close();return}let O=I.byteLength;if(n){let j=u+=O;n(j)}y.enqueue(new Uint8Array(I))}catch(b){throw f(b),b}},cancel(y){return f(y),a.return()}},{highWaterMark:2})},en=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ps=en&&typeof ReadableStream=="function",To=en&&(typeof TextEncoder=="function"?(o=>r=>o.encode(r))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),ms=(o,...r)=>{try{return!!o(...r)}catch{return!1}},jo=ps&&ms(()=>{let o=!1;const r=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!r}),ys=64*1024,Hn=ps&&ms(()=>D.isReadableStream(new Response("").body)),tn={stream:Hn&&(o=>o.body)};en&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!tn[r]&&(tn[r]=D.isFunction(o[r])?n=>n[r]():(n,s)=>{throw new X(`Response type '${r}' is not supported`,X.ERR_NOT_SUPPORT,s)})})})(new Response);const Bo=async o=>{if(o==null)return 0;if(D.isBlob(o))return o.size;if(D.isSpecCompliantForm(o))return(await new Request(ve.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(D.isArrayBufferView(o)||D.isArrayBuffer(o))return o.byteLength;if(D.isURLSearchParams(o)&&(o=o+""),D.isString(o))return(await To(o)).byteLength},Mo=async(o,r)=>{const n=D.toFiniteNumber(o.getContentLength());return n??Bo(r)},$n={http:ro,xhr:Oo,fetch:en&&(async o=>{let{url:r,method:n,data:s,signal:a,cancelToken:u,timeout:l,onDownloadProgress:f,onUploadProgress:y,responseType:b,headers:I,withCredentials:O="same-origin",fetchOptions:j}=fs(o);b=b?(b+"").toLowerCase():"text";let z=ko([a,u&&u.toAbortSignal()],l),M;const U=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let H;try{if(y&&jo&&n!=="get"&&n!=="head"&&(H=await Mo(I,s))!==0){let be=new Request(r,{method:"POST",body:s,duplex:"half"}),me;if(D.isFormData(s)&&(me=be.headers.get("content-type"))&&I.setContentType(me),be.body){const[fe,nt]=cs(H,Zt(us(y)));s=hs(be.body,ys,fe,nt)}}D.isString(O)||(O=O?"include":"omit");const ee="credentials"in Request.prototype;M=new Request(r,{...j,signal:z,method:n.toUpperCase(),headers:I.normalize().toJSON(),body:s,duplex:"half",credentials:ee?O:void 0});let ae=await fetch(M);const de=Hn&&(b==="stream"||b==="response");if(Hn&&(f||de&&U)){const be={};["status","statusText","headers"].forEach(sn=>{be[sn]=ae[sn]});const me=D.toFiniteNumber(ae.headers.get("content-length")),[fe,nt]=f&&cs(me,Zt(us(f),!0))||[];ae=new Response(hs(ae.body,ys,fe,()=>{nt&&nt(),U&&U()}),be)}b=b||"text";let _e=await tn[D.findKey(tn,b)||"text"](ae,o);return!de&&U&&U(),await new Promise((be,me)=>{as(be,me,{data:_e,headers:Pe.from(ae.headers),status:ae.status,statusText:ae.statusText,config:o,request:M})})}catch(ee){throw U&&U(),ee&&ee.name==="TypeError"&&/fetch/i.test(ee.message)?Object.assign(new X("Network Error",X.ERR_NETWORK,o,M),{cause:ee.cause||ee}):X.from(ee,ee&&ee.code,o,M)}})};D.forEach($n,(o,r)=>{if(o){try{Object.defineProperty(o,"name",{value:r})}catch{}Object.defineProperty(o,"adapterName",{value:r})}});const gs=o=>`- ${o}`,Lo=o=>D.isFunction(o)||o===null||o===!1,bs={getAdapter:o=>{o=D.isArray(o)?o:[o];const{length:r}=o;let n,s;const a={};for(let u=0;u<r;u++){n=o[u];let l;if(s=n,!Lo(n)&&(s=$n[(l=String(n)).toLowerCase()],s===void 0))throw new X(`Unknown adapter '${l}'`);if(s)break;a[l||"#"+u]=s}if(!s){const u=Object.entries(a).map(([f,y])=>`adapter ${f} `+(y===!1?"is not supported by the environment":"is not available in the build"));let l=r?u.length>1?`since : `+u.map(gs).join(` `):" "+gs(u[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s},adapters:$n};function zn(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new mt(null,o)}function vs(o){return zn(o),o.headers=Pe.from(o.headers),o.data=Un.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),bs.getAdapter(o.adapter||xt.adapter)(o).then(function(s){return zn(o),s.data=Un.call(o,o.transformResponse,s),s.headers=Pe.from(s.headers),s},function(s){return os(s)||(zn(o),s&&s.response&&(s.response.data=Un.call(o,o.transformResponse,s.response),s.response.headers=Pe.from(s.response.headers))),Promise.reject(s)})}const ws="1.7.9",nn={};["object","boolean","number","function","string","symbol"].forEach((o,r)=>{nn[o]=function(s){return typeof s===o||"a"+(r<1?"n ":" ")+o}});const Ss={};nn.transitional=function(r,n,s){function a(u,l){return"[Axios v"+ws+"] Transitional option '"+u+"'"+l+(s?". "+s:"")}return(u,l,f)=>{if(r===!1)throw new X(a(l," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!Ss[l]&&(Ss[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(u,l,f):!0}},nn.spelling=function(r){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${r}`),!0)};function Fo(o,r,n){if(typeof o!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const s=Object.keys(o);let a=s.length;for(;a-- >0;){const u=s[a],l=r[u];if(l){const f=o[u],y=f===void 0||l(f,u,o);if(y!==!0)throw new X("option "+u+" must be "+y,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+u,X.ERR_BAD_OPTION)}}const rn={assertOptions:Fo,validators:nn},Te=rn.validators;let et=class{constructor(r){this.defaults=r,this.interceptors={request:new ns,response:new ns}}async request(r,n){try{return await this._request(r,n)}catch(s){if(s instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const u=a.stack?a.stack.replace(/^.+\n/,""):"";try{s.stack?u&&!String(s.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(s.stack+=` `+u):s.stack=u}catch{}}throw s}}_request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=Ze(this.defaults,n);const{transitional:s,paramsSerializer:a,headers:u}=n;s!==void 0&&rn.assertOptions(s,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1),a!=null&&(D.isFunction(a)?n.paramsSerializer={serialize:a}:rn.assertOptions(a,{encode:Te.function,serialize:Te.function},!0)),rn.assertOptions(n,{baseUrl:Te.spelling("baseURL"),withXsrfToken:Te.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=u&&D.merge(u.common,u[n.method]);u&&D.forEach(["delete","get","head","post","put","patch","common"],M=>{delete u[M]}),n.headers=Pe.concat(l,u);const f=[];let y=!0;this.interceptors.request.forEach(function(U){typeof U.runWhen=="function"&&U.runWhen(n)===!1||(y=y&&U.synchronous,f.unshift(U.fulfilled,U.rejected))});const b=[];this.interceptors.response.forEach(function(U){b.push(U.fulfilled,U.rejected)});let I,O=0,j;if(!y){const M=[vs.bind(this),void 0];for(M.unshift.apply(M,f),M.push.apply(M,b),j=M.length,I=Promise.resolve(n);O<j;)I=I.then(M[O++],M[O++]);return I}j=f.length;let z=n;for(O=0;O<j;){const M=f[O++],U=f[O++];try{z=M(z)}catch(H){U.call(this,H);break}}try{I=vs.call(this,z)}catch(M){return Promise.reject(M)}for(O=0,j=b.length;O<j;)I=I.then(b[O++],b[O++]);return I}getUri(r){r=Ze(this.defaults,r);const n=ls(r.baseURL,r.url);return ts(n,r.params,r.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(r){et.prototype[r]=function(n,s){return this.request(Ze(s||{},{method:r,url:n,data:(s||{}).data}))}}),D.forEach(["post","put","patch"],function(r){function n(s){return function(u,l,f){return this.request(Ze(f||{},{method:r,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:l}))}}et.prototype[r]=n(),et.prototype[r+"Form"]=n(!0)});let Go=class fi{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const s=this;this.promise.then(a=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=>{let u;const l=new Promise(f=>{s.subscribe(f),u=f}).then(a);return l.cancel=function(){s.unsubscribe(u)},l},r(function(u,l,f){s.reason||(s.reason=new mt(u,l,f),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const r=new AbortController,n=s=>{r.abort(s)};return this.subscribe(n),r.signal.unsubscribe=()=>this.unsubscribe(n),r.signal}static source(){let r;return{token:new fi(function(a){r=a}),cancel:r}}};function Ko(o){return function(n){return o.apply(null,n)}}function qo(o){return D.isObject(o)&&o.isAxiosError===!0}const Vn={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(Vn).forEach(([o,r])=>{Vn[r]=o});function As(o){const r=new et(o),n=Fr(et.prototype.request,r);return D.extend(n,et.prototype,r,{allOwnKeys:!0}),D.extend(n,r,null,{allOwnKeys:!0}),n.create=function(a){return As(Ze(o,a))},n}const le=As(xt);le.Axios=et,le.CanceledError=mt,le.CancelToken=Go,le.isCancel=os,le.VERSION=ws,le.toFormData=Yt,le.AxiosError=X,le.Cancel=le.CanceledError,le.all=function(r){return Promise.all(r)},le.spread=Ko,le.isAxiosError=qo,le.mergeConfig=Ze,le.AxiosHeaders=Pe,le.formToJSON=o=>ss(D.isHTMLForm(o)?new FormData(o):o),le.getAdapter=bs.getAdapter,le.HttpStatusCode=Vn,le.default=le;const{Axios:ec,AxiosError:tc,CanceledError:nc,isCancel:rc,CancelToken:sc,VERSION:ic,all:oc,Cancel:ac,isAxiosError:cc,spread:uc,toFormData:lc,AxiosHeaders:dc,HttpStatusCode:_s,formToJSON:fc,getAdapter:hc,mergeConfig:pc}=le,Uo=["SUCCESS",200,"0000","success"],Ho=[_s.Created,_s.Ok],se=le.create();se.interceptors.request.use(o=>{var r,n;return $(o.baseURL)?Promise.reject("proxy is empty, please setting first"):((r=o.headers)!=null&&r.hasContentType()||o.headers.setContentType("application/json",!0),((n=o.method)==null?void 0:n.toUpperCase())==="GET"&&(o.params=(o==null?void 0:o.params)??(o==null?void 0:o.data),o==null||delete o.data),!o.headers.hasAuthorization()&&!o.headers.has("x-render-order")?Promise.reject("Request is not authorized"):o)},o=>Promise.reject(o)),se.interceptors.response.use(o=>{const{data:r,status:n}=o,s=o.config;return Ho.includes(n)?s!=null&&s.customize?r:Uo.includes(r==null?void 0:r.status)?(r==null?void 0:r.result)??r:Promise.reject(r):Promise.reject(o)},o=>{var n;const r=(o==null?void 0:o.response)??o;return(r==null?void 0:r.code)??(r==null?void 0:r.statusCode)??(r==null||r.status),((n=r==null?void 0:r.data)==null?void 0:n.message)??(r==null?void 0:r.message)??(r==null?void 0:r.statusText)??(r==null||r.statusMessage),Promise.reject((r==null?void 0:r.data)??r)});var Es=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Ps={exports:{}};(function(o,r){(function(n,s){o.exports=s()})(Es,function(){var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(i[d]=c[d])})(e,t)},s=function(){return(s=Object.assign||function(e){for(var t,i=1,c=arguments.length;i<c;i++)for(var d in t=arguments[i])Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d]);return e}).apply(this,arguments)};function a(e,t,i){for(var c,d=0,h=t.length;d<h;d++)!c&&d in t||((c=c||Array.prototype.slice.call(t,0,d))[d]=t[d]);return e.concat(c||Array.prototype.slice.call(t))}var u=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Es,l=Object.keys,f=Array.isArray;function y(e,t){return typeof t!="object"||l(t).forEach(function(i){e[i]=t[i]}),e}typeof Promise>"u"||u.Promise||(u.Promise=Promise);var b=Object.getPrototypeOf,I={}.hasOwnProperty;function O(e,t){return I.call(e,t)}function j(e,t){typeof t=="function"&&(t=t(b(e))),(typeof Reflect>"u"?l:Reflect.ownKeys)(t).forEach(function(i){M(e,i,t[i])})}var z=Object.defineProperty;function M(e,t,i,c){z(e,t,y(i&&O(i,"get")&&typeof i.get=="function"?{get:i.get,set:i.set,configurable:!0}:{value:i,configurable:!0,writable:!0},c))}function U(e){return{from:function(t){return e.prototype=Object.create(t.prototype),M(e.prototype,"constructor",e),{extend:j.bind(null,e.prototype)}}}}var H=Object.getOwnPropertyDescriptor,ee=[].slice;function ae(e,t,i){return ee.call(e,t,i)}function de(e,t){return t(e)}function _e(e){if(!e)throw new Error("Assertion Failed")}function be(e){u.setImmediate?setImmediate(e):setTimeout(e,0)}function me(e,t){if(typeof t=="string"&&O(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var i=[],c=0,d=t.length;c<d;++c){var h=me(e,t[c]);i.push(h)}return i}var p=t.indexOf(".");if(p!==-1){var m=e[t.substr(0,p)];return m==null?void 0:me(m,t.substr(p+1))}}function fe(e,t,i){if(e&&t!==void 0&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){_e(typeof i!="string"&&"length"in i);for(var c=0,d=t.length;c<d;++c)fe(e,t[c],i[c])}else{var h,p,m=t.indexOf(".");m!==-1?(h=t.substr(0,m),(p=t.substr(m+1))===""?i===void 0?f(e)&&!isNaN(parseInt(h))?e.splice(h,1):delete e[h]:e[h]=i:fe(m=!(m=e[h])||!O(e,h)?e[h]={}:m,p,i)):i===void 0?f(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=i}}function nt(e){var t,i={};for(t in e)O(e,t)&&(i[t]=e[t]);return i}var sn=[].concat;function ks(e){return sn.apply([],e)}var Ke="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(ks([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return u[e]}),Ns=new Set(Ke.map(function(e){return u[e]})),Nt=null;function He(e){return Nt=new WeakMap,e=function t(i){if(!i||typeof i!="object")return i;var c=Nt.get(i);if(c)return c;if(f(i)){c=[],Nt.set(i,c);for(var d=0,h=i.length;d<h;++d)c.push(t(i[d]))}else if(Ns.has(i.constructor))c=i;else{var p,m=b(i);for(p in c=m===Object.prototype?{}:Object.create(m),Nt.set(i,c),i)O(i,p)&&(c[p]=t(i[p]))}return c}(e),Nt=null,e}var fa={}.toString;function Yn(e){return fa.call(e).slice(8,-1)}var Qn=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ha=typeof Qn=="symbol"?function(e){var t;return e!=null&&(t=e[Qn])&&t.apply(e)}:function(){return null};function rt(e,t){return t=e.indexOf(t),0<=t&&e.splice(t,1),0<=t}var yt={};function Fe(e){var t,i,c,d;if(arguments.length===1){if(f(e))return e.slice();if(this===yt&&typeof e=="string")return[e];if(d=ha(e)){for(i=[];!(c=d.next()).done;)i.push(c.value);return i}if(e==null)return[e];if(typeof(t=e.length)!="number")return[e];for(i=new Array(t);t--;)i[t]=e[t];return i}for(t=arguments.length,i=new Array(t);t--;)i[t]=arguments[t];return i}var Zn=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Tt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ke=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Tt),pa={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function gt(e,t){this.name=e,this.message=t}function Ds(e,t){return e+". Errors: "+Object.keys(t).map(function(i){return t[i].toString()}).filter(function(i,c,d){return d.indexOf(i)===c}).join(` `)}function on(e,t,i,c){this.failures=t,this.failedKeys=c,this.successCount=i,this.message=Ds(e,t)}function bt(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(i){return t[i]}),this.failuresByPos=t,this.message=Ds(e,this.failures)}U(gt).from(Error).extend({toString:function(){return this.name+": "+this.message}}),U(on).from(gt),U(bt).from(gt);var er=ke.reduce(function(e,t){return e[t]=t+"Error",e},{}),ma=gt,W=ke.reduce(function(e,t){var i=t+"Error";function c(d,h){this.name=i,d?typeof d=="string"?(this.message="".concat(d).concat(h?` `+h:""),this.inner=h||null):typeof d=="object"&&(this.message="".concat(d.name," ").concat(d.message),this.inner=d):(this.message=pa[t]||i,this.inner=null)}return U(c).from(ma),e[t]=c,e},{});W.Syntax=SyntaxError,W.Type=TypeError,W.Range=RangeError;var Rs=Tt.reduce(function(e,t){return e[t+"Error"]=W[t],e},{}),an=ke.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=W[t]),e},{});function oe(){}function Dt(e){return e}function ya(e,t){return e==null||e===Dt?t:function(i){return t(e(i))}}function st(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ga(e,t){return e===oe?t:function(){var i=e.apply(this,arguments);i!==void 0&&(arguments[0]=i);var c=this.onsuccess,d=this.onerror;this.onsuccess=null,this.onerror=null;var h=t.apply(this,arguments);return c&&(this.onsuccess=this.onsuccess?st(c,this.onsuccess):c),d&&(this.onerror=this.onerror?st(d,this.onerror):d),h!==void 0?h:i}}function ba(e,t){return e===oe?t:function(){e.apply(this,arguments);var i=this.onsuccess,c=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),i&&(this.onsuccess=this.onsuccess?st(i,this.onsuccess):i),c&&(this.onerror=this.onerror?st(c,this.onerror):c)}}function va(e,t){return e===oe?t:function(i){var c=e.apply(this,arguments);y(i,c);var d=this.onsuccess,h=this.onerror;return this.onsuccess=null,this.onerror=null,i=t.apply(this,arguments),d&&(this.onsuccess=this.onsuccess?st(d,this.onsuccess):d),h&&(this.onerror=this.onerror?st(h,this.onerror):h),c===void 0?i===void 0?void 0:i:y(c,i)}}function wa(e,t){return e===oe?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function tr(e,t){return e===oe?t:function(){var i=e.apply(this,arguments);if(i&&typeof i.then=="function"){for(var c=this,d=arguments.length,h=new Array(d);d--;)h[d]=arguments[d];return i.then(function(){return t.apply(c,h)})}return t.apply(this,arguments)}}an.ModifyError=on,an.DexieError=gt,an.BulkError=bt;var je=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ts(e){je=e}var Rt={},js=100,Ke=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,b(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,b(t),e]}(),Tt=Ke[0],ke=Ke[1],Ke=Ke[2],ke=ke&&ke.then,jt=Tt&&Tt.constructor,nr=!!Ke,Bt=function(e,t){Mt.push([e,t]),cn&&(queueMicrotask(Aa),cn=!1)},rr=!0,cn=!0,it=[],un=[],sr=Dt,$e={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:oe,pgp:!1,env:{},finalize:oe},V=$e,Mt=[],ot=0,ln=[];function q(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=V;if(typeof e!="function"){if(e!==Rt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&or(this,this._value))}this._state=null,this._value=null,++t.ref,function i(c,d){try{d(function(h){if(c._state===null){if(h===c)throw new TypeError("A promise cannot be resolved with itself.");var p=c._lib&&vt();h&&typeof h.then=="function"?i(c,function(m,S){h instanceof q?h._then(m,S):h.then(m,S)}):(c._state=!0,c._value=h,Ms(c)),p&&wt()}},or.bind(null,c))}catch(h){or(c,h)}}(this,e)}var ir={get:function(){var e=V,t=pn;function i(c,d){var h=this,p=!e.global&&(e!==V||t!==pn),m=p&&!Ve(),S=new q(function(v,E){ar(h,new Bs(Fs(c,e,p,m),Fs(d,e,p,m),v,E,e))});return this._consoleTask&&(S._consoleTask=this._consoleTask),S}return i.prototype=Rt,i},set:function(e){M(this,"then",e&&e.prototype===Rt?ir:{get:function(){return e},set:ir.set})}};function Bs(e,t,i,c,d){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=i,this.reject=c,this.psd=d}function or(e,t){var i,c;un.push(t),e._state===null&&(i=e._lib&&vt(),t=sr(t),e._state=!1,e._value=t,c=e,it.some(function(d){return d._value===c._value})||it.push(c),Ms(e),i&&wt())}function Ms(e){var t=e._listeners;e._listeners=[];for(var i=0,c=t.length;i<c;++i)ar(e,t[i]);var d=e._PSD;--d.ref||d.finalize(),ot===0&&(++ot,Bt(function(){--ot==0&&cr()},[]))}function ar(e,t){if(e._state!==null){var i=e._state?t.onFulfilled:t.onRejected;if(i===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ot,Bt(Sa,[i,e,t])}else e._listeners.push(t)}function Sa(e,t,i){try{var c,d=t._value;!t._state&&un.length&&(un=[]),c=je&&t._consoleTask?t._consoleTask.run(function(){return e(d)}):e(d),t._state||un.indexOf(d)!==-1||function(h){for(var p=it.length;p;)if(it[--p]._value===h._value)return it.splice(p,1)}(t),i.resolve(c)}catch(h){i.reject(h)}finally{--ot==0&&cr(),--i.psd.ref||i.psd.finalize()}}function Aa(){at($e,function(){vt()&&wt()})}function vt(){var e=rr;return cn=rr=!1,e}function wt(){var e,t,i;do for(;