cloudbypass-sdk
Version:
Cloudbypass Nodejs SDK.
1 lines • 208 kB
JavaScript
import a from"punycode";import o from"util";import e from"url";function i(a,o){return function(){return a.apply(o,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,s=(r=Object.create(null),a=>{const o=t.call(a);return r[o]||(r[o]=o.slice(8,-1).toLowerCase())});var r;const u=a=>(a=a.toLowerCase(),o=>s(o)===a),m=a=>o=>typeof o===a,{isArray:c}=Array,p=m("undefined");const l=u("ArrayBuffer");const h=m("string"),d=m("function"),g=m("number"),k=a=>null!==a&&"object"==typeof a,j=a=>{if("object"!==s(a))return!1;const o=n(a);return!(null!==o&&o!==Object.prototype&&null!==Object.getPrototypeOf(o)||Symbol.toStringTag in a||Symbol.iterator in a)},f=u("Date"),b=u("File"),y=u("Blob"),w=u("FileList"),v=u("URLSearchParams"),[z,x,S,E]=["ReadableStream","Request","Response","Headers"].map(u);function O(a,o,{allOwnKeys:e=!1}={}){if(null==a)return;let i,t;if("object"!=typeof a&&(a=[a]),c(a))for(i=0,t=a.length;i<t;i++)o.call(null,a[i],i,a);else{const t=e?Object.getOwnPropertyNames(a):Object.keys(a),n=t.length;let s;for(i=0;i<n;i++)s=t[i],o.call(null,a[s],s,a)}}function C(a,o){o=o.toLowerCase();const e=Object.keys(a);let i,t=e.length;for(;t-- >0;)if(i=e[t],o===i.toLowerCase())return i;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,R=a=>!p(a)&&a!==A;const T=(_="undefined"!=typeof Uint8Array&&n(Uint8Array),a=>_&&a instanceof _);var _;const I=u("HTMLFormElement"),q=(({hasOwnProperty:a})=>(o,e)=>a.call(o,e))(Object.prototype),P=u("RegExp"),D=(a,o)=>{const e=Object.getOwnPropertyDescriptors(a),i={};O(e,((e,t)=>{let n;!1!==(n=o(e,t,a))&&(i[t]=n||e)})),Object.defineProperties(a,i)},L="abcdefghijklmnopqrstuvwxyz",N="0123456789",U={DIGIT:N,ALPHA:L,ALPHA_DIGIT:L+L.toUpperCase()+N};const F=u("AsyncFunction"),B=(M="function"==typeof setImmediate,$=d(A.postMessage),M?setImmediate:$?(H=`axios@${Math.random()}`,J=[],A.addEventListener("message",(({source:a,data:o})=>{a===A&&o===H&&J.length&&J.shift()()}),!1),a=>{J.push(a),A.postMessage(H,"*")}):a=>setTimeout(a));var M,$,H,J;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(A):"undefined"!=typeof process&&process.nextTick||B,V={isArray:c,isArrayBuffer:l,isBuffer:function(a){return null!==a&&!p(a)&&null!==a.constructor&&!p(a.constructor)&&d(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},isFormData:a=>{let o;return a&&("function"==typeof FormData&&a instanceof FormData||d(a.append)&&("formdata"===(o=s(a))||"object"===o&&d(a.toString)&&"[object FormData]"===a.toString()))},isArrayBufferView:function(a){let o;return o="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer&&l(a.buffer),o},isString:h,isNumber:g,isBoolean:a=>!0===a||!1===a,isObject:k,isPlainObject:j,isReadableStream:z,isRequest:x,isResponse:S,isHeaders:E,isUndefined:p,isDate:f,isFile:b,isBlob:y,isRegExp:P,isFunction:d,isStream:a=>k(a)&&d(a.pipe),isURLSearchParams:v,isTypedArray:T,isFileList:w,forEach:O,merge:function a(){const{caseless:o}=R(this)&&this||{},e={},i=(i,t)=>{const n=o&&C(e,t)||t;j(e[n])&&j(i)?e[n]=a(e[n],i):j(i)?e[n]=a({},i):c(i)?e[n]=i.slice():e[n]=i};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&O(arguments[a],i);return e},extend:(a,o,e,{allOwnKeys:t}={})=>(O(o,((o,t)=>{e&&d(o)?a[t]=i(o,e):a[t]=o}),{allOwnKeys:t}),a),trim:a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:a=>(65279===a.charCodeAt(0)&&(a=a.slice(1)),a),inherits:(a,o,e,i)=>{a.prototype=Object.create(o.prototype,i),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:o.prototype}),e&&Object.assign(a.prototype,e)},toFlatObject:(a,o,e,i)=>{let t,s,r;const u={};if(o=o||{},null==a)return o;do{for(t=Object.getOwnPropertyNames(a),s=t.length;s-- >0;)r=t[s],i&&!i(r,a,o)||u[r]||(o[r]=a[r],u[r]=!0);a=!1!==e&&n(a)}while(a&&(!e||e(a,o))&&a!==Object.prototype);return o},kindOf:s,kindOfTest:u,endsWith:(a,o,e)=>{a=String(a),(void 0===e||e>a.length)&&(e=a.length),e-=o.length;const i=a.indexOf(o,e);return-1!==i&&i===e},toArray:a=>{if(!a)return null;if(c(a))return a;let o=a.length;if(!g(o))return null;const e=new Array(o);for(;o-- >0;)e[o]=a[o];return e},forEachEntry:(a,o)=>{const e=(a&&a[Symbol.iterator]).call(a);let i;for(;(i=e.next())&&!i.done;){const e=i.value;o.call(a,e[0],e[1])}},matchAll:(a,o)=>{let e;const i=[];for(;null!==(e=a.exec(o));)i.push(e);return i},isHTMLForm:I,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:D,freezeMethods:a=>{D(a,((o,e)=>{if(d(a)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;const i=a[e];d(i)&&(o.enumerable=!1,"writable"in o?o.writable=!1:o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(a,o)=>{const e={},i=a=>{a.forEach((a=>{e[a]=!0}))};return c(a)?i(a):i(String(a).split(o)),e},toCamelCase:a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(a,o,e){return o.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(a,o)=>null!=a&&Number.isFinite(a=+a)?a:o,findKey:C,global:A,isContextDefined:R,ALPHABET:U,generateString:(a=16,o=U.ALPHA_DIGIT)=>{let e="";const{length:i}=o;for(;a--;)e+=o[Math.random()*i|0];return e},isSpecCompliantForm:function(a){return!!(a&&d(a.append)&&"FormData"===a[Symbol.toStringTag]&&a[Symbol.iterator])},toJSONObject:a=>{const o=new Array(10),e=(a,i)=>{if(k(a)){if(o.indexOf(a)>=0)return;if(!("toJSON"in a)){o[i]=a;const t=c(a)?[]:{};return O(a,((a,o)=>{const n=e(a,i+1);!p(n)&&(t[o]=n)})),o[i]=void 0,t}}return a};return e(a,0)},isAsyncFn:F,isThenable:a=>a&&(k(a)||d(a))&&d(a.then)&&d(a.catch),setImmediate:B,asap:W};function K(a,o,e,i,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=a,this.name="AxiosError",o&&(this.code=o),e&&(this.config=e),i&&(this.request=i),t&&(this.response=t)}V.inherits(K,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:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const G=K.prototype,X={};["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((a=>{X[a]={value:a}})),Object.defineProperties(K,X),Object.defineProperty(G,"isAxiosError",{value:!0}),K.from=(a,o,e,i,t,n)=>{const s=Object.create(G);return V.toFlatObject(a,s,(function(a){return a!==Error.prototype}),(a=>"isAxiosError"!==a)),K.call(s,a.message,o,e,i,t),s.cause=a,s.name=a.name,n&&Object.assign(s,n),s};function Z(a){return V.isPlainObject(a)||V.isArray(a)}function Y(a){return V.endsWith(a,"[]")?a.slice(0,-2):a}function Q(a,o,e){return a?a.concat(o).map((function(a,o){return a=Y(a),!e&&o?"["+a+"]":a})).join(e?".":""):o}const aa=V.toFlatObject(V,{},null,(function(a){return/^is[A-Z]/.test(a)}));function oa(a,o,e){if(!V.isObject(a))throw new TypeError("target must be an object");o=o||new FormData;const i=(e=V.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(a,o){return!V.isUndefined(o[a])}))).metaTokens,t=e.visitor||m,n=e.dots,s=e.indexes,r=(e.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(o);if(!V.isFunction(t))throw new TypeError("visitor must be a function");function u(a){if(null===a)return"";if(V.isDate(a))return a.toISOString();if(!r&&V.isBlob(a))throw new K("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(a)||V.isTypedArray(a)?r&&"function"==typeof Blob?new Blob([a]):Buffer.from(a):a}function m(a,e,t){let r=a;if(a&&!t&&"object"==typeof a)if(V.endsWith(e,"{}"))e=i?e:e.slice(0,-2),a=JSON.stringify(a);else if(V.isArray(a)&&function(a){return V.isArray(a)&&!a.some(Z)}(a)||(V.isFileList(a)||V.endsWith(e,"[]"))&&(r=V.toArray(a)))return e=Y(e),r.forEach((function(a,i){!V.isUndefined(a)&&null!==a&&o.append(!0===s?Q([e],i,n):null===s?e:e+"[]",u(a))})),!1;return!!Z(a)||(o.append(Q(t,e,n),u(a)),!1)}const c=[],p=Object.assign(aa,{defaultVisitor:m,convertValue:u,isVisitable:Z});if(!V.isObject(a))throw new TypeError("data must be an object");return function a(e,i){if(!V.isUndefined(e)){if(-1!==c.indexOf(e))throw Error("Circular reference detected in "+i.join("."));c.push(e),V.forEach(e,(function(e,n){!0===(!(V.isUndefined(e)||null===e)&&t.call(o,e,V.isString(n)?n.trim():n,i,p))&&a(e,i?i.concat(n):[n])})),c.pop()}}(a),o}function ea(a){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,(function(a){return o[a]}))}function ia(a,o){this._pairs=[],a&&oa(a,this,o)}const ta=ia.prototype;function na(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sa(a,o,e){if(!o)return a;const i=e&&e.encode||na,t=e&&e.serialize;let n;if(n=t?t(o,e):V.isURLSearchParams(o)?o.toString():new ia(o,e).toString(i),n){const o=a.indexOf("#");-1!==o&&(a=a.slice(0,o)),a+=(-1===a.indexOf("?")?"?":"&")+n}return a}ta.append=function(a,o){this._pairs.push([a,o])},ta.toString=function(a){const o=a?function(o){return a.call(this,o,ea)}:ea;return this._pairs.map((function(a){return o(a[0])+"="+o(a[1])}),"").join("&")};const ra=class{constructor(){this.handlers=[]}use(a,o,e){return this.handlers.push({fulfilled:a,rejected:o,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){V.forEach(this.handlers,(function(o){null!==o&&a(o)}))}},ua={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ma={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ia,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ca="undefined"!=typeof window&&"undefined"!=typeof document,pa=(la="undefined"!=typeof navigator&&navigator.product,ca&&["ReactNative","NativeScript","NS"].indexOf(la)<0);var la;const ha="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,da=ca&&window.location.href||"http://localhost",ga={...Object.freeze({__proto__:null,hasBrowserEnv:ca,hasStandardBrowserWebWorkerEnv:ha,hasStandardBrowserEnv:pa,origin:da}),...ma};function ka(a){function o(a,e,i,t){let n=a[t++];if("__proto__"===n)return!0;const s=Number.isFinite(+n),r=t>=a.length;if(n=!n&&V.isArray(i)?i.length:n,r)return V.hasOwnProp(i,n)?i[n]=[i[n],e]:i[n]=e,!s;i[n]&&V.isObject(i[n])||(i[n]=[]);return o(a,e,i[n],t)&&V.isArray(i[n])&&(i[n]=function(a){const o={},e=Object.keys(a);let i;const t=e.length;let n;for(i=0;i<t;i++)n=e[i],o[n]=a[n];return o}(i[n])),!s}if(V.isFormData(a)&&V.isFunction(a.entries)){const e={};return V.forEachEntry(a,((a,i)=>{o(function(a){return V.matchAll(/\w+|\[(\w*)]/g,a).map((a=>"[]"===a[0]?"":a[1]||a[0]))}(a),i,e,0)})),e}return null}const ja={transitional:ua,adapter:["xhr","http","fetch"],transformRequest:[function(a,o){const e=o.getContentType()||"",i=e.indexOf("application/json")>-1,t=V.isObject(a);t&&V.isHTMLForm(a)&&(a=new FormData(a));if(V.isFormData(a))return i?JSON.stringify(ka(a)):a;if(V.isArrayBuffer(a)||V.isBuffer(a)||V.isStream(a)||V.isFile(a)||V.isBlob(a)||V.isReadableStream(a))return a;if(V.isArrayBufferView(a))return a.buffer;if(V.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let n;if(t){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(a,o){return oa(a,new ga.classes.URLSearchParams,Object.assign({visitor:function(a,o,e,i){return ga.isNode&&V.isBuffer(a)?(this.append(o,a.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},o))}(a,this.formSerializer).toString();if((n=V.isFileList(a))||e.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return oa(n?{"files[]":a}:a,o&&new o,this.formSerializer)}}return t||i?(o.setContentType("application/json",!1),function(a,o,e){if(V.isString(a))try{return(o||JSON.parse)(a),V.trim(a)}catch(a){if("SyntaxError"!==a.name)throw a}return(e||JSON.stringify)(a)}(a)):a}],transformResponse:[function(a){const o=this.transitional||ja.transitional,e=o&&o.forcedJSONParsing,i="json"===this.responseType;if(V.isResponse(a)||V.isReadableStream(a))return a;if(a&&V.isString(a)&&(e&&!this.responseType||i)){const e=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(a)}catch(a){if(e){if("SyntaxError"===a.name)throw K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ga.classes.FormData,Blob:ga.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(a=>{ja.headers[a]={}}));const fa=ja,ba=V.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"]),ya=Symbol("internals");function wa(a){return a&&String(a).trim().toLowerCase()}function va(a){return!1===a||null==a?a:V.isArray(a)?a.map(va):String(a)}function za(a,o,e,i,t){return V.isFunction(i)?i.call(this,o,e):(t&&(o=e),V.isString(o)?V.isString(i)?-1!==o.indexOf(i):V.isRegExp(i)?i.test(o):void 0:void 0)}class xa{constructor(a){a&&this.set(a)}set(a,o,e){const i=this;function t(a,o,e){const t=wa(o);if(!t)throw new Error("header name must be a non-empty string");const n=V.findKey(i,t);(!n||void 0===i[n]||!0===e||void 0===e&&!1!==i[n])&&(i[n||o]=va(a))}const n=(a,o)=>V.forEach(a,((a,e)=>t(a,e,o)));if(V.isPlainObject(a)||a instanceof this.constructor)n(a,o);else if(V.isString(a)&&(a=a.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim()))n((a=>{const o={};let e,i,t;return a&&a.split("\n").forEach((function(a){t=a.indexOf(":"),e=a.substring(0,t).trim().toLowerCase(),i=a.substring(t+1).trim(),!e||o[e]&&ba[e]||("set-cookie"===e?o[e]?o[e].push(i):o[e]=[i]:o[e]=o[e]?o[e]+", "+i:i)})),o})(a),o);else if(V.isHeaders(a))for(const[o,i]of a.entries())t(i,o,e);else null!=a&&t(o,a,e);return this}get(a,o){if(a=wa(a)){const e=V.findKey(this,a);if(e){const a=this[e];if(!o)return a;if(!0===o)return function(a){const o=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(a);)o[i[1]]=i[2];return o}(a);if(V.isFunction(o))return o.call(this,a,e);if(V.isRegExp(o))return o.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=wa(a)){const e=V.findKey(this,a);return!(!e||void 0===this[e]||o&&!za(0,this[e],e,o))}return!1}delete(a,o){const e=this;let i=!1;function t(a){if(a=wa(a)){const t=V.findKey(e,a);!t||o&&!za(0,e[t],t,o)||(delete e[t],i=!0)}}return V.isArray(a)?a.forEach(t):t(a),i}clear(a){const o=Object.keys(this);let e=o.length,i=!1;for(;e--;){const t=o[e];a&&!za(0,this[t],t,a,!0)||(delete this[t],i=!0)}return i}normalize(a){const o=this,e={};return V.forEach(this,((i,t)=>{const n=V.findKey(e,t);if(n)return o[n]=va(i),void delete o[t];const s=a?function(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((a,o,e)=>o.toUpperCase()+e))}(t):String(t).trim();s!==t&&delete o[t],o[s]=va(i),e[s]=!0})),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return V.forEach(this,((e,i)=>{null!=e&&!1!==e&&(o[i]=a&&V.isArray(e)?e.join(", "):e)})),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([a,o])=>a+": "+o)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const e=new this(a);return o.forEach((a=>e.set(a))),e}static accessor(a){const o=(this[ya]=this[ya]={accessors:{}}).accessors,e=this.prototype;function i(a){const i=wa(a);o[i]||(!function(a,o){const e=V.toCamelCase(" "+o);["get","set","has"].forEach((i=>{Object.defineProperty(a,i+e,{value:function(a,e,t){return this[i].call(this,o,a,e,t)},configurable:!0})}))}(e,a),o[i]=!0)}return V.isArray(a)?a.forEach(i):i(a),this}}xa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(xa.prototype,(({value:a},o)=>{let e=o[0].toUpperCase()+o.slice(1);return{get:()=>a,set(a){this[e]=a}}})),V.freezeMethods(xa);const Sa=xa;function Ea(a,o){const e=this||fa,i=o||e,t=Sa.from(i.headers);let n=i.data;return V.forEach(a,(function(a){n=a.call(e,n,t.normalize(),o?o.status:void 0)})),t.normalize(),n}function Oa(a){return!(!a||!a.__CANCEL__)}function Ca(a,o,e){K.call(this,null==a?"canceled":a,K.ERR_CANCELED,o,e),this.name="CanceledError"}function Aa(a,o,e){const i=e.config.validateStatus;e.status&&i&&!i(e.status)?o(new K("Request failed with status code "+e.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):a(e)}V.inherits(Ca,K,{__CANCEL__:!0});const Ra=(a,o,e=3)=>{let i=0;const t=function(a,o){a=a||10;const e=new Array(a),i=new Array(a);let t,n=0,s=0;return o=void 0!==o?o:1e3,function(r){const u=Date.now(),m=i[s];t||(t=u),e[n]=r,i[n]=u;let c=s,p=0;for(;c!==n;)p+=e[c++],c%=a;if(n=(n+1)%a,n===s&&(s=(s+1)%a),u-t<o)return;const l=m&&u-m;return l?Math.round(1e3*p/l):void 0}}(50,250);return function(a,o){let e,i,t=0,n=1e3/o;const s=(o,n=Date.now())=>{t=n,e=null,i&&(clearTimeout(i),i=null),a.apply(null,o)};return[(...a)=>{const o=Date.now(),r=o-t;r>=n?s(a,o):(e=a,i||(i=setTimeout((()=>{i=null,s(e)}),n-r)))},()=>e&&s(e)]}((e=>{const n=e.loaded,s=e.lengthComputable?e.total:void 0,r=n-i,u=t(r);i=n;a({loaded:n,total:s,progress:s?n/s:void 0,bytes:r,rate:u||void 0,estimated:u&&s&&n<=s?(s-n)/u:void 0,event:e,lengthComputable:null!=s,[o?"download":"upload"]:!0})}),e)},Ta=(a,o)=>{const e=null!=a;return[i=>o[0]({lengthComputable:e,total:a,loaded:i}),o[1]]},_a=a=>(...o)=>V.asap((()=>a(...o))),Ia=ga.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let e;function i(e){let i=e;return a&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return e=i(window.location.href),function(a){const o=V.isString(a)?i(a):a;return o.protocol===e.protocol&&o.host===e.host}}():function(){return!0},qa=ga.hasStandardBrowserEnv?{write(a,o,e,i,t,n){const s=[a+"="+encodeURIComponent(o)];V.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),V.isString(i)&&s.push("path="+i),V.isString(t)&&s.push("domain="+t),!0===n&&s.push("secure"),document.cookie=s.join("; ")},read(a){const o=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Pa(a,o){return a&&!function(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}(o)?function(a,o){return o?a.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):a}(a,o):o}const Da=a=>a instanceof Sa?{...a}:a;function La(a,o){o=o||{};const e={};function i(a,o,e){return V.isPlainObject(a)&&V.isPlainObject(o)?V.merge.call({caseless:e},a,o):V.isPlainObject(o)?V.merge({},o):V.isArray(o)?o.slice():o}function t(a,o,e){return V.isUndefined(o)?V.isUndefined(a)?void 0:i(void 0,a,e):i(a,o,e)}function n(a,o){if(!V.isUndefined(o))return i(void 0,o)}function s(a,o){return V.isUndefined(o)?V.isUndefined(a)?void 0:i(void 0,a):i(void 0,o)}function r(e,t,n){return n in o?i(e,t):n in a?i(void 0,e):void 0}const u={url:n,method:n,data:n,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(a,o)=>t(Da(a),Da(o),!0)};return V.forEach(Object.keys(Object.assign({},a,o)),(function(i){const n=u[i]||t,s=n(a[i],o[i],i);V.isUndefined(s)&&n!==r||(e[i]=s)})),e}const Na=a=>{const o=La({},a);let e,{data:i,withXSRFToken:t,xsrfHeaderName:n,xsrfCookieName:s,headers:r,auth:u}=o;if(o.headers=r=Sa.from(r),o.url=sa(Pa(o.baseURL,o.url),a.params,a.paramsSerializer),u&&r.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),V.isFormData(i))if(ga.hasStandardBrowserEnv||ga.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(!1!==(e=r.getContentType())){const[a,...o]=e?e.split(";").map((a=>a.trim())).filter(Boolean):[];r.setContentType([a||"multipart/form-data",...o].join("; "))}if(ga.hasStandardBrowserEnv&&(t&&V.isFunction(t)&&(t=t(o)),t||!1!==t&&Ia(o.url))){const a=n&&s&&qa.read(s);a&&r.set(n,a)}return o},Ua="undefined"!=typeof XMLHttpRequest&&function(a){return new Promise((function(o,e){const i=Na(a);let t=i.data;const n=Sa.from(i.headers).normalize();let s,r,u,m,c,{responseType:p,onUploadProgress:l,onDownloadProgress:h}=i;function d(){m&&m(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function k(){if(!g)return;const i=Sa.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Aa((function(a){o(a),d()}),(function(a){e(a),d()}),{data:p&&"text"!==p&&"json"!==p?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:a,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(e(new K("Request aborted",K.ECONNABORTED,a,g)),g=null)},g.onerror=function(){e(new K("Network Error",K.ERR_NETWORK,a,g)),g=null},g.ontimeout=function(){let o=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const t=i.transitional||ua;i.timeoutErrorMessage&&(o=i.timeoutErrorMessage),e(new K(o,t.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,a,g)),g=null},void 0===t&&n.setContentType(null),"setRequestHeader"in g&&V.forEach(n.toJSON(),(function(a,o){g.setRequestHeader(o,a)})),V.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),p&&"json"!==p&&(g.responseType=i.responseType),h&&([u,c]=Ra(h,!0),g.addEventListener("progress",u)),l&&g.upload&&([r,m]=Ra(l),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(s=o=>{g&&(e(!o||o.type?new Ca(null,a,g):o),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const j=function(a){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return o&&o[1]||""}(i.url);j&&-1===ga.protocols.indexOf(j)?e(new K("Unsupported protocol "+j+":",K.ERR_BAD_REQUEST,a)):g.send(t||null)}))},Fa=(a,o)=>{let e,i=new AbortController;const t=function(a){if(!e){e=!0,s();const o=a instanceof Error?a:this.reason;i.abort(o instanceof K?o:new Ca(o instanceof Error?o.message:o))}};let n=o&&setTimeout((()=>{t(new K(`timeout ${o} of ms exceeded`,K.ETIMEDOUT))}),o);const s=()=>{a&&(n&&clearTimeout(n),n=null,a.forEach((a=>{a&&(a.removeEventListener?a.removeEventListener("abort",t):a.unsubscribe(t))})),a=null)};a.forEach((a=>a&&a.addEventListener&&a.addEventListener("abort",t)));const{signal:r}=i;return r.unsubscribe=s,[r,()=>{n&&clearTimeout(n),n=null}]},Ba=function*(a,o){let e=a.byteLength;if(!o||e<o)return void(yield a);let i,t=0;for(;t<e;)i=t+o,yield a.slice(t,i),t=i},Ma=(a,o,e,i,t)=>{const n=async function*(a,o,e){for await(const i of a)yield*Ba(ArrayBuffer.isView(i)?i:await e(String(i)),o)}(a,o,t);let s,r=0,u=a=>{s||(s=!0,i&&i(a))};return new ReadableStream({async pull(a){try{const{done:o,value:i}=await n.next();if(o)return u(),void a.close();let t=i.byteLength;if(e){let a=r+=t;e(a)}a.enqueue(new Uint8Array(i))}catch(a){throw u(a),a}},cancel:a=>(u(a),n.return())},{highWaterMark:2})},$a="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ha=$a&&"function"==typeof ReadableStream,Ja=$a&&("function"==typeof TextEncoder?(Wa=new TextEncoder,a=>Wa.encode(a)):async a=>new Uint8Array(await new Response(a).arrayBuffer()));var Wa;const Va=(a,...o)=>{try{return!!a(...o)}catch(a){return!1}},Ka=Ha&&Va((()=>{let a=!1;const o=new Request(ga.origin,{body:new ReadableStream,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!o})),Ga=Ha&&Va((()=>V.isReadableStream(new Response("").body))),Xa={stream:Ga&&(a=>a.body)};var Za;$a&&(Za=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((a=>{!Xa[a]&&(Xa[a]=V.isFunction(Za[a])?o=>o[a]():(o,e)=>{throw new K(`Response type '${a}' is not supported`,K.ERR_NOT_SUPPORT,e)})})));const Ya=async(a,o)=>{const e=V.toFiniteNumber(a.getContentLength());return null==e?(async a=>null==a?0:V.isBlob(a)?a.size:V.isSpecCompliantForm(a)?(await new Request(a).arrayBuffer()).byteLength:V.isArrayBufferView(a)||V.isArrayBuffer(a)?a.byteLength:(V.isURLSearchParams(a)&&(a+=""),V.isString(a)?(await Ja(a)).byteLength:void 0))(o):e},Qa=$a&&(async a=>{let{url:o,method:e,data:i,signal:t,cancelToken:n,timeout:s,onDownloadProgress:r,onUploadProgress:u,responseType:m,headers:c,withCredentials:p="same-origin",fetchOptions:l}=Na(a);m=m?(m+"").toLowerCase():"text";let h,d,[g,k]=t||n||s?Fa([t,n],s):[];const j=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let f;try{if(u&&Ka&&"get"!==e&&"head"!==e&&0!==(f=await Ya(c,i))){let a,e=new Request(o,{method:"POST",body:i,duplex:"half"});if(V.isFormData(i)&&(a=e.headers.get("content-type"))&&c.setContentType(a),e.body){const[a,o]=Ta(f,Ra(_a(u)));i=Ma(e.body,65536,a,o,Ja)}}V.isString(p)||(p=p?"include":"omit"),d=new Request(o,{...l,signal:g,method:e.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:p});let t=await fetch(d);const n=Ga&&("stream"===m||"response"===m);if(Ga&&(r||n)){const a={};["status","statusText","headers"].forEach((o=>{a[o]=t[o]}));const o=V.toFiniteNumber(t.headers.get("content-length")),[e,i]=r&&Ta(o,Ra(_a(r),!0))||[];t=new Response(Ma(t.body,65536,e,(()=>{i&&i(),n&&j()}),Ja),a)}m=m||"text";let s=await Xa[V.findKey(Xa,m)||"text"](t,a);return!n&&j(),k&&k(),await new Promise(((o,e)=>{Aa(o,e,{data:s,headers:Sa.from(t.headers),status:t.status,statusText:t.statusText,config:a,request:d})}))}catch(o){if(j(),o&&"TypeError"===o.name&&/fetch/i.test(o.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,a,d),{cause:o.cause||o});throw K.from(o,o&&o.code,a,d)}}),ao={http:null,xhr:Ua,fetch:Qa};V.forEach(ao,((a,o)=>{if(a){try{Object.defineProperty(a,"name",{value:o})}catch(a){}Object.defineProperty(a,"adapterName",{value:o})}}));const oo=a=>`- ${a}`,eo=a=>V.isFunction(a)||null===a||!1===a,io=a=>{a=V.isArray(a)?a:[a];const{length:o}=a;let e,i;const t={};for(let n=0;n<o;n++){let o;if(e=a[n],i=e,!eo(e)&&(i=ao[(o=String(e)).toLowerCase()],void 0===i))throw new K(`Unknown adapter '${o}'`);if(i)break;t[o||"#"+n]=i}if(!i){const a=Object.entries(t).map((([a,o])=>`adapter ${a} `+(!1===o?"is not supported by the environment":"is not available in the build")));throw new K("There is no suitable adapter to dispatch the request "+(o?a.length>1?"since :\n"+a.map(oo).join("\n"):" "+oo(a[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function to(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new Ca(null,a)}function no(a){to(a),a.headers=Sa.from(a.headers),a.data=Ea.call(a,a.transformRequest),-1!==["post","put","patch"].indexOf(a.method)&&a.headers.setContentType("application/x-www-form-urlencoded",!1);return io(a.adapter||fa.adapter)(a).then((function(o){return to(a),o.data=Ea.call(a,a.transformResponse,o),o.headers=Sa.from(o.headers),o}),(function(o){return Oa(o)||(to(a),o&&o.response&&(o.response.data=Ea.call(a,a.transformResponse,o.response),o.response.headers=Sa.from(o.response.headers))),Promise.reject(o)}))}const so="1.7.4",ro={};["object","boolean","number","function","string","symbol"].forEach(((a,o)=>{ro[a]=function(e){return typeof e===a||"a"+(o<1?"n ":" ")+a}}));const uo={};ro.transitional=function(a,o,e){function i(a,o){return"[Axios v1.7.4] Transitional option '"+a+"'"+o+(e?". "+e:"")}return(e,t,n)=>{if(!1===a)throw new K(i(t," has been removed"+(o?" in "+o:"")),K.ERR_DEPRECATED);return o&&!uo[t]&&(uo[t]=!0,console.warn(i(t," has been deprecated since v"+o+" and will be removed in the near future"))),!a||a(e,t,n)}};const mo={assertOptions:function(a,o,e){if("object"!=typeof a)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const i=Object.keys(a);let t=i.length;for(;t-- >0;){const n=i[t],s=o[n];if(s){const o=a[n],e=void 0===o||s(o,n,a);if(!0!==e)throw new K("option "+n+" must be "+e,K.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new K("Unknown option "+n,K.ERR_BAD_OPTION)}},validators:ro},co=mo.validators;class po{constructor(a){this.defaults=a,this.interceptors={request:new ra,response:new ra}}async request(a,o){try{return await this._request(a,o)}catch(a){if(a instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const e=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?e&&!String(a.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(a.stack+="\n"+e):a.stack=e}catch(a){}}throw a}}_request(a,o){"string"==typeof a?(o=o||{}).url=a:o=a||{},o=La(this.defaults,o);const{transitional:e,paramsSerializer:i,headers:t}=o;void 0!==e&&mo.assertOptions(e,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),null!=i&&(V.isFunction(i)?o.paramsSerializer={serialize:i}:mo.assertOptions(i,{encode:co.function,serialize:co.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let n=t&&V.merge(t.common,t[o.method]);t&&V.forEach(["delete","get","head","post","put","patch","common"],(a=>{delete t[a]})),o.headers=Sa.concat(n,t);const s=[];let r=!0;this.interceptors.request.forEach((function(a){"function"==typeof a.runWhen&&!1===a.runWhen(o)||(r=r&&a.synchronous,s.unshift(a.fulfilled,a.rejected))}));const u=[];let m;this.interceptors.response.forEach((function(a){u.push(a.fulfilled,a.rejected)}));let c,p=0;if(!r){const a=[no.bind(this),void 0];for(a.unshift.apply(a,s),a.push.apply(a,u),c=a.length,m=Promise.resolve(o);p<c;)m=m.then(a[p++],a[p++]);return m}c=s.length;let l=o;for(p=0;p<c;){const a=s[p++],o=s[p++];try{l=a(l)}catch(a){o.call(this,a);break}}try{m=no.call(this,l)}catch(a){return Promise.reject(a)}for(p=0,c=u.length;p<c;)m=m.then(u[p++],u[p++]);return m}getUri(a){return sa(Pa((a=La(this.defaults,a)).baseURL,a.url),a.params,a.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(a){po.prototype[a]=function(o,e){return this.request(La(e||{},{method:a,url:o,data:(e||{}).data}))}})),V.forEach(["post","put","patch"],(function(a){function o(o){return function(e,i,t){return this.request(La(t||{},{method:a,headers:o?{"Content-Type":"multipart/form-data"}:{},url:e,data:i}))}}po.prototype[a]=o(),po.prototype[a+"Form"]=o(!0)}));const lo=po;class ho{constructor(a){if("function"!=typeof a)throw new TypeError("executor must be a function.");let o;this.promise=new Promise((function(a){o=a}));const e=this;this.promise.then((a=>{if(!e._listeners)return;let o=e._listeners.length;for(;o-- >0;)e._listeners[o](a);e._listeners=null})),this.promise.then=a=>{let o;const i=new Promise((a=>{e.subscribe(a),o=a})).then(a);return i.cancel=function(){e.unsubscribe(o)},i},a((function(a,i,t){e.reason||(e.reason=new Ca(a,i,t),o(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){this.reason?a(this.reason):this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);-1!==o&&this._listeners.splice(o,1)}static source(){let a;return{token:new ho((function(o){a=o})),cancel:a}}}const go=ho;const ko={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(ko).forEach((([a,o])=>{ko[o]=a}));const jo=ko;const fo=function a(o){const e=new lo(o),t=i(lo.prototype.request,e);return V.extend(t,lo.prototype,e,{allOwnKeys:!0}),V.extend(t,e,null,{allOwnKeys:!0}),t.create=function(e){return a(La(o,e))},t}(fa);fo.Axios=lo,fo.CanceledError=Ca,fo.CancelToken=go,fo.isCancel=Oa,fo.VERSION=so,fo.toFormData=oa,fo.AxiosError=K,fo.Cancel=fo.CanceledError,fo.all=function(a){return Promise.all(a)},fo.spread=function(a){return function(o){return a.apply(null,o)}},fo.isAxiosError=function(a){return V.isObject(a)&&!0===a.isAxiosError},fo.mergeConfig=La,fo.AxiosHeaders=Sa,fo.formToJSON=a=>ka(V.isHTMLForm(a)?new FormData(a):a),fo.getAdapter=io,fo.HttpStatusCode=jo,fo.default=fo;const bo=fo;var yo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function wo(a,o,e){return e={path:o,exports:{},require:function(a,o){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==o&&e.path)}},a(e,e.exports),e.exports}function vo(a){if(a.__esModule)return a;var o=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach((function(e){var i=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:function(){return a[e]}})})),o}var zo=wo((function(a,o){Object.defineProperty(o,"__esModule",{value:!0}),o.wrapper=function(a){return a}}));const xo=2147483647,So=36,Eo=/^xn--/,Oo=/[^\0-\x7F]/,Co=/[\x2E\u3002\uFF0E\uFF61]/g,Ao={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ro=Math.floor,To=String.fromCharCode;function _o(a){throw new RangeError(Ao[a])}function Io(a,o){const e=a.split("@");let i="";e.length>1&&(i=e[0]+"@",a=e[1]);const t=function(a,o){const e=[];let i=a.length;for(;i--;)e[i]=o(a[i]);return e}((a=a.replace(Co,".")).split("."),o).join(".");return i+t}function qo(a){const o=[];let e=0;const i=a.length;for(;e<i;){const t=a.charCodeAt(e++);if(t>=55296&&t<=56319&&e<i){const i=a.charCodeAt(e++);56320==(64512&i)?o.push(((1023&t)<<10)+(1023&i)+65536):(o.push(t),e--)}else o.push(t)}return o}const Po=a=>String.fromCodePoint(...a),Do=function(a,o){return a+22+75*(a<26)-((0!=o)<<5)},Lo=function(a,o,e){let i=0;for(a=e?Ro(a/700):a>>1,a+=Ro(a/o);a>455;i+=So)a=Ro(a/35);return Ro(i+36*a/(a+38))},No=function(a){const o=[],e=a.length;let i=0,t=128,n=72,s=a.lastIndexOf("-");s<0&&(s=0);for(let e=0;e<s;++e)a.charCodeAt(e)>=128&&_o("not-basic"),o.push(a.charCodeAt(e));for(let u=s>0?s+1:0;u<e;){const s=i;for(let o=1,t=So;;t+=So){u>=e&&_o("invalid-input");const s=(r=a.charCodeAt(u++))>=48&&r<58?r-48+26:r>=65&&r<91?r-65:r>=97&&r<123?r-97:So;s>=So&&_o("invalid-input"),s>Ro((xo-i)/o)&&_o("overflow"),i+=s*o;const m=t<=n?1:t>=n+26?26:t-n;if(s<m)break;const c=So-m;o>Ro(xo/c)&&_o("overflow"),o*=c}const m=o.length+1;n=Lo(i-s,m,0==s),Ro(i/m)>xo-t&&_o("overflow"),t+=Ro(i/m),i%=m,o.splice(i++,0,t)}var r;return String.fromCodePoint(...o)},Uo=function(a){const o=[],e=(a=qo(a)).length;let i=128,t=0,n=72;for(const e of a)e<128&&o.push(To(e));const s=o.length;let r=s;for(s&&o.push("-");r<e;){let e=xo;for(const o of a)o>=i&&o<e&&(e=o);const u=r+1;e-i>Ro((xo-t)/u)&&_o("overflow"),t+=(e-i)*u,i=e;for(const e of a)if(e<i&&++t>xo&&_o("overflow"),e===i){let a=t;for(let e=So;;e+=So){const i=e<=n?1:e>=n+26?26:e-n;if(a<i)break;const t=a-i,s=So-i;o.push(To(Do(i+t%s,0))),a=Ro(t/s)}o.push(To(Do(a,0))),n=Lo(t,u,r===s),t=0,++r}++t,++i}return o.join("")},Fo=function(a){return Io(a,(function(a){return Eo.test(a)?No(a.slice(4).toLowerCase()):a}))},Bo=function(a){return Io(a,(function(a){return Oo.test(a)?"xn--"+Uo(a):a}))},Mo={version:"2.3.1",ucs2:{decode:qo,encode:Po},decode:No,encode:Uo,toASCII:Bo,toUnicode:Fo},$o=Object.freeze({__proto__:null,ucs2decode:qo,ucs2encode:Po,decode:No,encode:Uo,toASCII:Bo,toUnicode:Fo,default:Mo});var Ho=function(a,o){if(o=o.split(":")[0],!(a=+a))return!1;switch(o){case"http":case"ws":return 80!==a;case"https":case"wss":return 443!==a;case"ftp":return 21!==a;case"gopher":return 70!==a;case"file":return!1}return 0!==a},Jo=Object.prototype.hasOwnProperty;function Wo(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch(a){return null}}function Vo(a){try{return encodeURIComponent(a)}catch(a){return null}}var Ko={stringify:function(a,o){o=o||"";var e,i,t=[];for(i in"string"!=typeof o&&(o="?"),a)if(Jo.call(a,i)){if((e=a[i])||null!=e&&!isNaN(e)||(e=""),i=Vo(i),e=Vo(e),null===i||null===e)continue;t.push(i+"="+e)}return t.length?o+t.join("&"):""},parse:function(a){for(var o,e=/([^=?#&]+)=?([^&]*)/g,i={};o=e.exec(a);){var t=Wo(o[1]),n=Wo(o[2]);null===t||null===n||t in i||(i[t]=n)}return i}},Go=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Xo=/[\n\r\t]/g,Zo=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Yo=/:\d+$/,Qo=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,ae=/^[a-zA-Z]:/;function oe(a){return(a||"").toString().replace(Go,"")}var ee=[["#","hash"],["?","query"],function(a,o){return ne(o.protocol)?a.replace(/\\/g,"/"):a},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ie={hash:1,query:1};function te(a){var o,e=("undefined"!=typeof window?window:void 0!==yo?yo:"undefined"!=typeof self?self:{}).location||{},i={},t=typeof(a=a||e);if("blob:"===a.protocol)i=new re(unescape(a.pathname),{});else if("string"===t)for(o in i=new re(a,{}),ie)delete i[o];else if("object"===t){for(o in a)o in ie||(i[o]=a[o]);void 0===i.slashes&&(i.slashes=Zo.test(a.href))}return i}function ne(a){return"file:"===a||"ftp:"===a||"http:"===a||"https:"===a||"ws:"===a||"wss:"===a}function se(a,o){a=(a=oe(a)).replace(Xo,""),o=o||{};var e,i=Qo.exec(a),t=i[1]?i[1].toLowerCase():"",n=!!i[2],s=!!i[3],r=0;return n?s?(e=i[2]+i[3]+i[4],r=i[2].length+i[3].length):(e=i[2]+i[4],r=i[2].length):s?(e=i[3]+i[4],r=i[3].length):e=i[4],"file:"===t?r>=2&&(e=e.slice(2)):ne(t)?e=i[4]:t?n&&(e=e.slice(2)):r>=2&&ne(o.protocol)&&(e=i[4]),{protocol:t,slashes:n||ne(t),slashesCount:r,rest:e}}function re(a,o,e){if(a=(a=oe(a)).replace(Xo,""),!(this instanceof re))return new re(a,o,e);var i,t,n,s,r,u,m=ee.slice(),c=typeof o,p=this,l=0;for("object"!==c&&"string"!==c&&(e=o,o=null),e&&"function"!=typeof e&&(e=Ko.parse),i=!(t=se(a||"",o=te(o))).protocol&&!t.slashes,p.slashes=t.slashes||i&&o.slashes,p.protocol=t.protocol||o.protocol||"",a=t.rest,("file:"===t.protocol&&(2!==t.slashesCount||ae.test(a))||!t.slashes&&(t.protocol||t.slashesCount<2||!ne(p.protocol)))&&(m[3]=[/(.*)/,"pathname"]);l<m.length;l++)"function"!=typeof(s=m[l])?(n=s[0],u=s[1],n!=n?p[u]=a:"string"==typeof n?~(r="@"===n?a.lastIndexOf(n):a.indexOf(n))&&("number"==typeof s[2]?(p[u]=a.slice(0,r),a=a.slice(r+s[2])):(p[u]=a.slice(r),a=a.slice(0,r))):(r=n.exec(a))&&(p[u]=r[1],a=a.slice(0,r.index)),p[u]=p[u]||i&&s[3]&&o[u]||"",s[4]&&(p[u]=p[u].toLowerCase())):a=s(a,p);e&&(p.query=e(p.query)),i&&o.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==o.pathname)&&(p.pathname=function(a,o){if(""===a)return o;for(var e=(o||"/").split("/").slice(0,-1).concat(a.split("/")),i=e.length,t=e[i-1],n=!1,s=0;i--;)"."===e[i]?e.splice(i,1):".."===e[i]?(e.splice(i,1),s++):s&&(0===i&&(n=!0),e.splice(i,1),s--);return n&&e.unshift(""),"."!==t&&".."!==t||e.push(""),e.join("/")}(p.pathname,o.pathname)),"/"!==p.pathname.charAt(0)&&ne(p.protocol)&&(p.pathname="/"+p.pathname),Ho(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(~(r=p.auth.indexOf(":"))?(p.username=p.auth.slice(0,r),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=p.auth.slice(r+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(p.auth)),p.auth=p.password?p.username+":"+p.password:p.username),p.origin="file:"!==p.protocol&&ne(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString()}re.prototype={set:function(a,o,e){var i=this;switch(a){case"query":"string"==typeof o&&o.length&&(o=(e||Ko.parse)(o)),i[a]=o;break;case"port":i[a]=o,Ho(o,i.protocol)?o&&(i.host=i.hostname+":"+o):(i.host=i.hostname,i[a]="");break;case"hostname":i[a]=o,i.port&&(o+=":"+i.port),i.host=o;break;case"host":i[a]=o,Yo.test(o)?(o=o.split(":"),i.port=o.pop(),i.hostname=o.join(":")):(i.hostname=o,i.port="");break;case"protocol":i.protocol=o.toLowerCase(),i.slashes=!e;break;case"pathname":case"hash":if(o){var t="pathname"===a?"/":"#";i[a]=o.charAt(0)!==t?t+o:o}else i[a]=o;break;case"username":case"password":i[a]=encodeURIComponent(o);break;case"auth":var n=o.indexOf(":");~n?(i.username=o.slice(0,n),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=o.slice(n+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(o))}for(var s=0;s<ee.length;s++){var r=ee[s];r[4]&&(i[r[1]]=i[r[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&ne(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(a){a&&"function"==typeof a||(a=Ko.stringify);var o,e=this,i=e.host,t=e.protocol;t&&":"!==t.charAt(t.length-1)&&(t+=":");var n=t+(e.protocol&&e.slashes||ne(e.protocol)?"//":"");return e.username?(n+=e.username,e.password&&(n+=":"+e.password),n+="@"):e.password?(n+=":"+e.password,n+="@"):"file:"!==e.protocol&&ne(e.protocol)&&!i&&"/"!==e.pathname&&(n+="@"),(":"===i[i.length-1]||Yo.test(e.hostname)&&!e.port)&&(i+=":"),n+=i+e.pathname,(o="object"==typeof e.query?a(e.query):e.query)&&(n+="?"!==o.charAt(0)?"?"+o:o),e.hash&&(n+=e.hash),n}},re.extractProtocol=se,re.location=te,re.trimLeft=oe,re.qs=Ko;var ue=re;const me=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","bet.ar","com.ar","coop.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","mutual.ar","net.ar","org.ar","senasa.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","sth.ac.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","app.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bib.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","coz.br","cri.br","cuiaba.br","curitiba.br","def.br","des.br","det.br","dev.br","ecn.br","eco.br","edu.br","emp.br","enf.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","geo.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","log.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","rep.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","seg.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","tec.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn