var Tn=Object.defineProperty;var Cn=(e,n,i)=>n in e?Tn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var dt=(e,n,i)=>(Cn(e,typeof n!="symbol"?n+"":n,i),i);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function i(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerpolicy&&(d.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?d.credentials="include":s.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(s){if(s.ep)return;s.ep=!0;const d=i(s);fetch(s.href,d)}})();const scriptRel="modulepreload",assetsURL=function(e,n){return new URL(e,n).href},seen={},__vitePreload=function(n,i,o){if(!i||i.length===0)return n();const s=document.getElementsByTagName("link");return Promise.all(i.map(d=>{if(d=assetsURL(d,o),d in seen)return;seen[d]=!0;const p=d.endsWith(".css"),_=p?'[rel="stylesheet"]':"";if(!!o)for(let x=s.length-1;x>=0;x--){const w=s[x];if(w.href===d&&(!p||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${_}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":scriptRel,p||(y.as="script",y.crossOrigin=""),y.href=d,document.head.appendChild(y),p)return new Promise((x,w)=>{y.addEventListener("load",x),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>n())};function bind$1(e,n){return function(){return e.apply(n,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>n=>{const i=toString$1.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),n=>kindOf(n)===e),typeOfTest=e=>n=>typeof n===e,{isArray:isArray$1}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&isArrayBuffer(e.buffer),n}const isString$3=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$3=e=>e!==null&&typeof e=="object",isBoolean$2=e=>e===!0||e===!1,isPlainObject$1=e=>{if(kindOf(e)!=="object")return!1;const n=getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$3(e)&&isFunction$1(e.pipe),isFormData=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$1(e.append)&&((n=kindOf(e))==="formdata"||n==="object"&&isFunction$1(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),isArray$1(e))for(o=0,s=e.length;o0;)if(s=i[o],n===s.toLowerCase())return s;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},n={},i=(o,s)=>{const d=e&&findKey(n,s)||s;isPlainObject$1(n[d])&&isPlainObject$1(o)?n[d]=merge$1(n[d],o):isPlainObject$1(o)?n[d]=merge$1({},o):isArray$1(o)?n[d]=o.slice():n[d]=o};for(let o=0,s=arguments.length;o(forEach(n,(s,d)=>{i&&isFunction$1(s)?e[d]=bind$1(s,i):e[d]=s},{allOwnKeys:o}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,n,i,o)=>{e.prototype=Object.create(n.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject=(e,n,i,o)=>{let s,d,p;const _={};if(n=n||{},e==null)return n;do{for(s=Object.getOwnPropertyNames(e),d=s.length;d-- >0;)p=s[d],(!o||o(p,e,n))&&!_[p]&&(n[p]=e[p],_[p]=!0);e=i!==!1&&getPrototypeOf(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},endsWith=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const o=e.indexOf(n,i);return o!==-1&&o===i},toArray=e=>{if(!e)return null;if(isArray$1(e))return e;let n=e.length;if(!isNumber(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},isTypedArray=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,n)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const d=s.value;n.call(e,d[0],d[1])}},matchAll=(e,n)=>{let i;const o=[];for(;(i=e.exec(n))!==null;)o.push(i);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,o,s){return o.toUpperCase()+s}),hasOwnProperty$1=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),o={};forEach(i,(s,d)=>{n(s,d,e)!==!1&&(o[d]=s)}),Object.defineProperties(e,o)},freezeMethods=e=>{reduceDescriptors(e,(n,i)=>{if(isFunction$1(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const o=e[i];if(!!isFunction$1(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet=(e,n)=>{const i={},o=s=>{s.forEach(d=>{i[d]=!0})};return isArray$1(e)?o(e):o(String(e).split(n)),i},noop=()=>{},toFiniteNumber=(e,n)=>(e=+e,Number.isFinite(e)?e:n),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,n=ALPHABET.ALPHA_DIGIT)=>{let i="";const{length:o}=n;for(;e--;)i+=n[Math.random()*o|0];return i};function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const n=new Array(10),i=(o,s)=>{if(isObject$3(o)){if(n.indexOf(o)>=0)return;if(!("toJSON"in o)){n[s]=o;const d=isArray$1(o)?[]:{};return forEach(o,(p,_)=>{const b=i(p,s+1);!isUndefined(b)&&(d[_]=b)}),n[s]=void 0,d}}return o};return i(e,0)},utils={isArray:isArray$1,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$3,isNumber,isBoolean:isBoolean$2,isObject:isObject$3,isPlainObject:isPlainObject$1,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend:extend$1,trim:trim$1,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject};function AxiosError(e,n,i,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),o&&(this.request=o),s&&(this.response=s)}utils.inherits(AxiosError,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:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(e,n,i,o,s,d)=>{const p=Object.create(prototype$1);return utils.toFlatObject(e,p,function(b){return b!==Error.prototype},_=>_!=="isAxiosError"),AxiosError.call(p,e.message,n,i,o,s),p.cause=e,p.name=e.name,d&&Object.assign(p,d),p};const httpAdapter=null;function isVisitable(e){return utils.isPlainObject(e)||utils.isArray(e)}function removeBrackets(e){return utils.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,n,i){return e?e.concat(n).map(function(s,d){return s=removeBrackets(s),!i&&d?"["+s+"]":s}).join(i?".":""):n}function isFlatArray(e){return utils.isArray(e)&&!e.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function(n){return/^is[A-Z]/.test(n)});function toFormData(e,n,i){if(!utils.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=utils.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,R){return!utils.isUndefined(R[P])});const o=i.metaTokens,s=i.visitor||x,d=i.dots,p=i.indexes,b=(i.Blob||typeof Blob<"u"&&Blob)&&utils.isSpecCompliantForm(n);if(!utils.isFunction(s))throw new TypeError("visitor must be a function");function y(C){if(C===null)return"";if(utils.isDate(C))return C.toISOString();if(!b&&utils.isBlob(C))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(C)||utils.isTypedArray(C)?b&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function x(C,P,R){let j=C;if(C&&!R&&typeof C=="object"){if(utils.endsWith(P,"{}"))P=o?P:P.slice(0,-2),C=JSON.stringify(C);else if(utils.isArray(C)&&isFlatArray(C)||(utils.isFileList(C)||utils.endsWith(P,"[]"))&&(j=utils.toArray(C)))return P=removeBrackets(P),j.forEach(function(U,W){!(utils.isUndefined(U)||U===null)&&n.append(p===!0?renderKey([P],W,d):p===null?P:P+"[]",y(U))}),!1}return isVisitable(C)?!0:(n.append(renderKey(R,P,d),y(C)),!1)}const w=[],v=Object.assign(predicates,{defaultVisitor:x,convertValue:y,isVisitable});function T(C,P){if(!utils.isUndefined(C)){if(w.indexOf(C)!==-1)throw Error("Circular reference detected in "+P.join("."));w.push(C),utils.forEach(C,function(j,Y){(!(utils.isUndefined(j)||j===null)&&s.call(n,j,utils.isString(Y)?Y.trim():Y,P,v))===!0&&T(j,P?P.concat(Y):[Y])}),w.pop()}}if(!utils.isObject(e))throw new TypeError("data must be an object");return T(e),n}function encode$1(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return n[o]})}function AxiosURLSearchParams(e,n){this._pairs=[],e&&toFormData(e,this,n)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(n,i){this._pairs.push([n,i])};prototype.toString=function(n){const i=n?function(o){return n.call(this,o,encode$1)}:encode$1;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,n,i){if(!n)return e;const o=i&&i.encode||encode,s=i&&i.serialize;let d;if(s?d=s(n,i):d=utils.isURLSearchParams(n)?n.toString():new AxiosURLSearchParams(n,i).toString(o),d){const p=e.indexOf("#");p!==-1&&(e=e.slice(0,p)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class InterceptorManager{constructor(){this.handlers=[]}use(n,i,o){return this.handlers.push({fulfilled:n,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){utils.forEach(this.handlers,function(o){o!==null&&n(o)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(e,n){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(i,o,s,d){return platform.isNode&&utils.isBuffer(i)?(this.append(o,i.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},n))}function parsePropPath(e){return utils.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function arrayToObject(e){const n={},i=Object.keys(e);let o;const s=i.length;let d;for(o=0;o=i.length;return p=!p&&utils.isArray(s)?s.length:p,b?(utils.hasOwnProp(s,p)?s[p]=[s[p],o]:s[p]=o,!_):((!s[p]||!utils.isObject(s[p]))&&(s[p]=[]),n(i,o,s[p],d)&&utils.isArray(s[p])&&(s[p]=arrayToObject(s[p])),!_)}if(utils.isFormData(e)&&utils.isFunction(e.entries)){const i={};return utils.forEachEntry(e,(o,s)=>{n(parsePropPath(o),s,i,0)}),i}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely(e,n,i){if(utils.isString(e))try{return(n||JSON.parse)(e),utils.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(i||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(n,i){const o=i.getContentType()||"",s=o.indexOf("application/json")>-1,d=utils.isObject(n);if(d&&utils.isHTMLForm(n)&&(n=new FormData(n)),utils.isFormData(n))return s&&s?JSON.stringify(formDataToJSON(n)):n;if(utils.isArrayBuffer(n)||utils.isBuffer(n)||utils.isStream(n)||utils.isFile(n)||utils.isBlob(n))return n;if(utils.isArrayBufferView(n))return n.buffer;if(utils.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let _;if(d){if(o.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(n,this.formSerializer).toString();if((_=utils.isFileList(n))||o.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return toFormData(_?{"files[]":n}:n,b&&new b,this.formSerializer)}}return d||s?(i.setContentType("application/json",!1),stringifySafely(n)):n}],transformResponse:[function(n){const i=this.transitional||defaults.transitional,o=i&&i.forcedJSONParsing,s=this.responseType==="json";if(n&&utils.isString(n)&&(o&&!this.responseType||s)){const p=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(n)}catch(_){if(p)throw _.name==="SyntaxError"?AxiosError.from(_,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):_}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function(n){defaults.headers[n]={}});utils.forEach(["post","put","patch"],function(n){defaults.headers[n]=utils.merge(DEFAULT_CONTENT_TYPE)});const defaults$1=defaults,ignoreDuplicateOf=utils.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"]),parseHeaders$1=e=>{const n={};let i,o,s;return e&&e.split(` `).forEach(function(p){s=p.indexOf(":"),i=p.substring(0,s).trim().toLowerCase(),o=p.substring(s+1).trim(),!(!i||n[i]&&ignoreDuplicateOf[i])&&(i==="set-cookie"?n[i]?n[i].push(o):n[i]=[o]:n[i]=n[i]?n[i]+", "+o:o)}),n},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=i.exec(e);)n[o[1]]=o[2];return n}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,n,i,o,s){if(utils.isFunction(o))return o.call(this,n,i);if(s&&(n=i),!!utils.isString(n)){if(utils.isString(o))return n.indexOf(o)!==-1;if(utils.isRegExp(o))return o.test(n)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,o)=>i.toUpperCase()+o)}function buildAccessors(e,n){const i=utils.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{value:function(s,d,p){return this[o].call(this,n,s,d,p)},configurable:!0})})}class AxiosHeaders{constructor(n){n&&this.set(n)}set(n,i,o){const s=this;function d(_,b,y){const x=normalizeHeader(b);if(!x)throw new Error("header name must be a non-empty string");const w=utils.findKey(s,x);(!w||s[w]===void 0||y===!0||y===void 0&&s[w]!==!1)&&(s[w||b]=normalizeValue(_))}const p=(_,b)=>utils.forEach(_,(y,x)=>d(y,x,b));return utils.isPlainObject(n)||n instanceof this.constructor?p(n,i):utils.isString(n)&&(n=n.trim())&&!isValidHeaderName(n)?p(parseHeaders$1(n),i):n!=null&&d(i,n,o),this}get(n,i){if(n=normalizeHeader(n),n){const o=utils.findKey(this,n);if(o){const s=this[o];if(!i)return s;if(i===!0)return parseTokens(s);if(utils.isFunction(i))return i.call(this,s,o);if(utils.isRegExp(i))return i.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=normalizeHeader(n),n){const o=utils.findKey(this,n);return!!(o&&this[o]!==void 0&&(!i||matchHeaderValue(this,this[o],o,i)))}return!1}delete(n,i){const o=this;let s=!1;function d(p){if(p=normalizeHeader(p),p){const _=utils.findKey(o,p);_&&(!i||matchHeaderValue(o,o[_],_,i))&&(delete o[_],s=!0)}}return utils.isArray(n)?n.forEach(d):d(n),s}clear(n){const i=Object.keys(this);let o=i.length,s=!1;for(;o--;){const d=i[o];(!n||matchHeaderValue(this,this[d],d,n,!0))&&(delete this[d],s=!0)}return s}normalize(n){const i=this,o={};return utils.forEach(this,(s,d)=>{const p=utils.findKey(o,d);if(p){i[p]=normalizeValue(s),delete i[d];return}const _=n?formatHeader(d):String(d).trim();_!==d&&delete i[d],i[_]=normalizeValue(s),o[_]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return utils.forEach(this,(o,s)=>{o!=null&&o!==!1&&(i[s]=n&&utils.isArray(o)?o.join(", "):o)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const o=new this(n);return i.forEach(s=>o.set(s)),o}static accessor(n){const o=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function d(p){const _=normalizeHeader(p);o[_]||(buildAccessors(s,p),o[_]=!0)}return utils.isArray(n)?n.forEach(d):d(n),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils.freezeMethods(AxiosHeaders.prototype);utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,n){const i=this||defaults$1,o=n||i,s=AxiosHeaders$1.from(o.headers);let d=o.data;return utils.forEach(e,function(_){d=_.call(i,d,s.normalize(),n?n.status:void 0)}),s.normalize(),d}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,n,i){AxiosError.call(this,e==null?"canceled":e,AxiosError.ERR_CANCELED,n,i),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,n,i){const o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):n(new AxiosError("Request failed with status code "+i.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const cookies=platform.isStandardBrowserEnv?function(){return{write:function(i,o,s,d,p,_){const b=[];b.push(i+"="+encodeURIComponent(o)),utils.isNumber(s)&&b.push("expires="+new Date(s).toGMTString()),utils.isString(d)&&b.push("path="+d),utils.isString(p)&&b.push("domain="+p),_===!0&&b.push("secure"),document.cookie=b.join("; ")},read:function(i){const o=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}function buildFullPath$1(e,n){return e&&!isAbsoluteURL(n)?combineURLs(e,n):n}const isURLSameOrigin=platform.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let o;function s(d){let p=d;return n&&(i.setAttribute("href",p),p=i.href),i.setAttribute("href",p),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return o=s(window.location.href),function(p){const _=utils.isString(p)?s(p):p;return _.protocol===o.protocol&&_.host===o.host}}():function(){return function(){return!0}}();function parseProtocol(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function speedometer(e,n){e=e||10;const i=new Array(e),o=new Array(e);let s=0,d=0,p;return n=n!==void 0?n:1e3,function(b){const y=Date.now(),x=o[d];p||(p=y),i[s]=b,o[s]=y;let w=d,v=0;for(;w!==s;)v+=i[w++],w=w%e;if(s=(s+1)%e,s===d&&(d=(d+1)%e),y-p{const d=s.loaded,p=s.lengthComputable?s.total:void 0,_=d-i,b=o(_),y=d<=p;i=d;const x={loaded:d,total:p,progress:p?d/p:void 0,bytes:_,rate:b||void 0,estimated:b&&p&&y?(p-d)/b:void 0,event:s};x[n?"download":"upload"]=!0,e(x)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(i,o){let s=e.data;const d=AxiosHeaders$1.from(e.headers).normalize(),p=e.responseType;let _;function b(){e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_)}utils.isFormData(s)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv)&&d.setContentType(!1);let y=new XMLHttpRequest;if(e.auth){const T=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.set("Authorization","Basic "+btoa(T+":"+C))}const x=buildFullPath$1(e.baseURL,e.url);y.open(e.method.toUpperCase(),buildURL(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout;function w(){if(!y)return;const T=AxiosHeaders$1.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!p||p==="text"||p==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:T,config:e,request:y};settle(function(j){i(j),b()},function(j){o(j),b()},P),y=null}if("onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){!y||(o(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,y)),y=null)},y.onerror=function(){o(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const P=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),o(new AxiosError(C,P.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,y)),y=null},platform.isStandardBrowserEnv){const T=(e.withCredentials||isURLSameOrigin(x))&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);T&&d.set(e.xsrfHeaderName,T)}s===void 0&&d.setContentType(null),"setRequestHeader"in y&&utils.forEach(d.toJSON(),function(C,P){y.setRequestHeader(P,C)}),utils.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),p&&p!=="json"&&(y.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&y.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(_=T=>{!y||(o(!T||T.type?new CanceledError(null,e,y):T),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_)));const v=parseProtocol(x);if(v&&platform.protocols.indexOf(v)===-1){o(new AxiosError("Unsupported protocol "+v+":",AxiosError.ERR_BAD_REQUEST,e));return}y.send(s||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const adapters={getAdapter:e=>{e=utils.isArray(e)?e:[e];const{length:n}=e;let i,o;for(let s=0;se instanceof AxiosHeaders$1?e.toJSON():e;function mergeConfig(e,n){n=n||{};const i={};function o(y,x,w){return utils.isPlainObject(y)&&utils.isPlainObject(x)?utils.merge.call({caseless:w},y,x):utils.isPlainObject(x)?utils.merge({},x):utils.isArray(x)?x.slice():x}function s(y,x,w){if(utils.isUndefined(x)){if(!utils.isUndefined(y))return o(void 0,y,w)}else return o(y,x,w)}function d(y,x){if(!utils.isUndefined(x))return o(void 0,x)}function p(y,x){if(utils.isUndefined(x)){if(!utils.isUndefined(y))return o(void 0,y)}else return o(void 0,x)}function _(y,x,w){if(w in n)return o(y,x);if(w in e)return o(void 0,y)}const b={url:d,method:d,data:d,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:_,headers:(y,x)=>s(headersToObject(y),headersToObject(x),!0)};return utils.forEach(Object.keys(e).concat(Object.keys(n)),function(x){const w=b[x]||s,v=w(e[x],n[x],x);utils.isUndefined(v)&&w!==_||(i[x]=v)}),i}const VERSION$1="1.3.6",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{validators$1[e]=function(o){return typeof o===e||"a"+(n<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function(n,i,o){function s(d,p){return"[Axios v"+VERSION$1+"] Transitional option '"+d+"'"+p+(o?". "+o:"")}return(d,p,_)=>{if(n===!1)throw new AxiosError(s(p," has been removed"+(i?" in "+i:"")),AxiosError.ERR_DEPRECATED);return i&&!deprecatedWarnings[p]&&(deprecatedWarnings[p]=!0,console.warn(s(p," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(d,p,_):!0}};function assertOptions(e,n,i){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const d=o[s],p=n[d];if(p){const _=e[d],b=_===void 0||p(_,d,e);if(b!==!0)throw new AxiosError("option "+d+" must be "+b,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(n){this.defaults=n,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=mergeConfig(this.defaults,i);const{transitional:o,paramsSerializer:s,headers:d}=i;o!==void 0&&validator.assertOptions(o,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!=null&&(utils.isFunction(s)?i.paramsSerializer={serialize:s}:validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let p;p=d&&utils.merge(d.common,d[i.method]),p&&utils.forEach(["delete","get","head","post","put","patch","common"],C=>{delete d[C]}),i.headers=AxiosHeaders$1.concat(p,d);const _=[];let b=!0;this.interceptors.request.forEach(function(P){typeof P.runWhen=="function"&&P.runWhen(i)===!1||(b=b&&P.synchronous,_.unshift(P.fulfilled,P.rejected))});const y=[];this.interceptors.response.forEach(function(P){y.push(P.fulfilled,P.rejected)});let x,w=0,v;if(!b){const C=[dispatchRequest.bind(this),void 0];for(C.unshift.apply(C,_),C.push.apply(C,y),v=C.length,x=Promise.resolve(i);w{if(!o._listeners)return;let d=o._listeners.length;for(;d-- >0;)o._listeners[d](s);o._listeners=null}),this.promise.then=s=>{let d;const p=new Promise(_=>{o.subscribe(_),d=_}).then(s);return p.cancel=function(){o.unsubscribe(d)},p},n(function(d,p,_){o.reason||(o.reason=new CanceledError(d,p,_),i(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}static source(){let n;return{token:new CancelToken(function(s){n=s}),cancel:n}}}const CancelToken$1=CancelToken;function spread(e){return function(i){return e.apply(null,i)}}function isAxiosError(e){return utils.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={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(HttpStatusCode).forEach(([e,n])=>{HttpStatusCode[n]=e});const HttpStatusCode$1=HttpStatusCode;function createInstance(e){const n=new Axios$1(e),i=bind$1(Axios$1.prototype.request,n);return utils.extend(i,Axios$1.prototype,n,{allOwnKeys:!0}),utils.extend(i,n,null,{allOwnKeys:!0}),i.create=function(s){return createInstance(mergeConfig(e,s))},i}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION$1;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(n){return Promise.all(n)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=e=>formDataToJSON(utils.isHTMLForm(e)?new FormData(e):e);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;let cookie$1={set:function(e,n,i,o,s,d){if(e==null)return;n==null&&(n="");let p=[e+"="+escape(n)];if(!isNaN(i)){let _=new Date;_.setTime(_.getTime()+i*1e3),i==0||p.push("expires="+_.toGMTString())}o!=null&&p.push("domain="+o),s!=null&&p.push("path="+s),d&&p.push("secure"),document.cookie=p.join("; ")},get:function(e,n){let i="(?:; |^)"+e+"=([^;]*);?";return new RegExp(i).test(document.cookie)?unescape(RegExp.$1):n||null},clear:function(e,n,i){let o=new Date;cookie$1.set(e,"",-o.getTime()/1e3,n,i)}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var md5={exports:{}},crypt={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(i,o){return i<>>32-o},rotr:function(i,o){return i<<32-o|i>>>o},endian:function(i){if(i.constructor==Number)return n.rotl(i,8)&16711935|n.rotl(i,24)&4278255360;for(var o=0;o0;i--)o.push(Math.floor(Math.random()*256));return o},bytesToWords:function(i){for(var o=[],s=0,d=0;s>>5]|=i[s]<<24-d%32;return o},wordsToBytes:function(i){for(var o=[],s=0;s>>5]>>>24-s%32&255);return o},bytesToHex:function(i){for(var o=[],s=0;s>>4).toString(16)),o.push((i[s]&15).toString(16));return o.join("")},hexToBytes:function(i){for(var o=[],s=0;s>>6*(3-p)&63)):o.push("=");return o.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var o=[],s=0,d=0;s>>6-d*2);return o}};crypt.exports=n})();var charenc={utf8:{stringToBytes:function(e){return charenc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(charenc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],i=0;i * @license MIT */var isBuffer_1=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&isBuffer(e.slice(0,0))}(function(){var e=crypt.exports,n=charenc_1.utf8,i=isBuffer_1,o=charenc_1.bin,s=function(d,p){d.constructor==String?p&&p.encoding==="binary"?d=o.stringToBytes(d):d=n.stringToBytes(d):i(d)?d=Array.prototype.slice.call(d,0):!Array.isArray(d)&&d.constructor!==Uint8Array&&(d=d.toString());for(var _=e.bytesToWords(d),b=d.length*8,y=1732584193,x=-271733879,w=-1732584194,v=271733878,T=0;T<_.length;T++)_[T]=(_[T]<<8|_[T]>>>24)&16711935|(_[T]<<24|_[T]>>>8)&4278255360;_[b>>>5]|=128<>>9<<4)+14]=b;for(var C=s._ff,P=s._gg,R=s._hh,j=s._ii,T=0;T<_.length;T+=16){var Y=y,U=x,W=w,ne=v;y=C(y,x,w,v,_[T+0],7,-680876936),v=C(v,y,x,w,_[T+1],12,-389564586),w=C(w,v,y,x,_[T+2],17,606105819),x=C(x,w,v,y,_[T+3],22,-1044525330),y=C(y,x,w,v,_[T+4],7,-176418897),v=C(v,y,x,w,_[T+5],12,1200080426),w=C(w,v,y,x,_[T+6],17,-1473231341),x=C(x,w,v,y,_[T+7],22,-45705983),y=C(y,x,w,v,_[T+8],7,1770035416),v=C(v,y,x,w,_[T+9],12,-1958414417),w=C(w,v,y,x,_[T+10],17,-42063),x=C(x,w,v,y,_[T+11],22,-1990404162),y=C(y,x,w,v,_[T+12],7,1804603682),v=C(v,y,x,w,_[T+13],12,-40341101),w=C(w,v,y,x,_[T+14],17,-1502002290),x=C(x,w,v,y,_[T+15],22,1236535329),y=P(y,x,w,v,_[T+1],5,-165796510),v=P(v,y,x,w,_[T+6],9,-1069501632),w=P(w,v,y,x,_[T+11],14,643717713),x=P(x,w,v,y,_[T+0],20,-373897302),y=P(y,x,w,v,_[T+5],5,-701558691),v=P(v,y,x,w,_[T+10],9,38016083),w=P(w,v,y,x,_[T+15],14,-660478335),x=P(x,w,v,y,_[T+4],20,-405537848),y=P(y,x,w,v,_[T+9],5,568446438),v=P(v,y,x,w,_[T+14],9,-1019803690),w=P(w,v,y,x,_[T+3],14,-187363961),x=P(x,w,v,y,_[T+8],20,1163531501),y=P(y,x,w,v,_[T+13],5,-1444681467),v=P(v,y,x,w,_[T+2],9,-51403784),w=P(w,v,y,x,_[T+7],14,1735328473),x=P(x,w,v,y,_[T+12],20,-1926607734),y=R(y,x,w,v,_[T+5],4,-378558),v=R(v,y,x,w,_[T+8],11,-2022574463),w=R(w,v,y,x,_[T+11],16,1839030562),x=R(x,w,v,y,_[T+14],23,-35309556),y=R(y,x,w,v,_[T+1],4,-1530992060),v=R(v,y,x,w,_[T+4],11,1272893353),w=R(w,v,y,x,_[T+7],16,-155497632),x=R(x,w,v,y,_[T+10],23,-1094730640),y=R(y,x,w,v,_[T+13],4,681279174),v=R(v,y,x,w,_[T+0],11,-358537222),w=R(w,v,y,x,_[T+3],16,-722521979),x=R(x,w,v,y,_[T+6],23,76029189),y=R(y,x,w,v,_[T+9],4,-640364487),v=R(v,y,x,w,_[T+12],11,-421815835),w=R(w,v,y,x,_[T+15],16,530742520),x=R(x,w,v,y,_[T+2],23,-995338651),y=j(y,x,w,v,_[T+0],6,-198630844),v=j(v,y,x,w,_[T+7],10,1126891415),w=j(w,v,y,x,_[T+14],15,-1416354905),x=j(x,w,v,y,_[T+5],21,-57434055),y=j(y,x,w,v,_[T+12],6,1700485571),v=j(v,y,x,w,_[T+3],10,-1894986606),w=j(w,v,y,x,_[T+10],15,-1051523),x=j(x,w,v,y,_[T+1],21,-2054922799),y=j(y,x,w,v,_[T+8],6,1873313359),v=j(v,y,x,w,_[T+15],10,-30611744),w=j(w,v,y,x,_[T+6],15,-1560198380),x=j(x,w,v,y,_[T+13],21,1309151649),y=j(y,x,w,v,_[T+4],6,-145523070),v=j(v,y,x,w,_[T+11],10,-1120210379),w=j(w,v,y,x,_[T+2],15,718787259),x=j(x,w,v,y,_[T+9],21,-343485551),y=y+Y>>>0,x=x+U>>>0,w=w+W>>>0,v=v+ne>>>0}return e.endian([y,x,w,v])};s._ff=function(d,p,_,b,y,x,w){var v=d+(p&_|~p&b)+(y>>>0)+w;return(v<>>32-x)+p},s._gg=function(d,p,_,b,y,x,w){var v=d+(p&b|_&~b)+(y>>>0)+w;return(v<>>32-x)+p},s._hh=function(d,p,_,b,y,x,w){var v=d+(p^_^b)+(y>>>0)+w;return(v<>>32-x)+p},s._ii=function(d,p,_,b,y,x,w){var v=d+(_^(p|~b))+(y>>>0)+w;return(v<>>32-x)+p},s._blocksize=16,s._digestsize=16,md5.exports=function(d,p){if(d==null)throw new Error("Illegal argument "+d);var _=e.wordsToBytes(s(d,p));return p&&p.asBytes?_:p&&p.asString?o.bytesToString(_):e.bytesToHex(_)}})();(function(e,n){const i=e();function o(d,p,_,b){return _0x20a9(b-327,p)}function s(d,p,_,b){return _0x20a9(p-118,b)}for(;[];)try{if(-parseInt(s(443,483,456,507))/1+-parseInt(s(509,465,461,440))/2+-parseInt(s(436,455,439,485))/3*(parseInt(o(605,590,559,610))/4)+parseInt(o(614,607,602,637))/5*(parseInt(o(589,599,665,618))/6)+-parseInt(o(589,662,647,620))/7*(-parseInt(s(463,442,424,485))/8)+parseInt(o(625,597,625,645))/9*(-parseInt(s(525,476,492,517))/10)+parseInt(o(633,688,701,650))/11===n)break;i.push(i.shift())}catch{i.push(i.shift())}})(_0x12f3,-567*471+66991+92*4819);function createUuid(){const e={};function n(s,d,p,_){return _0x20a9(d-450,s)}function i(s,d,p,_){return _0x20a9(s- -345,d)}e[i(-29,18)]=function(s,d){return s+d},e.rREdI=function(s,d){return s+d};const o=e;return o.XpGep(o.XpGep(o[i(-2,-13)]([-792631*1+2212851+428989*20],-(1*6143+4213+-9356)),-(-5843+6216+3627))+-(-8498+11512+-4986*-1),-(32720138226+-59464442916+126744304690))[n(746,767)](/[018]/g,s=>(s^crypto[n(799,791)+i(37,85)](new Uint8Array(9497+9998+-19494))[-8831+4*1154+1*4215]&-1*3263+4606+-1328>>s/(-43*-191+-1181*8+1239)).toString(-632+-1*-8298+-7650))}function _0x20a9(e,n){const i=_0x12f3();return _0x20a9=function(o,s){return o=o-(4057+-2448+-1326*1),i[o]},_0x20a9(e,n)}function _0x12f3(){const e=["14485020UygDYp","8XmDZPi","www.pubgmo","www.towero","-sea.com","test-sg-ac","base.ajax ","includes","test.drago","isEmptyObj","toString","lanet.com","test.nikke","syncedoffp","1194657aXbdeq","eDDtj","com","&s=","getRandomV","?u=","rREdI","startsWith","getCurrent","params","734672IWjBFG","&u=","isPlainObj",".hotcool.t","slice","Timestamp","toLowerCas","intlgame.c","n2.com","ool.tw","get","970HsWMsT","lobal.com","DUGXQ","-kr.com","ame.com","pre.honoro","n.game","316427KkqHXS","morilife.c","nikke-test",".game","t.playerin","ayerinfini","test.hok5v","split","intel#!202","nikke-sea.","BIFnc","nikke-jp.c","5.com","host","test.tower","http://","www.honoro","alues","offantasy-","url","4ufAyxU","XuLPt","UrTsZ","syncedtheg","www.moriko","&ts=","www.dragon","https://","14352rIOola","Owxzk","1460186xoHbGl","length","nikke-en.c","yctWR","eYsdJ","www.nikke-","l.com/","need url","some","iaWGJ","sg-pubg.pl","join","invalid us","ffantasy-g","ect","2$act","nikke.hotc","80LQwrkb","method","function","iRYaN","error","HybjK","XpGep","replace","22122yDYZBy","egrwu","www.undawn","bile.com","global.com"];return _0x12f3=function(){return e},_0x12f3()}function objectToParam(e){const n={BIFnc:function(d,p){return d(p)},yzxeT:function(d,p){return d!=p},egrwu:function(d,p){return d===p},Owxzk:function(d,p){return d===p},KtjBE:s(712,730,730),eYsdJ:function(d,p){return d===p},iRYaN:o(-285,-292,-314,-326),iaWGJ:o(-219,-217,-186,-210),kqhEa:function(d,p){return d===p}};let i="";for(let d in e)if(n[s(718,719,726)](n.KtjBE,n.KtjBE)){let p=e[d];if($[o(-238,-228,-201,-250)+o(-289,-270,-311,-257)](p))if(n[s(758,771,753)]("EYSdy","EYSdy"))for(let _ in p)if(n[s(779,758,731)](n[o(-237,-264,-301,-258)],n[o(-307,-275,-320,-237)])){let b="";_0x36f598.params!=_0x497588&&!_0x435b2c["isEmptyObj"+o(-272,-270,-229,-257)](_0x75dc8c.params)&&(b=n[o(-249,-202,-196,-166)](_0x493b96,_0x23c83d[o(-246,-231,-236,-278)])),_0x13fbe5=n.yzxeT(b,"")?_0x705bcb[o(-213,-247,-272,-234)]("?")?_0x2bc8b5+"&"+b:_0x3d2f8f+"?"+b:_0x30e4d2,_0x5f09a6[o(-206,-231,-201,-217)]={}}else{let b=d+"["+_+"]="+p[_];i+=n.kqhEa(i,"")?b:"&"+b}else{let _=_0x278acc[_0xd7f589];if(_0x2a29ff["isPlainObj"+o(-278,-270,-266,-319)](_))for(let b in _){let y=_0xea4d7e+"["+b+"]="+_[b];_0x3c492d+=n[o(-275,-258,-233,-269)](_0x5a5c9c,"")?y:"&"+y}else _0x371302+=n[s(755,714,753)](_0x336337,"")?_0x58e0ac+"="+_:"&"+_0x5bb290+"="+_}else i+=n.egrwu(i,"")?d+"="+p:"&"+d+"="+p}else _0x411bc0=_0x973458.split("/")[o(-255,-226,-232,-239)](-1*4701+-2846+7550)[s(712,729,738)]("/");function o(d,p,_,b){return _0x20a9(p- -577,b)}function s(d,p,_,b){return _0x20a9(_-434,d)}return i}function GetSign(e){const n={};n[w(-28,-13,28,11)]=function(R,j){return R===j},n.eDDtj=function(R,j){return R+j};const i=n;if(![w(21,86,51,50)+"om",w(30,-19,-23,-18)+w(47,84,105,58),P(1092,1058,1064,1049)+P(1090,1081,1072,1120),w(46,0,17,24)+P(1125,1075,1148,1173)+"finite.com",w(-15,-42,-6,-1)+w(57,48,74,66)+"te.com",w(-16,-1,62,21)+P(1077,1119,1071,1127),w(41,46,23,67)+P(1133,1161,1174,1102),P(1119,1095,1122,1106)+"fkings.com",P(1137,1105,1093,1182)+"fkings.com","test.morikomorilife."+w(-5,52,59,35),P(1043,1015,1054,1036)+w(64,80,40,62)+"om","test.undaw"+w(12,96,57,60),P(1076,1078,1123,1039)+w(105,71,23,64),w(62,21,8,31)+"-en.com",w(-10,-7,62,31)+"-jp.com","test.nikke"+P(1117,1151,1098,1138),w(14,79,35,31)+P(1083,1064,1043,1113),w(-12,-16,-47,-9)+"om",w(85,113,50,72)+"om","nikke-kr.com",w(116,32,79,70)+w(86,-9,23,35),w(-2,-8,48,5)+P(1112,1152,1086,1098),P(1123,1087,1163,1154)+w(79,5,82,46)+"w",w(-1,29,45,27)+"nn2.com",w(-22,-56,-40,-15)+P(1111,1146,1160,1095),w(29,49,24,75)+w(29,67,85,79)+P(1078,1043,1064,1087),P(1082,1070,1123,1044)+w(-39,11,12,2)+w(29,44,56,55),"nikke-global.com",P(1054,1068,1099,1021)+"global.com",w(47,37,42,75)+w(123,74,66,79)+P(1078,1095,1045,1027),"test.taris"+P(1078,1112,1076,1051),"tarisgloba"+w(-1,-24,13,-5)][w(-21,15,-36,-3)](R=>location[w(71,81,50,74)].includes(R)))throw new Error(P(1061,1055,1044,1055)+"er");let d="10005",p=w(24,120,100,69)+P(1064,1100,1108,1082);if(e=e||{},e[w(51,48,117,80)]===void 0){console[P(1070,1067,1042,1103)](w(8,76,5,25)+w(-2,-26,25,-4));return}let _=e[P(1067,1115,1047,1025)]||P(1113,1157,1106,1072),b=e[w(118,63,96,80)],y=createUuid();if(_[P(1109,1093,1103,1063)+"e"]()===P(1113,1108,1164,1114))if(w(-66,-41,-65,-20)==="pydSF")_0x38ad4b+=i.HybjK(_0x32bc0b,"")?_0xd8ccf8+"="+_0x39d3ca:"&"+_0x5c18a6+"="+_0x44076;else{let R="";e[P(1102,1052,1146,1125)]!=null&&!$[w(77,33,71,28)+w(-46,44,2,3)](e[P(1102,1073,1068,1076)])&&(R=objectToParam(e.params)),b=R!=""?b.includes("?")?b+"&"+R:b+"?"+R:b,e.params={}}let x=typeof window[w(28,0,44,41)+w(7,86,16,48)]==w(-25,46,-5,8)?getCurrentTimestamp():Math.round(new Date().getTime()/(4704+-1124*-4+-328*25))[P(1089,1109,1068,1092)]();function w(R,j,Y,U){return _0x20a9(U- -304,R)}b+=b.includes("?")?w(23,67,47,44)+y+"&a="+d+w(28,30,-34,-16)+x:w(76,3,61,38)+y+"&a="+d+P(1044,1040,1069,1024)+x;let v="";b[w(91,24,66,40)](w(71,78,34,76))||b[P(1100,1139,1055,1091)](P(1046,1071,1036,1051))||b[w(31,40,16,40)]("//")?v=b[w(41,26,82,68)]("/").slice(-179*-35+-1*-5259+-11521)[P(1060,1097,1106,1039)]("/"):v=b[w(34,81,72,68)]("/")[P(1107,1101,1120,1128)](3884+-5167*-1+9050*-1)[P(1060,1086,1037,1019)]("/");let T=v[w(77,107,83,68)]("?")[-630+-3740+4370];T[T.length-(5609+1*5261+-3*3623)]==="/"&&(T=T[P(1107,1100,1107,1065)](6287+23*-397+-474*-6,T[P(1050,1008,1062,1021)]-(36*-13+-1221*5+6574)),v=T+"?"+v[w(105,75,62,68)]("?")[-4*591+1626+-1*-739]);let C=md5.exports("/"+decodeURI(v)+"&appkey="+p);e[w(42,44,70,80)]=b+w(60,46,33,36)+C;function P(R,j,Y,U){return _0x20a9(R-756,U)}return e}let apiInstance=null;const joinSearchParams=(e,n)=>{if(!e)return n;if(!n)return e;for(const[i,o]of e.entries())n.append(i,o);return n};console.log(">>>>>>>>>>>>>>>fetch8<<<<<<<<<<<<<<<");const WandLibFetch={},WandFetch="WandFetch",GameFetch="GameFetch",LoginSource={Intlgame:"1",Launcher:"2",LauncherSteam:"3",IntelEmail:"4",IntelEmailXiaosen:"5",Lip:"6"},BackendLoginType={Intel:"1"},BackendLoginTypeMap={[LoginSource.Intlgame]:BackendLoginType.Intel,[LoginSource.Lip]:BackendLoginType.Intel},CodeType={System:1,Business:2,NoErro:2};function getQuestData(e){if(e.method==="post"){const{showLoading:n=!0,checkLogin:i=!0,needLogin:o=!0,loginParam:s={reflush:1},loadingParam:d={},...p}=e.data;return{showLoading:n,checkLogin:i,loginParam:s,loadingParam:d,needLogin:o,resetPostData:p}}}function buildFullPath(e,n){if(!e)return n;if(e.includes("https://")||e.includes("http://"))return e;let i=e.startsWith("/")?e.slice(1):e;return`${n.endsWith("/")?n.substring(0,n.length-1):n}/${i}`}function toggleLoading$1(e){window.toggleLoading&&window.toggleLoading(e)}WandLibFetch.install=function(e){let n,i={};function o(v,T){switch(T){case 300001:return b(),v;default:return v}}let s=function(v,T){let C={status:!1,code:"default",code_type:1,msg:"",data:{}};if(v==WandFetch){const{data:P={},msg:R}=T||{},{code_type:j=CodeType.System,code:Y}=P;o(P,Y);const U={[CodeType.Business]:"bussiness-code",[CodeType.System]:"system-code"},{page:W={}}=this.$store.state,ne=`${U[j||CodeType.System]}.${Y}`,we=this.$te(ne)||this.$te(ne,W.default_language);console.log("hasMessgae",this.$te(ne),this.$te(ne,W.default_language)),console.log("msg",this.$t(ne),this.$t("system-code.default"));const J=we?this.$t(ne):this.$t("system-code.default");return{status:Y===0,...P,msg:Y===0?R:J}}else v==GameFetch&&"ret"in T&&(T.ret==0?C={status:!0,data:T.data}:C={status:!1,code:T.ret,code_type:2,msg:this.$terrorb(T.ret)});return C};function d(v){if(v=Array.prototype.slice.call(v),v.length<=0){console.error("\u8BF7\u6C42\u53C2\u6570\u4E0D\u8DB3");return}let T="",C={showLoading:!0,checkLogin:!0,needLogin:!0,fullPath:!1,loadingParam:{}},P={},R=v[0];return typeof R=="string"?T=R:Object.prototype.toString.call(R)==="[object Object]"?(C=Object.assign(C,R),T=R.url):console.error("GET\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u53C2\u6570"),v.length>1&&(P=v[1]),{url:T,param:C,bodyData:P}}async function p(){let v=this;if(apiInstance==null){if(!n.checkLogin())return b(),apiInstance;__vitePreload(()=>import("./index.es.430bb67b.js"),[],import.meta.url).then(({default:T})=>{apiInstance=new T({env:v.$store.state.page&&v.$store.state.page.game_api_env?v.$store.state.page.game_api_env:"test",gameID:cookie$1.get("gameid"),channelID:cookie$1.get("channelid")})})}return apiInstance}async function _(v,T=!0){const C=await n.checkLogin();return console.log("logined",C,T),C?await n.info():(T&&b(v),!1)}async function b(v={}){try{if(!await n.showLogin({...i,...v}))return;const{reload:C=!0}=i;if(!C)return;window.location.reload()}catch(T){console.log("\u767B\u5F55\u6A21\u5757\u9700\u8981\u5148\u5728\u6A21\u677F\u4E2D\u521D\u59CB\u5316",T)}}axios$1.defaults.withCredentials=!0,axios$1.interceptors.request.use(async v=>{console.log(">>>>>>>>>>>>>>>rawConfig<<<<<<<<<<<<<<<"),console.log(v);const{showLoading:T,checkLogin:C,loginParam:P,loadingParam:R,needLogin:j,resetPostData:Y}=getQuestData(v);if(T&&toggleLoading$1(R),C){let U=await _(P,j);if(U===!1)throw new axios$1.Cancel("not login,cancel request");if(n.validLogin){const W=await n.validLogin(P);if(console.log("login valid",W),!W)throw new axios$1.Cancel("not valid,cancel request")}try{console.log("loginStep res",U);const W=new URLSearchParams(U||{}),{origin:ne,pathname:we,searchParams:J}=new URL(v.url),oe=joinSearchParams(W,J),ue=`${ne}${we}?${oe.toString()}`;return GetSign({...v,url:ue,data:Y})}catch(W){throw new axios$1.Cancel(W)}}else return GetSign({...v,data:Y})},function(v){return Promise.reject(v)}),axios$1.interceptors.response.use(v=>(toggleLoading$1(!1),v),v=>Promise.reject(v)),e.prototype.$WandFetch=function(v){return this.post=y,this};const y=async function(){let v=this,{url:T,bodyData:C}=d(arguments);const P=this.$store.state.page,{api_host:R,account_type:j=LoginSource.Intlgame,need_login:Y,default_language:U,login_params:W={},game_id:ne}=P||{};n||await w(j,{...W,lang:U,gameId:ne});const we=buildFullPath(T,R);console.log("storePage",P,we);const J=new URL(we),{searchParams:oe}=J,ue=BackendLoginTypeMap[j];return oe.append("account_type",ue),oe.append("lang_type",this.$i18n.locale),axios$1.post(J.toString(),{needLogin:Y,loginParam:{lang:U,...W,gameId:ne},...C}).catch(function(ge){return toggleLoading$1(!1),Promise.reject(ge)}).then(ge=>s.bind(v)(WandFetch,ge))};e.prototype.$GameFetch=function(){return this.post=x,this};const x=function(){let v=this,{url:T,param:C,bodyData:P}=d(arguments),R=cookie$1.get("area_id"),j=cookie$1.get("zone_id"),Y=cookie$1.get("plat_id"),U=cookie$1.get("role_id"),W=cookie$1.get("openid"),ne=cookie$1.get("token");P.area_id=Number(R),P.zone_id=Number(j),P.plat_id=Number(Y),P.role_id=U;let we="";C.fullPath!=!0&&(we=v.$store.state.page&&v.$store.state.page.game_api_path?this.$store.state.page.game_api_path.replace(/\/$/,"")+"/":"/act.actmodel.newplayer.newplayer_interface/");let J=`${we}${T}`;return new Promise(async(oe,ue)=>{let ge=await p.bind(v)();if(ge==null){toggleLoading$1(!1),ue("not login");return}return C.showLoading&&doShowLoading(C.loadingParam),ge.invoke(P,{openid:W,r:J,token:ne}).then(xe=>{toggleLoading$1(!1);let Ae=s.bind(v)(GameFetch,xe);oe(Ae)}).catch(xe=>{toggleLoading$1(!1),ue(xe)})})};function w(v,T={}){if(!(!v||n))return i={...T},new Promise(async(C,P)=>{if(!(!v||n)){if(v===LoginSource.Intlgame&&__vitePreload(()=>import("./index.5dfff3a6.js"),["./index.5dfff3a6.js","./index.0f777e78.css"],import.meta.url).then(({default:R})=>{n=R,C()}),v===LoginSource.Launcher){__vitePreload(()=>import("./index.ff3f3ff0.js"),[],import.meta.url).then(({default:R})=>{n=R,C()});return}if(v===LoginSource.LauncherSteam){__vitePreload(()=>import("./index.ff3f3ff0.js"),[],import.meta.url).then(({default:R,LoginType:j})=>{n=R,i={type:j.Steam,...i},C()});return}if(v===LoginSource.IntelEmail){__vitePreload(()=>import("./index.2bb0c538.js"),["./index.2bb0c538.js","./index.4f91f9d1.js","./index.3dfa108a.css"],import.meta.url).then(({default:R})=>{n=R,C()});return}if(v===LoginSource.IntelEmailXiaosen){__vitePreload(()=>import("./index.b9fdcc15.js"),["./index.b9fdcc15.js","./index.4f91f9d1.js","./index.230b3da6.css"],import.meta.url).then(({default:R})=>{n=R,C()});return}if(v===LoginSource.Lip){__vitePreload(()=>import("./index.1d61716f.js"),[],import.meta.url).then(({default:R})=>{n=R,C()});return}!window.rpc||__vitePreload(()=>import("./index.821cb101.js"),[],import.meta.url).then(({default:R})=>{n=R,C()})}})}e.prototype.$Fetch=function(v){return v===WandFetch?this.$WandFetch():v===GameFetch?this.$GameFetch():this},e.prototype.checkLoginFunc=async function(v=!0){const T=this.$store.state.page,{default_language:C,account_type:P=LoginSource.Intlgame,login_params:R={},game_id:j}=T||{};n||await w(P,{...R,lang:C,gameId:j});try{return await n.checkLogin()?await n.info():(v&&b(),!1)}catch(Y){return console.info("checkLoginFunc",Y),!1}},e.prototype.logout=function(v=!0){n.logout(),v&&window.location.reload()}};function EventBus$1(e){const n=function(){const i=new e;function o(d,p){if(!d){console.warn("\u76D1\u542C\u7684\u4E8B\u4EF6\u540D\u4E3A\u7A7A");return}if(!p){console.warn("\u4E8B\u4EF6\u7684\u5904\u7406\u51FD\u6570\u4E3A\u7A7A");return}i.$on(d,p)}function s(d,...p){if(!d){console.warn("\u89E6\u53D1\u4E8B\u4EF6\u540D\u4E3A\u7A7A");return}i.$emit(d,...p)}return{$on:o,$emit:s}};e.prototype.$WG_ACT_BUS=n()}var uaParser={exports:{}};(function(e,n){(function(i,o){var s="1.0.35",d="",p="?",_="function",b="undefined",y="object",x="string",w="major",v="model",T="name",C="type",P="vendor",R="version",j="architecture",Y="console",U="mobile",W="tablet",ne="smarttv",we="wearable",J="embedded",oe=350,ue="Amazon",ge="Apple",xe="ASUS",Ae="BlackBerry",Oe="Browser",Pe="Chrome",qe="Edge",et="Firefox",Ge="Google",_t="Huawei",be="LG",Q="Microsoft",_e="Motorola",Te="Opera",yt="Samsung",At="Sharp",ze="Sony",ct="Xiaomi",Le="Zebra",vt="Facebook",ft="Chromium OS",Ot="Mac OS",Dt=function(le,he){var B={};for(var ce in le)he[ce]&&he[ce].length%2===0?B[ce]=he[ce].concat(le[ce]):B[ce]=le[ce];return B},pt=function(le){for(var he={},B=0;B0?de.length===2?typeof de[1]==_?this[de[0]]=de[1].call(this,Ne):this[de[0]]=de[1]:de.length===3?typeof de[1]===_&&!(de[1].exec&&de[1].test)?this[de[0]]=Ne?de[1].call(this,Ne,de[2]):o:this[de[0]]=Ne?Ne.replace(de[1],de[2]):o:de.length===4&&(this[de[0]]=Ne?de[3].call(this,Ne.replace(de[1],de[2])):o):this[de]=Ne||o;B+=2}},wt=function(le,he){for(var B in he)if(typeof he[B]===y&&he[B].length>0){for(var ce=0;ce2&&(ee[v]="iPad",ee[C]=W),ee},this.getEngine=function(){var ee={};return ee[T]=o,ee[R]=o,Je.call(ee,ce,ke.engine),ee},this.getOS=function(){var ee={};return ee[T]=o,ee[R]=o,Je.call(ee,ce,ke.os),de&&!ee[T]&&X&&X.platform!="Unknown"&&(ee[T]=X.platform.replace(/chrome os/i,ft).replace(/macos/i,Ot)),ee},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ce},this.setUA=function(ee){return ce=typeof ee===x&&ee.length>oe?Ue(ee,oe):ee,this},this.setUA(ce),this};Ie.VERSION=s,Ie.BROWSER=pt([T,R,w]),Ie.CPU=pt([j]),Ie.DEVICE=pt([v,P,C,Y,U,ne,W,we,J]),Ie.ENGINE=Ie.OS=pt([T,R]),e.exports&&(n=e.exports=Ie),n.UAParser=Ie;var Qe=typeof i!==b&&(i.jQuery||i.Zepto);if(Qe&&!Qe.ua){var Xe=new Ie;Qe.ua=Xe.getResult(),Qe.ua.get=function(){return Xe.getUA()},Qe.ua.set=function(le){Xe.setUA(le);var he=Xe.getResult();for(var B in he)Qe.ua[B]=he[B]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);const UAParser=uaParser.exports;var Position=(e=>(e.Fixed="fixed",e.Absolute="absolute",e.Relative="relative",e.Static="static",e))(Position||{}),BackgroundSize=(e=>(e.Auto="0",e.Cover="1",e.Contain="2",e))(BackgroundSize||{}),ContainerType=(e=>(e.Module="module",e.Popup="popUp",e))(ContainerType||{}),ContainerShowType=(e=>(e[e.Show=0]="Show",e[e.Hidde=1]="Hidde",e[e.Disappre=2]="Disappre",e))(ContainerShowType||{}),AccountType=(e=>(e.INTEL_GAME="1",e.LAUNCHER="2",e.LAUNCHER_STEAM="3",e.INTEL_EMAIL="4",e))(AccountType||{});const backgroundSizeMap={[0]:"auto",[1]:"cover",[2]:"contain"};var PlatformType=(e=>(e[e.H5=0]="H5",e[e.PC=1]="PC",e[e.ALL=2]="ALL",e))(PlatformType||{}),WandEnv=(e=>(e.Ide="ide",e.DEV="dev",e.Preview="preview",e.Demo="demo",e.Online="online",e.Gray="gray",e))(WandEnv||{}),OverflowType=(e=>(e.Auto="auto",e.Hidden="hidden",e.Scroll="scroll",e.Visible="visible",e))(OverflowType||{}),EventType=(e=>(e.Jump="jump",e.Report="report",e.Event="event",e.Visible="visible",e))(EventType||{});const NAME$4="page",state$3=getInitState$3(),mutations$4={setLanguage(e,n=[]){e.language=n},setPage(e,n){const{cfg:i={},...o}=n;Object.keys(o).forEach(s=>{Vue.set(e,s,o[s])}),Object.keys(i).forEach(s=>{Vue.set(e,s,i[s])})},setChildPage(e,n){const{cfg:i={}}=n;Object.keys(i).forEach(o=>{const s=i[o];!s||Vue.set(e,o,s)})},setDefault(e,n){e.default_language=n},setVisible(e,n){e.visibleCompenents.indexOf(n)===-1&&e.visibleCompenents.push(n)},setUnVisible(e,n){const i=e.visibleCompenents.indexOf(n);i!==-1&&e.visibleCompenents.splice(i,1)},initVisible(e,n){e.visibleCompenents=n},toggleVisible(e,n){const{showGroup:i=[],hideGroup:o=[]}=n,{visibleCompenents:s}=e,d=new Set([...s,...i]),p=Array.from(d).filter(_=>!o.includes(_));e.visibleCompenents=p}};function computeConatiners(e,n,i=[]){if(!e)return[];if(!n)return e;let o=[],s=[];const d=e.findIndex(b=>b==="all_pop"),p=e.findIndex(b=>b==="all_module");d!==-1&&(e.splice(d,1),o=n.filter(b=>b.container_type===ContainerType.Popup).map(b=>b.id).filter(b=>!i.includes(b))),p!==-1&&(e.splice(p,1),s=n.filter(b=>b.container_type===ContainerType.Module).map(b=>b.id).filter(b=>!i.includes(b)));const _=new Set([...e,...o,...s]);return Array.from(_)}const actions$1={updateVisible({commit:e,rootGetters:n},i){const{showGroup:o,hideGroup:s}=i,d=n["config/currentContainers"]||[],p=computeConatiners(o,d,s),_=computeConatiners(s,d,o);e("toggleVisible",{showGroup:Array.from(p),hideGroup:Array.from(_)})}},getters$3={isVisible:e=>n=>e.visibleCompenents.includes(n),isMobile:e=>{const{userAgentInfo:{device:n,os:i}}=e;return isMobileDevice(n)||isMobileOs(i)},isMac:e=>{const{userAgentInfo:{os:n}}=e;return isMacOs(n)}},isMobileDevice=e=>{if(!e)return!1;const{type:n,model:i}=e;return n==="mobile"||i==="iPad"},isMobileOs=e=>{if(!e)return!1;const{name:n}=e;return n?["ios","android"].findIndex(o=>n==null?void 0:n.toLowerCase().includes(o))>-1:!1},isMacOs=e=>{if(!e)return!1;const{name:n}=e;return n?n==null?void 0:n.toLowerCase().includes("mac"):!1};function init$7(e){e.registerModule(NAME$4,{namespaced:!0,state:state$3,mutations:mutations$4,getters:getters$3,actions:actions$1})}function getInitState$3(){return{id:0,language:[],userAgentInfo:new UAParser().getResult(),visibleCompenents:[],game_id:"-1",default_language:"zh",support_language_list:[],api_host:"",need_vconsole:!1,need_login:!1,account_type:AccountType.INTEL_GAME,max_width:"",auto_width:!0,cut_img_flag:!1,detectHorizontal:!1,isNotice:!1,detectIntl:!1,isNoticeIntl:!1}}const page$1={state:state$3,init:init$7},NAME$3="mod",state$2=getInitState$2(),mutations$3={setModData(e,n){Vue.set(e,n.key,n.value)}},getters$2={getModData:e=>n=>{const i=n.split(".");let o=e;for(const s of i.values())if(s in o)o=o[s];else{o="";break}return o}};function init$6(e){e.registerModule(NAME$3,{namespaced:!0,state:state$2,mutations:mutations$3,getters:getters$2})}function getInitState$2(){return{}}const mod={state:state$2,init:init$6},NAME$2="user",state$1=getInitState$1(),mutations$2={setUserData(e,n){!n||(e.info=n)}},getters$1={userInfo:e=>e.info};function init$5(e){e.registerModule(NAME$2,{namespaced:!0,state:state$1,mutations:mutations$2,getters:getters$1})}function getInitState$1(){return{info:void 0}}const user={state:state$1,init:init$5},BasePath={current:""},WandPathName="wand_page_id",isInIntlBrowser=/intlbrowser/i.test(navigator.userAgent),IsTest=location.origin.includes("test")||location.origin.includes("localhost"),AbtestWaitTime=5e3;function isString$2(e){return Object.prototype.toString.call(e)==="[object String]"}function isObject$2(e){return Object.prototype.toString.call(e)==="[object Object]"}function isModConfig(e){return e.module_info!==void 0}function debounce(e,n){let i;return function(...o){clearTimeout(i),i=setTimeout(()=>{e.apply(this,o)},n)}}function toKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function setBasePath(e){BasePath.current=e}function getNumUnit(e){if(!isString$2(e))return{num:e,unit:""};if(!e)return{num:0,unit:""};const n=e.match(/^(-?\d+(\.\d+)?)([a-zA-Z]+)$/);if(!n)return{num:e,unit:""};const i=parseFloat(n[1]),o=n[3];return{num:i,unit:o}}function toggleLoading(e){const n=document.querySelector(".wand-root-loading");if(!e){n&&n.classList.add("wand-root-hide");return}if(n){n.classList.remove("wand-root-hide");return}const i=document.createElement("div"),o=document.createElement("div");i.classList.add("wand-root-loading"),o.classList.add("load_img"),i.append(o),document.body.append(i)}function getCookie(e){var o;const i=`; ${document.cookie}`.split(`; ${e}=`);if(i.length===2)return(o=i.pop())==null?void 0:o.split(";").shift()}const NAME$1="config",state=getInitState(),mutations$1={setChildPagesRouter(e,n){!n||(e.childPagesRouter=n)},setConfig(e,n){const{mod:i,container:o}=n;e.mod=i,e.container=o;const s=o.filter(d=>{const{cfg:{defaultShow:p}}=d;return p===ContainerShowType.Show});this.commit("page/initVisible",[...i,...s].map(d=>d.id))},setChildPageId(e,n){if(!n)return;const{child_page_id:i}=n;Vue.set(e,"child_page_id",i)},setPage(e,n){!n||Vue.set(e,"page",n)},setLoading(e,n){Vue.set(e,"loading",n)}},getters={allMod:e=>e.mod,allContainer:e=>e.container,currentMods:e=>e.mod.filter(n=>n.child_page_id===e.child_page_id),currentContainers:e=>e.container.filter(n=>n.child_page_id===e.child_page_id),getModByid:(e,n)=>i=>n.currentMods.find(o=>o.id===i),getModByids:(e,n)=>i=>i.map(o=>n.currentMods.find(s=>s.id===o)),getModContainerByParent:(e,n)=>i=>{const o=n.currentMods.filter(d=>d.parent_id===i),s=n.currentContainers.filter(d=>d.parent_id===i);return[...o,...s].sort((d,p)=>d.order-p.order)},getModContainerById:(e,n)=>i=>{const o=n.currentMods.find(d=>d.id===i);return o||n.currentContainers.find(d=>d.id===i)}};function mergePage(e,n){if(!e)return n;if(!n)return e;const i=new Set([...Object.keys(e),...Object.keys(n)]),o=new Map;for(const s of i){const d=n[s];if(!e.hasOwnProperty(s)){o.set(s,d);continue}!d||Array.isArray(d)&&d.length<0||isObject$2(d)&&Object.keys(d).length<0||o.set(s,d)}return Object.assign({},e,Object.fromEntries(o.entries()))}const actions={updateChildPage({state:e,commit:n},i){const{page:o}=e,s=mergePage(o==null?void 0:o.cfg,i==null?void 0:i.cfg);n("page/setPage",{...o,cfg:s,event:i==null?void 0:i.event},{root:!0})},updatePage({commit:e},n){const{page:i,childPage:o}=n;if(!i)return;const s=mergePage(i==null?void 0:i.cfg,o==null?void 0:o.cfg);e("page/setPage",{...i,cfg:s},{root:!0}),e("setPage",i)}};function init$4(e){e.registerModule(NAME$1,{namespaced:!0,state,mutations:mutations$1,getters,actions})}function getInitState(){return{mod:[],container:[],childPagesRouter:[],childPages:[],loading:!1}}const config={state,init:init$4};Vue.use(Vuex);const modules={page:page$1,mod,user,config},mutations={reset(){Object.values(modules).forEach(e=>{var n;typeof e.reset=="function"&&((n=e==null?void 0:e.reset)==null||n.call(e,store))})}},store=new Vuex.Store({mutations});Object.values(modules).forEach(e=>{var n;typeof(e==null?void 0:e.init)=="function"&&((n=e==null?void 0:e.init)==null||n.call(e,store))});window.store=store;function _extends(){return _extends=Object.assign||function(e){for(var n=1;n=0&&(n.hash=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}var browser=createBrowserHistory();/*! * vue-i18n v8.28.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */var numberFormatKeys=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],dateTimeFormatKeys=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function warn(e,n){typeof console<"u"&&(console.warn("[vue-i18n] "+e),n&&console.warn(n.stack))}function error$1(e,n){typeof console<"u"&&(console.error("[vue-i18n] "+e),n&&console.error(n.stack))}var isArray=Array.isArray;function isObject$1(e){return e!==null&&typeof e=="object"}function isBoolean$1(e){return typeof e=="boolean"}function isString$1(e){return typeof e=="string"}var toString=Object.prototype.toString,OBJECT_STRING="[object Object]";function isPlainObject(e){return toString.call(e)===OBJECT_STRING}function isNull(e){return e==null}function isFunction(e){return typeof e=="function"}function parseArgs(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=null,o=null;return e.length===1?isObject$1(e[0])||isArray(e[0])?o=e[0]:typeof e[0]=="string"&&(i=e[0]):e.length===2&&(typeof e[0]=="string"&&(i=e[0]),(isObject$1(e[1])||isArray(e[1]))&&(o=e[1])),{locale:i,params:o}}function looseClone(e){return JSON.parse(JSON.stringify(e))}function remove(e,n){if(e.delete(n))return e}function arrayFrom(e){var n=[];return e.forEach(function(i){return n.push(i)}),n}function includes(e,n){return!!~e.indexOf(n)}var hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,n){return hasOwnProperty.call(e,n)}function merge(e){for(var n=arguments,i=Object(e),o=1;o/g,">").replace(/"/g,""").replace(/'/g,"'")}function escapeParams(e){return e!=null&&Object.keys(e).forEach(function(n){typeof e[n]=="string"&&(e[n]=escapeHtml(e[n]))}),e}function extend(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(n){for(var i=[],o=arguments.length-1;o-- >0;)i[o]=arguments[o+1];var s=this.$i18n;return s._t.apply(s,[n,s.locale,s._getMessages(),this].concat(i))},e.prototype.$tc=function(n,i){for(var o=[],s=arguments.length-2;s-- >0;)o[s]=arguments[s+2];var d=this.$i18n;return d._tc.apply(d,[n,d.locale,d._getMessages(),this,i].concat(o))},e.prototype.$te=function(n,i){var o=this.$i18n;return o._te(n,o.locale,o._getMessages(),i)},e.prototype.$d=function(n){for(var i,o=[],s=arguments.length-1;s-- >0;)o[s]=arguments[s+1];return(i=this.$i18n).d.apply(i,[n].concat(o))},e.prototype.$n=function(n){for(var i,o=[],s=arguments.length-1;s-- >0;)o[s]=arguments[s+1];return(i=this.$i18n).n.apply(i,[n].concat(o))}}function defineMixin(e){e===void 0&&(e=!1);function n(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return e?{mounted:n}:{beforeCreate:function(){var o=this.$options;if(o.i18n=o.i18n||(o.__i18nBridge||o.__i18n?{}:null),o.i18n){if(o.i18n instanceof VueI18n){if(o.__i18nBridge||o.__i18n)try{var s=o.i18n&&o.i18n.messages?o.i18n.messages:{},d=o.__i18nBridge||o.__i18n;d.forEach(function(w){s=merge(s,JSON.parse(w))}),Object.keys(s).forEach(function(w){o.i18n.mergeLocaleMessage(w,s[w])})}catch{}this._i18n=o.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(isPlainObject(o.i18n)){var p=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof VueI18n?this.$root.$i18n:null;if(p&&(o.i18n.root=this.$root,o.i18n.formatter=p.formatter,o.i18n.fallbackLocale=p.fallbackLocale,o.i18n.formatFallbackMessages=p.formatFallbackMessages,o.i18n.silentTranslationWarn=p.silentTranslationWarn,o.i18n.silentFallbackWarn=p.silentFallbackWarn,o.i18n.pluralizationRules=p.pluralizationRules,o.i18n.preserveDirectiveContent=p.preserveDirectiveContent),o.__i18nBridge||o.__i18n)try{var _=o.i18n&&o.i18n.messages?o.i18n.messages:{},b=o.__i18nBridge||o.__i18n;b.forEach(function(w){_=merge(_,JSON.parse(w))}),o.i18n.messages=_}catch{}var y=o.i18n,x=y.sharedMessages;x&&isPlainObject(x)&&(o.i18n.messages=merge(o.i18n.messages,x)),this._i18n=new VueI18n(o.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(o.i18n.sync===void 0||!!o.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),p&&p.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof VueI18n?this._i18n=this.$root.$i18n:o.parent&&o.parent.$i18n&&o.parent.$i18n instanceof VueI18n&&(this._i18n=o.parent.$i18n)},beforeMount:function(){var o=this.$options;o.i18n=o.i18n||(o.__i18nBridge||o.__i18n?{}:null),o.i18n?o.i18n instanceof VueI18n?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):isPlainObject(o.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof VueI18n?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):o.parent&&o.parent.$i18n&&o.parent.$i18n instanceof VueI18n&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:n,beforeDestroy:function(){if(!!this._i18n){var o=this;this.$nextTick(function(){o._subscribing&&(o._i18n.unsubscribeDataChanging(o),delete o._subscribing),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher)})}}}}var interpolationComponent={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(n,i){var o=i.data,s=i.parent,d=i.props,p=i.slots,_=s.$i18n;if(!!_){var b=d.path,y=d.locale,x=d.places,w=p(),v=_.i(b,y,onlyHasDefaultPlace(w)||x?useLegacyPlaces(w.default,x):w),T=!!d.tag&&d.tag!==!0||d.tag===!1?d.tag:"span";return T?n(T,o,v):v}}};function onlyHasDefaultPlace(e){var n;for(n in e)if(n!=="default")return!1;return Boolean(n)}function useLegacyPlaces(e,n){var i=n?createParamsFromPlaces(n):{};if(!e)return i;e=e.filter(function(s){return s.tag||s.text.trim()!==""});var o=e.every(vnodeHasPlaceAttribute);return e.reduce(o?assignChildPlace:assignChildIndex,i)}function createParamsFromPlaces(e){return Array.isArray(e)?e.reduce(assignChildIndex,{}):Object.assign({},e)}function assignChildPlace(e,n){return n.data&&n.data.attrs&&n.data.attrs.place&&(e[n.data.attrs.place]=n),e}function assignChildIndex(e,n,i){return e[i]=n,e}function vnodeHasPlaceAttribute(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var numberComponent={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(n,i){var o=i.props,s=i.parent,d=i.data,p=s.$i18n;if(!p)return null;var _=null,b=null;isString$1(o.format)?_=o.format:isObject$1(o.format)&&(o.format.key&&(_=o.format.key),b=Object.keys(o.format).reduce(function(T,C){var P;return includes(numberFormatKeys,C)?Object.assign({},T,(P={},P[C]=o.format[C],P)):T},null));var y=o.locale||p.locale,x=p._ntp(o.value,y,_,b),w=x.map(function(T,C){var P,R=d.scopedSlots&&d.scopedSlots[T.type];return R?R((P={},P[T.type]=T.value,P.index=C,P.parts=x,P)):T.value}),v=!!o.tag&&o.tag!==!0||o.tag===!1?o.tag:"span";return v?n(v,{attrs:d.attrs,class:d.class,staticClass:d.staticClass},w):w}};function bind(e,n,i){!assert(e,i)||t(e,n,i)}function update$d(e,n,i,o){if(!!assert(e,i)){var s=i.context.$i18n;localeEqual(e,i)&&looseEqual(n.value,n.oldValue)&&looseEqual(e._localeMessage,s.getLocaleMessage(s.locale))||t(e,n,i)}}function unbind(e,n,i,o){var s=i.context;if(!s){warn("Vue instance does not exists in VNode context");return}var d=i.context.$i18n||{};!n.modifiers.preserve&&!d.preserveDirectiveContent&&(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}function assert(e,n){var i=n.context;return i?i.$i18n?!0:(warn("VueI18n instance does not exists in Vue instance"),!1):(warn("Vue instance does not exists in VNode context"),!1)}function localeEqual(e,n){var i=n.context;return e._locale===i.$i18n.locale}function t(e,n,i){var o,s,d=n.value,p=parseValue(d),_=p.path,b=p.locale,y=p.args,x=p.choice;if(!_&&!b&&!y){warn("value type not supported");return}if(!_){warn("`path` is required in v-t directive");return}var w=i.context;x!=null?e._vt=e.textContent=(o=w.$i18n).tc.apply(o,[_,x].concat(makeParams(b,y))):e._vt=e.textContent=(s=w.$i18n).t.apply(s,[_].concat(makeParams(b,y))),e._locale=w.$i18n.locale,e._localeMessage=w.$i18n.getLocaleMessage(w.$i18n.locale)}function parseValue(e){var n,i,o,s;return isString$1(e)?n=e:isPlainObject(e)&&(n=e.path,i=e.locale,o=e.args,s=e.choice),{path:n,locale:i,args:o,choice:s}}function makeParams(e,n){var i=[];return e&&i.push(e),n&&(Array.isArray(n)||isPlainObject(n))&&i.push(n),i}var Vue$1;function install(e,n){n===void 0&&(n={bridge:!1}),install.installed=!0,Vue$1=e,Vue$1.version&&Number(Vue$1.version.split(".")[0]),extend(Vue$1),Vue$1.mixin(defineMixin(n.bridge)),Vue$1.directive("t",{bind,update:update$d,unbind}),Vue$1.component(interpolationComponent.name,interpolationComponent),Vue$1.component(numberComponent.name,numberComponent);var i=Vue$1.config.optionMergeStrategies;i.i18n=function(o,s){return s===void 0?o:s}}var BaseFormatter=function(){this._caches=Object.create(null)};BaseFormatter.prototype.interpolate=function(n,i){if(!i)return[n];var o=this._caches[n];return o||(o=parse$1(n),this._caches[n]=o),compile(o,i)};var RE_TOKEN_LIST_VALUE=/^(?:\d)+/,RE_TOKEN_NAMED_VALUE=/^(?:\w)+/;function parse$1(e){for(var n=[],i=0,o="";i0)s--,o=IN_SUB_PATH,v[APPEND]();else{if(s=0,p===void 0||(p=formatSubPath(p),p===!1))return!1;v[PUSH]()}};function T(){var C=e[i+1];if(o===IN_SINGLE_QUOTE&&C==="'"||o===IN_DOUBLE_QUOTE&&C==='"')return i++,_="\\"+C,v[APPEND](),!0}for(;o!==null;)if(i++,d=e[i],!(d==="\\"&&T())){if(b=getPathCharType(d),w=pathStateMachine[o],y=w[b]||w.else||ERROR,y===ERROR||(o=y[0],x=v[y[1]],x&&(_=y[2],_=_===void 0?d:_,x()===!1)))return;if(o===AFTER_PATH)return n}}var I18nPath=function(){this._cache=Object.create(null)};I18nPath.prototype.parsePath=function(n){var i=this._cache[n];return i||(i=parse$1$1(n),i&&(this._cache[n]=i)),i||[]};I18nPath.prototype.getPathValue=function(n,i){if(!isObject$1(n))return null;var o=this.parsePath(i);if(o.length===0)return null;for(var s=o.length,d=n,p=0;p/,linkKeyMatcher=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,linkKeyPrefixMatcher=/^@(?:\.([a-zA-Z]+))?:/,bracketsMatcher=/[()]/g,defaultModifiers={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},defaultFormatter=new BaseFormatter,VueI18n=function(n){var i=this;n===void 0&&(n={}),!Vue$1&&typeof window<"u"&&window.Vue&&install(window.Vue);var o=n.locale||"en-US",s=n.fallbackLocale===!1?!1:n.fallbackLocale||"en-US",d=n.messages||{},p=n.dateTimeFormats||n.datetimeFormats||{},_=n.numberFormats||{};this._vm=null,this._formatter=n.formatter||defaultFormatter,this._modifiers=n.modifiers||{},this._missing=n.missing||null,this._root=n.root||null,this._sync=n.sync===void 0?!0:!!n.sync,this._fallbackRoot=n.fallbackRoot===void 0?!0:!!n.fallbackRoot,this._fallbackRootWithEmptyString=n.fallbackRootWithEmptyString===void 0?!0:!!n.fallbackRootWithEmptyString,this._formatFallbackMessages=n.formatFallbackMessages===void 0?!1:!!n.formatFallbackMessages,this._silentTranslationWarn=n.silentTranslationWarn===void 0?!1:n.silentTranslationWarn,this._silentFallbackWarn=n.silentFallbackWarn===void 0?!1:!!n.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new I18nPath,this._dataListeners=new Set,this._componentInstanceCreatedListener=n.componentInstanceCreatedListener||null,this._preserveDirectiveContent=n.preserveDirectiveContent===void 0?!1:!!n.preserveDirectiveContent,this.pluralizationRules=n.pluralizationRules||{},this._warnHtmlInMessage=n.warnHtmlInMessage||"off",this._postTranslation=n.postTranslation||null,this._escapeParameterHtml=n.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in n&&(this.__VUE_I18N_BRIDGE__=n.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(b,y){var x=Object.getPrototypeOf(i);if(x&&x.getChoiceIndex){var w=x.getChoiceIndex;return w.call(i,b,y)}var v=function(T,C){return T=Math.abs(T),C===2?T?T>1?1:0:1:T?Math.min(T,2):0};return i.locale in i.pluralizationRules?i.pluralizationRules[i.locale].apply(i,[b,y]):v(b,y)},this._exist=function(b,y){return!b||!y?!1:!!(!isNull(i._path.getPathValue(b,y))||b[y])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(d).forEach(function(b){i._checkLocaleMessage(b,i._warnHtmlInMessage,d[b])}),this._initVM({locale:o,fallbackLocale:s,messages:d,dateTimeFormats:p,numberFormats:_})},prototypeAccessors={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};VueI18n.prototype._checkLocaleMessage=function(n,i,o){var s=[],d=function(p,_,b,y){if(isPlainObject(b))Object.keys(b).forEach(function(v){var T=b[v];isPlainObject(T)?(y.push(v),y.push("."),d(p,_,T,y),y.pop(),y.pop()):(y.push(v),d(p,_,T,y),y.pop())});else if(isArray(b))b.forEach(function(v,T){isPlainObject(v)?(y.push("["+T+"]"),y.push("."),d(p,_,v,y),y.pop(),y.pop()):(y.push("["+T+"]"),d(p,_,v,y),y.pop())});else if(isString$1(b)){var x=htmlTagMatcher.test(b);if(x){var w="Detected HTML in message '"+b+"' of keypath '"+y.join("")+"' at '"+_+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";p==="warn"?warn(w):p==="error"&&error$1(w)}}};d(i,n,o,s)};VueI18n.prototype._initVM=function(n){var i=Vue$1.config.silent;Vue$1.config.silent=!0,this._vm=new Vue$1({data:n,__VUE18N__INSTANCE__:!0}),Vue$1.config.silent=i};VueI18n.prototype.destroyVM=function(){this._vm.$destroy()};VueI18n.prototype.subscribeDataChanging=function(n){this._dataListeners.add(n)};VueI18n.prototype.unsubscribeDataChanging=function(n){remove(this._dataListeners,n)};VueI18n.prototype.watchI18nData=function(){var n=this;return this._vm.$watch("$data",function(){for(var i=arrayFrom(n._dataListeners),o=i.length;o--;)Vue$1.nextTick(function(){i[o]&&i[o].$forceUpdate()})},{deep:!0})};VueI18n.prototype.watchLocale=function(n){if(n){if(!this.__VUE_I18N_BRIDGE__)return null;var o=this,s=this._vm;return this.vm.$watch("locale",function(d){s.$set(s,"locale",d),o.__VUE_I18N_BRIDGE__&&n&&(n.locale.value=d),s.$forceUpdate()},{immediate:!0})}else{if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",function(d){i.$set(i,"locale",d),i.$forceUpdate()},{immediate:!0})}};VueI18n.prototype.onComponentInstanceCreated=function(n){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(n,this)};prototypeAccessors.vm.get=function(){return this._vm};prototypeAccessors.messages.get=function(){return looseClone(this._getMessages())};prototypeAccessors.dateTimeFormats.get=function(){return looseClone(this._getDateTimeFormats())};prototypeAccessors.numberFormats.get=function(){return looseClone(this._getNumberFormats())};prototypeAccessors.availableLocales.get=function(){return Object.keys(this.messages).sort()};prototypeAccessors.locale.get=function(){return this._vm.locale};prototypeAccessors.locale.set=function(e){this._vm.$set(this._vm,"locale",e)};prototypeAccessors.fallbackLocale.get=function(){return this._vm.fallbackLocale};prototypeAccessors.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)};prototypeAccessors.formatFallbackMessages.get=function(){return this._formatFallbackMessages};prototypeAccessors.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e};prototypeAccessors.missing.get=function(){return this._missing};prototypeAccessors.missing.set=function(e){this._missing=e};prototypeAccessors.formatter.get=function(){return this._formatter};prototypeAccessors.formatter.set=function(e){this._formatter=e};prototypeAccessors.silentTranslationWarn.get=function(){return this._silentTranslationWarn};prototypeAccessors.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e};prototypeAccessors.silentFallbackWarn.get=function(){return this._silentFallbackWarn};prototypeAccessors.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e};prototypeAccessors.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};prototypeAccessors.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e};prototypeAccessors.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};prototypeAccessors.warnHtmlInMessage.set=function(e){var n=this,i=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,i!==e&&(e==="warn"||e==="error")){var o=this._getMessages();Object.keys(o).forEach(function(s){n._checkLocaleMessage(s,n._warnHtmlInMessage,o[s])})}};prototypeAccessors.postTranslation.get=function(){return this._postTranslation};prototypeAccessors.postTranslation.set=function(e){this._postTranslation=e};prototypeAccessors.sync.get=function(){return this._sync};prototypeAccessors.sync.set=function(e){this._sync=e};VueI18n.prototype._getMessages=function(){return this._vm.messages};VueI18n.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats};VueI18n.prototype._getNumberFormats=function(){return this._vm.numberFormats};VueI18n.prototype._warnDefault=function(n,i,o,s,d,p){if(!isNull(o))return o;if(this._missing){var _=this._missing.apply(null,[n,i,s,d]);if(isString$1(_))return _}if(this._formatFallbackMessages){var b=parseArgs.apply(void 0,d);return this._render(i,p,b.params,i)}else return i};VueI18n.prototype._isFallbackRoot=function(n){return(this._fallbackRootWithEmptyString?!n:isNull(n))&&!isNull(this._root)&&this._fallbackRoot};VueI18n.prototype._isSilentFallbackWarn=function(n){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(n):this._silentFallbackWarn};VueI18n.prototype._isSilentFallback=function(n,i){return this._isSilentFallbackWarn(i)&&(this._isFallbackRoot()||n!==this.fallbackLocale)};VueI18n.prototype._isSilentTranslationWarn=function(n){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(n):this._silentTranslationWarn};VueI18n.prototype._interpolate=function(n,i,o,s,d,p,_){if(!i)return null;var b=this._path.getPathValue(i,o);if(isArray(b)||isPlainObject(b))return b;var y;if(isNull(b))if(isPlainObject(i)){if(y=i[o],!(isString$1(y)||isFunction(y)))return null}else return null;else if(isString$1(b)||isFunction(b))y=b;else return null;return isString$1(y)&&(y.indexOf("@:")>=0||y.indexOf("@.")>=0)&&(y=this._link(n,i,y,s,"raw",p,_)),this._render(y,d,p,o)};VueI18n.prototype._link=function(n,i,o,s,d,p,_){var b=o,y=b.match(linkKeyMatcher);for(var x in y)if(!!y.hasOwnProperty(x)){var w=y[x],v=w.match(linkKeyPrefixMatcher),T=v[0],C=v[1],P=w.replace(T,"").replace(bracketsMatcher,"");if(includes(_,P))return b;_.push(P);var R=this._interpolate(n,i,P,s,d==="raw"?"string":d,d==="raw"?void 0:p,_);if(this._isFallbackRoot(R)){if(!this._root)throw Error("unexpected error");var j=this._root.$i18n;R=j._translate(j._getMessages(),j.locale,j.fallbackLocale,P,s,d,p)}R=this._warnDefault(n,P,R,s,isArray(p)?p:[p],d),this._modifiers.hasOwnProperty(C)?R=this._modifiers[C](R):defaultModifiers.hasOwnProperty(C)&&(R=defaultModifiers[C](R)),_.pop(),b=R?b.replace(w,R):b}return b};VueI18n.prototype._createMessageContext=function(n,i,o,s){var d=this,p=isArray(n)?n:[],_=isObject$1(n)?n:{},b=function(v){return p[v]},y=function(v){return _[v]},x=this._getMessages(),w=this.locale;return{list:b,named:y,values:n,formatter:i,path:o,messages:x,locale:w,linked:function(v){return d._interpolate(w,x[w]||{},v,null,s,void 0,[v])}}};VueI18n.prototype._render=function(n,i,o,s){if(isFunction(n))return n(this._createMessageContext(o,this._formatter||defaultFormatter,s,i));var d=this._formatter.interpolate(n,o,s);return d||(d=defaultFormatter.interpolate(n,o,s)),i==="string"&&!isString$1(d)?d.join(""):d};VueI18n.prototype._appendItemToChain=function(n,i,o){var s=!1;return includes(n,i)||(s=!0,i&&(s=i[i.length-1]!=="!",i=i.replace(/!/g,""),n.push(i),o&&o[i]&&(s=o[i]))),s};VueI18n.prototype._appendLocaleToChain=function(n,i,o){var s,d=i.split("-");do{var p=d.join("-");s=this._appendItemToChain(n,p,o),d.splice(-1,1)}while(d.length&&s===!0);return s};VueI18n.prototype._appendBlockToChain=function(n,i,o){for(var s=!0,d=0;d0;)p[_]=arguments[_+4];if(!n)return"";var b=parseArgs.apply(void 0,p);this._escapeParameterHtml&&(b.params=escapeParams(b.params));var y=b.locale||i,x=this._translate(o,y,this.fallbackLocale,n,s,"string",b.params);if(this._isFallbackRoot(x)){if(!this._root)throw Error("unexpected error");return(d=this._root).$t.apply(d,[n].concat(p))}else return x=this._warnDefault(y,n,x,s,p,"string"),this._postTranslation&&x!==null&&x!==void 0&&(x=this._postTranslation(x,n)),x};VueI18n.prototype.t=function(n){for(var i,o=[],s=arguments.length-1;s-- >0;)o[s]=arguments[s+1];return(i=this)._t.apply(i,[n,this.locale,this._getMessages(),null].concat(o))};VueI18n.prototype._i=function(n,i,o,s,d){var p=this._translate(o,i,this.fallbackLocale,n,s,"raw",d);if(this._isFallbackRoot(p)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(n,i,d)}else return this._warnDefault(i,n,p,s,[d],"raw")};VueI18n.prototype.i=function(n,i,o){return n?(isString$1(i)||(i=this.locale),this._i(n,i,this._getMessages(),null,o)):""};VueI18n.prototype._tc=function(n,i,o,s,d){for(var p,_=[],b=arguments.length-5;b-- >0;)_[b]=arguments[b+5];if(!n)return"";d===void 0&&(d=1);var y={count:d,n:d},x=parseArgs.apply(void 0,_);return x.params=Object.assign(y,x.params),_=x.locale===null?[x.params]:[x.locale,x.params],this.fetchChoice((p=this)._t.apply(p,[n,i,o,s].concat(_)),d)};VueI18n.prototype.fetchChoice=function(n,i){if(!n||!isString$1(n))return null;var o=n.split("|");return i=this.getChoiceIndex(i,o.length),o[i]?o[i].trim():n};VueI18n.prototype.tc=function(n,i){for(var o,s=[],d=arguments.length-2;d-- >0;)s[d]=arguments[d+2];return(o=this)._tc.apply(o,[n,this.locale,this._getMessages(),null,i].concat(s))};VueI18n.prototype._te=function(n,i,o){for(var s=[],d=arguments.length-3;d-- >0;)s[d]=arguments[d+3];var p=parseArgs.apply(void 0,s).locale||i;return this._exist(o[p],n)};VueI18n.prototype.te=function(n,i){return this._te(n,this.locale,this._getMessages(),i)};VueI18n.prototype.getLocaleMessage=function(n){return looseClone(this._vm.messages[n]||{})};VueI18n.prototype.setLocaleMessage=function(n,i){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(n,this._warnHtmlInMessage,i),this._vm.$set(this._vm.messages,n,i)};VueI18n.prototype.mergeLocaleMessage=function(n,i){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(n,this._warnHtmlInMessage,i),this._vm.$set(this._vm.messages,n,merge(typeof this._vm.messages[n]<"u"&&Object.keys(this._vm.messages[n]).length?Object.assign({},this._vm.messages[n]):{},i))};VueI18n.prototype.getDateTimeFormat=function(n){return looseClone(this._vm.dateTimeFormats[n]||{})};VueI18n.prototype.setDateTimeFormat=function(n,i){this._vm.$set(this._vm.dateTimeFormats,n,i),this._clearDateTimeFormat(n,i)};VueI18n.prototype.mergeDateTimeFormat=function(n,i){this._vm.$set(this._vm.dateTimeFormats,n,merge(this._vm.dateTimeFormats[n]||{},i)),this._clearDateTimeFormat(n,i)};VueI18n.prototype._clearDateTimeFormat=function(n,i){for(var o in i){var s=n+"__"+o;!this._dateTimeFormatters.hasOwnProperty(s)||delete this._dateTimeFormatters[s]}};VueI18n.prototype._localizeDateTime=function(n,i,o,s,d,p){for(var _=i,b=s[_],y=this._getLocaleChain(i,o),x=0;x0;)i[o]=arguments[o+1];var s=this.locale,d=null,p=null;return i.length===1?(isString$1(i[0])?d=i[0]:isObject$1(i[0])&&(i[0].locale&&(s=i[0].locale),i[0].key&&(d=i[0].key)),p=Object.keys(i[0]).reduce(function(_,b){var y;return includes(dateTimeFormatKeys,b)?Object.assign({},_,(y={},y[b]=i[0][b],y)):_},null)):i.length===2&&(isString$1(i[0])&&(d=i[0]),isString$1(i[1])&&(s=i[1])),this._d(n,s,d,p)};VueI18n.prototype.getNumberFormat=function(n){return looseClone(this._vm.numberFormats[n]||{})};VueI18n.prototype.setNumberFormat=function(n,i){this._vm.$set(this._vm.numberFormats,n,i),this._clearNumberFormat(n,i)};VueI18n.prototype.mergeNumberFormat=function(n,i){this._vm.$set(this._vm.numberFormats,n,merge(this._vm.numberFormats[n]||{},i)),this._clearNumberFormat(n,i)};VueI18n.prototype._clearNumberFormat=function(n,i){for(var o in i){var s=n+"__"+o;!this._numberFormatters.hasOwnProperty(s)||delete this._numberFormatters[s]}};VueI18n.prototype._getNumberFormatter=function(n,i,o,s,d,p){for(var _=i,b=s[_],y=this._getLocaleChain(i,o),x=0;x0;)i[o]=arguments[o+1];var s=this.locale,d=null,p=null;return i.length===1?isString$1(i[0])?d=i[0]:isObject$1(i[0])&&(i[0].locale&&(s=i[0].locale),i[0].key&&(d=i[0].key),p=Object.keys(i[0]).reduce(function(_,b){var y;return includes(numberFormatKeys,b)?Object.assign({},_,(y={},y[b]=i[0][b],y)):_},null)):i.length===2&&(isString$1(i[0])&&(d=i[0]),isString$1(i[1])&&(s=i[1])),this._n(n,s,d,p)};VueI18n.prototype._ntp=function(n,i,o,s){if(!VueI18n.availabilities.numberFormat)return[];if(!o){var d=s?new Intl.NumberFormat(i,s):new Intl.NumberFormat(i);return d.formatToParts(n)}var p=this._getNumberFormatter(n,i,this.fallbackLocale,this._getNumberFormats(),o,s),_=p&&p.formatToParts(n);if(this._isFallbackRoot(_)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(n,i,o,s)}else return _||[]};Object.defineProperties(VueI18n.prototype,prototypeAccessors);var availabilities;Object.defineProperty(VueI18n,"availabilities",{get:function(){if(!availabilities){var n=typeof Intl<"u";availabilities={dateTimeFormat:n&&typeof Intl.DateTimeFormat<"u",numberFormat:n&&typeof Intl.NumberFormat<"u"}}return availabilities}});VueI18n.install=install;VueI18n.version="8.28.2";const VueI18n$1=VueI18n;Vue.use(VueI18n$1);const LocalLanguageKey="localeLanguage",i18n=new VueI18n$1,init$3=Vue.prototype._init;Vue.prototype._init=function(e){init$3.call(this,{i18n,...e})};const initLanguage=e=>(i18n.locale=e,i18n.fallbackLocale=e,i18n);function mergeLocaleMessage(e){return Object.keys(e).forEach(n=>{i18n.mergeLocaleMessage(n,e[n])}),i18n}const getLanguage=e=>{if(e)return e;const n=window.localStorage.getItem(LocalLanguageKey);return n||store.state.page.default_language},setLocal=e=>{if(console.log("setLocal",e),!i18n)return;const n=getLanguage(e);!n||(window.localStorage.setItem(LocalLanguageKey,n),i18n.locale=n)},generateContainerStyle=e=>{const{style:n,container_type:i,cfg:o,is_hide:s=!1}=e,{height:d,width:p,margin:_,position:b,zIndex:y,right:x="",left:w="",top:v="",bottom:T="",relative:C,flexDirection:P,justifyContent:R,alignItems:j}=n,{backgroundColor:Y,backgroundImage:U,backgroundImageSize:W=BackgroundSize.Auto,overflow:ne=OverflowType.Visible}=o,{right:we,left:J,top:oe,bottom:ue}=_,ge=s?{visibility:"hidden"}:{},xe={height:d,width:p,maxWidth:"inherit",backgroundColor:Y,backgroundImage:U?`url(${U})`:"",backgroundRepeat:"no-repeat",backgroundSize:backgroundSizeMap[W],display:"flex",flexDirection:P,justifyContent:R,alignItems:j,overflow:ne,...ge},Ae={marginRight:we,marginLeft:J,marginTop:oe,marginBottom:ue},Oe={left:i18n.locale==="ar"?x:w,right:i18n.locale==="ar"?w:x,top:v,bottom:T};if(i===ContainerType.Popup)return{...xe,position:C?"relative":""};const Pe={...xe,...Ae,zIndex:y,position:C&&b===Position.Static?"relative":b};return b&&b!==Position.Static?{...Pe,...Oe}:Pe},generateModStyle=e=>{const{style:n,is_hide:i=!1}=e||{},{height:o,width:s,margin:d,position:p,zIndex:_,right:b="",left:y="",top:x="",bottom:w=""}=n,{right:v,left:T,top:C,bottom:P}=d,j={height:o,width:s,maxWidth:"inherit",marginRight:v,marginLeft:T,marginTop:C,marginBottom:P,position:p,...i?{visibility:"hidden"}:{}},Y={zIndex:_,left:i18n.locale==="ar"?b:y,right:i18n.locale==="ar"?y:b,top:x,bottom:w};return p===Position.Absolute||p===Position.Fixed?{...j,...Y}:j},generatePageStyle=e=>{const{cut_img_flag:n,bg_img:i,height:o="100%",width:s="100%",max_width:d,backgroundImageSize:p}=e,_={height:o,width:s,margin:Number(d)&&d?"0 auto":"",maxWidth:Number(d)&&d?`${d}px`:"inherit",position:"relative",overflow:"auto"},b={backgroundImage:`url(${i})`,backgroundRepeat:"no-repeat",backgroundSize:p||"contain"};return!n&&i?{...b,..._}:_};function jumpPage(e){const{search:n,hash:i,pathname:o}=browser.location,s=new URLSearchParams(n),d=getCurrentUrlPagePath();e!==d&&(e?s.set(WandPathName,e):s.delete(WandPathName),browser.push({pathname:o,search:s.toString(),hash:i}))}function replacePage(e){const{search:n,hash:i,pathname:o}=browser.location,s=new URLSearchParams(n),d=getCurrentUrlPagePath();e!==d&&(e?s.set(WandPathName,e):s.delete(WandPathName),browser.replace({pathname:o,search:s.toString(),hash:i}))}function getCurrentUrlPagePath(){const{search:e}=browser.location;return new URLSearchParams(e).get(WandPathName)}var ComponentLoading=(e=>(e.NotExist="notExsit",e.Loading="loading",e.Wating="wating",e.Loaded="loaded",e.Rendering="rendering",e.Success="sucess",e.LoadFailed="loadfailed",e.RenderFailed="renderfailed",e))(ComponentLoading||{});const MaxFetch=6,cdnPathMap={prod:"https://gpts-dev-1312254802.cos.ap-singapore.myqcloud.com/wand",pre:"https://gpts-dev-1312254802.cos.ap-singapore.myqcloud.com/wand",dev:"https://gpts-dev-1312254802.cos.ap-singapore.myqcloud.com/wand",local:"https://gpts-dev-1312254802.cos.ap-singapore.myqcloud.com/wand"};class EventBus{constructor(){dt(this,"eventObject");this.eventObject=new Map}publish(n,i){const o=this.eventObject.get(n);if(!!o)for(const s of o)s(i)}subscribe(n,i){var o;this.eventObject.has(n)||this.eventObject.set(n,[]),(o=this.eventObject.get(n))==null||o.push(i)}}class CompenentController{constructor(){dt(this,"vueCompenents");dt(this,"eventBus");dt(this,"needLoadMods");dt(this,"loadingCount");this.vueCompenents={},this.needLoadMods=[],this.loadingCount=0,this.eventBus=new EventBus}async loadScript(n){const i=cdnPathMap.dev,o=this.computeCompenentName(n),{module_info:s}=n,{version:d,npm_name:p,npm_name_camel:_}=s,b=`${p}_${d}`;if(window[b])return;const y=toKebabCase(_),x=`${i}/component-umd/${y.replaceAll("-","_")}-${d}.js`;this.updateComponentStatus(o,ComponentLoading.Loading);try{const w=new Request(x),T=await(await fetch(w,{mode:"cors",method:"GET"})).text();new Function(T)(),this.updateComponentStatus(o,ComponentLoading.Loaded)}catch{this.updateComponentStatus(o,ComponentLoading.LoadFailed);return}}async register(n){const i=this.computeCompenentName(n);if(!this.checkExist(i))return this.vueCompenents[i]&&[ComponentLoading.Wating,ComponentLoading.Loading,ComponentLoading.Rendering,ComponentLoading.Loaded].includes(this.vueCompenents[i].loading)?new Promise(o=>{this.eventBus.subscribe(i,s=>{o(s)})}):(this.insertComponent(i),this.addTask(n),new Promise(o=>{this.eventBus.subscribe(i,s=>{o(s)})}))}async createVueCompenent(n){const i=this.computeCompenentName(n);return this.updateComponentStatus(i,ComponentLoading.Success),{}}updateComponentStatus(n,i){const o=this.vueCompenents[n];!o||(o.loading=i)}insertComponent(n,i={loading:ComponentLoading.Wating}){this.vueCompenents[n]||(this.vueCompenents[n]=i)}getComponentStatus(n){const i=this.computeCompenentName(n),o=this.vueCompenents[i];return o?o.loading:ComponentLoading.NotExist}computeCompenentName(n){const{module_info:i}=n,{version:o,npm_name_camel:s}=i,d=o.replaceAll(".","_");return`${s}_${d}`}checkExist(n){return this.vueCompenents[n]&&this.vueCompenents[n].loading===ComponentLoading.Success}addTask(n){this.needLoadMods.push(n),this.queueLoadScript()}async queueLoadScript(){if(this.loadingCount>=MaxFetch)return;const n=this.needLoadMods.shift();if(!n){this.eventBus.publish("waitTaskFinished",!0);return}return this.loadingCount+=1,this.loadScript(n).then(()=>{this.createVueCompenent(n),this.loadingCount-=1,this.queueLoadScript()})}async waitTaskFinished(){return this.loadingCount===0&&this.needLoadMods.length===0?!0:new Promise(n=>{this.eventBus.subscribe("waitTaskFinished",i=>{n(i)})})}}const gt=class extends CompenentController{static getInstance(){return gt.instance||(gt.instance=new gt),gt.instance}constructor(){super()}async createVueCompenent(n){const{module_info:i}=n,{npm_name:o,version:s}=i,d=this.computeCompenentName(n),p=`${o}_${s}`;if(!window[p])return console.error(`${p} is not exsit`),null;this.updateComponentStatus(d,ComponentLoading.Rendering);const _=Vue.component(d,window[p]);return this.updateComponentStatus(d,ComponentLoading.Success),this.eventBus.publish(d,ComponentLoading.Success),_}checkExist(n){return!!Vue.options.components[n]}};let VueCompenentController=gt;dt(VueCompenentController,"instance");const vueComponentController=VueCompenentController.getInstance(),IsLocalAndIde=[WandEnv.Ide,WandEnv.DEV].includes("online"),IsIde=[WandEnv.Ide].includes("online"),reportTlog=async e=>{const n="https://na-community.playerinfinite.com/api/gpts_community.report_svr.ReportSvr/ReportStatInfo",i=i18n.locale,o={...e,original_game_id:store.state.page.game_id.toString(),ext_content:JSON.stringify({...e.ext_content,env:isInIntlBrowser,url:location.href,open_id:getCookie("openid"),lang:i,client_type:store.getters["page/isMobile"]})};fetch(n,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json",...{"X-Language":i||"en","X-Gameid":"16","X-Source":"pc_web","X-Areaid":""}},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(o),keepalive:!0})};function handleVisible(e){const{showGroup:n=[],hideGroup:i=[]}=e||{};!n&&!i||store.dispatch("page/updateVisible",{showGroup:n,hideGroup:i})}function handleReport(e){}function handleShowReport(e){if(IsLocalAndIde||!e)return;const{event:n=[]}=e,i=n.filter(o=>o.type==="report");!i.length||i.forEach(o=>{const{report:s}=o;!s||!s.name||reportTlog({action:s.name,sub_action:"cm_vshow"})})}function handleEvent(e){}function handleJump(e){}function handleConfigEvent(e){if(!e)return;const{event:n=[]}=e;!Array.isArray(n)||n.forEach(i=>{const{type:o}=i,d={[EventType.Visible]:handleVisible,[EventType.Report]:handleReport,[EventType.Jump]:handleJump,[EventType.Event]:handleEvent}[o];!d||d(i[o])})}const _sfc_main$9={props:{item:{type:Object,default:()=>({})}},data(){return{isExist:!1}},computed:{componentName(){const{module_info:e}=this.item||{},{npm_name_camel:n,version:i}=e,o=i.replaceAll(".","_");return`${n}_${o}`},modeStyle(){return generateModStyle(this.item)},canRender(){return!0},modData(){return{...this.item.cfg,style:{width:"100%",height:"100%"}}},className(){return`${this.componentName}_${this.item.id}`}},watch:{componentName:{async handler(e){!e||(await vueComponentController.register(this.item),this.isExist=vueComponentController.checkExist(this.componentName))},immediate:!0}},async mounted(){},created(){},methods:{...Vuex.mapActions("page",["updateVisible"]),handleClick(){handleConfigEvent(this.item.event)},handleEvent(e){const{name:n,res:i}=e,{event:o}=this.item;if(!o)return;const{event:s=[]}=o,d=s.filter(p=>{var _;return p.type==="report"&&((_=p.report)==null?void 0:_.report)===n});!d.length||d.forEach(p=>{const{report:_}=p;if(!_||!_.name)return;const b={ret:i==null?void 0:i.code},y=/^Wand-\d{14}-[A-Za-z0-9]+$/g;reportTlog({action:_.name,sub_action:"cm_click",ext_content:y.test(_.report)?b:{}})})}}},mod_vue_vue_type_style_index_0_lang="";function normalizeComponent(e,n,i,o,s,d,p,_){var b=typeof e=="function"?e.options:e;n&&(b.render=n,b.staticRenderFns=i,b._compiled=!0),o&&(b.functional=!0),d&&(b._scopeId="data-v-"+d);var y;if(p?(y=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__<"u"&&(v=__VUE_SSR_CONTEXT__),s&&s.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(p)},b._ssrRegister=y):s&&(y=_?function(){s.call(this,(b.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(b.functional){b._injectStyles=y;var x=b.render;b.render=function(T,C){return y.call(C),x(T,C)}}else{var w=b.beforeCreate;b.beforeCreate=w?[].concat(w,y):[y]}return{exports:e,options:b}}var _sfc_render$9=function(){var n=this,i=n._self._c;return n.isExist?i("div",{staticClass:"modClass",style:n.modeStyle,attrs:{id:n.item.id,"mod-id":n.item.id,"order-id":n.item.order},on:{click:n.handleClick}},[i(n.componentName,n._b({tag:"component",on:{event:n.handleEvent}},"component",n.modData,!1))],1):n._e()},_sfc_staticRenderFns$9=[],__component__$9=normalizeComponent(_sfc_main$9,_sfc_render$9,_sfc_staticRenderFns$9,!1,null,null,null,null);const Mod=__component__$9.exports,container="",Container=Vue.defineComponent({props:{item:{type:Object,default:()=>({})}},computed:{...Vuex.mapGetters("page",["isVisible"]),...Vuex.mapGetters("config",["getModContainerByParent"]),child(){return this.getModContainerByParent(this.item.id)},containerStyle(){return isModConfig(this.item)?{}:generateContainerStyle(this.item)},canRender(){return this.isVisible(this.item.id)},shouldRender(){return this.item.cfg.defaultShow===ContainerShowType.Hidde},showStyle(){const{is_hide:e=!1}=this.item,n=e?{visibility:"hidden"}:{},i=this.canRender?{}:{display:"none"};return{...n,...i}}},watch:{canRender:{handler(e){!e||isModConfig(this.item)||handleShowReport(this.item.event)},immediate:!0}},render(){var n,i;if(!this.shouldRender&&!this.canRender)return;if(isModConfig(this.item))return Vue.h(Mod,{attrs:{item:this.item}});const{container_type:e}=this.item;if(e===ContainerType.Popup)return Vue.h("div",{attrs:{"container-id":this.item.id,id:this.item.id,"order-id":this.item.order},class:"popup",style:{zIndex:this.item.style.zIndex,...this.showStyle}},[Vue.h("div",{class:"popup-wrapper"},[Vue.h("div",{style:this.containerStyle},[(n=this.child)==null?void 0:n.map(o=>Vue.h(Container,{attrs:{item:o},key:o.id}))])])]);if(e===ContainerType.Module){const o={...this.containerStyle,...this.showStyle};return Vue.h("div",{attrs:{"container-id":this.item.id,id:this.item.id,"order-id":this.item.order},style:o},[(i=this.child)==null?void 0:i.map(s=>Vue.h(Container,{attrs:{item:s},key:s.id}))])}return null}}),_sfc_main$8={name:"Root",components:{Container},data(){return{orientation:"",modLoaded:!1}},computed:{...Vuex.mapState({page:"page"}),...Vuex.mapGetters("page",["isMobile","isMac"]),...Vuex.mapState("config",{loading:"loading"}),...Vuex.mapGetters("config",["getModContainerByParent"]),wrapperStyle(){return generatePageStyle(this.page)},modContainer(){return this.getModContainerByParent("")}},watch:{modLoaded(e){!e||this.$nextTick(()=>{this.$Fetch().checkLoginFunc(this.page.need_login),this.appendDevCode(),this.intelEvent(),this.initOrient(),this.mobileMacEvent(),this.report()})}},created(){},mounted(){this.waitModLoad()},updated(){},methods:{initOrient(){const{detectHorizontal:e,isNotice:n}=this.page;if(!(!e||!n))if("onorientationchange"in window){const i=debounce(this.orientationchange,500);window.addEventListener("orientationchange",i),this.orientationchange()}else{const i=debounce(this.resizeChange,500);window.addEventListener("resize",i),this.resizeChange()}},detectOrientNotice(e){const{colseEvent:n,openEvent:i}=this.page;if(!this.isMobile){this.$WG_ACT_BUS.$emit(n);return}e==="vertical"&&(this.orientation&&this.orientation!=="vertical"&&window.location.reload(),this.orientation="vertical",this.$nextTick(()=>{this.$WG_ACT_BUS.$emit(n)})),e==="horizontal"&&(this.orientation="horizontal",this.$nextTick(()=>{this.$WG_ACT_BUS.$emit(i)}))},orientationchange(){let e;(window.orientation===180||window.orientation===0)&&(e="vertical"),(window.orientation===90||window.orientation===-90)&&(e="horizontal");const n=window.outerWidth{const o=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.textContent=e,o.appendChild(s);const d=_=>{s.removeEventListener("load",d),n(_)},p=_=>{s.removeEventListener("error",p),i(_)};s.addEventListener("load",d),s.addEventListener("error",p),s.addEventListener("abort",p)})},report(){const{event:e}=this.page;handleShowReport(e)}}},root_vue_vue_type_style_index_0_lang="";var _sfc_render$8=function(){var n=this,i=n._self._c;return i("div",{style:n.wrapperStyle,attrs:{id:"-1","container-id":"-1"}},[n._l(n.modContainer,function(o){return[i("Container",{key:o.id,attrs:{item:o}}),i("div",{staticStyle:{display:"flex"}})]})],2)},_sfc_staticRenderFns$8=[],__component__$8=normalizeComponent(_sfc_main$8,_sfc_render$8,_sfc_staticRenderFns$8,!1,null,null,null,null);const Root=__component__$8.exports,_sfc_main$7={name:"App",components:{Root},data(){return{orientation:""}},computed:{...Vuex.mapState("config",{loading:"loading"})},watch:{loading:{handler(e){toggleLoading(e)},immediate:!0}},created(){},mounted(){},updated(){},methods:{}},App_vue_vue_type_style_index_0_lang="",App_vue_vue_type_style_index_1_lang="";var _sfc_render$7=function(){var n=this,i=n._self._c;return n.loading?n._e():i("root")},_sfc_staticRenderFns$7=[],__component__$7=normalizeComponent(_sfc_main$7,_sfc_render$7,_sfc_staticRenderFns$7,!1,null,null,null,null);const App=__component__$7.exports;var aegis_min={exports:{}};(function(e,n){(function(i,o){e.exports=o()})(commonjsGlobal,function(){var i,o;function s(u){this.name="__st"+(1e9*Math.random()>>>0)+i+"__",u!=null&&u.forEach(this.add,this),i+=1}Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(u){if(this===null)throw new TypeError('"this" is null or not defined');var h=Object(this),m=h.length>>>0;if(typeof u!="function")throw new TypeError("predicate must be a function");for(var E=arguments[1],O=0;O=h||u.sendNow&&0Z)return Ke[z]||Je(z),!1;K[re]=1+~~K[re],Ue[z]=K}return!0}))}),(H=this.lifeCycle.emit,se=this.config,function(G,q){var Z,z=se.logCreated;return typeof z=="function"?(Z=G.filter(function(K){return z(K)!==!1}),H("beforeWrite",Z),q(Z)):(H("beforeWrite",G),q(G))}),(V=this,setTimeout(function(){var Z=V.config,q=Z.pvUrl,G=q===void 0?"":q,q=Z.spa,Z=-1<["web-sdk","mp-sdk"].indexOf("web-sdk");G&&(Z&&!q||!Z)&&V.sendPipeline([function(z,K){K({url:G,type:_e.PV})}],_e.PV)(null)},100),function(G,q){q(G)}),(M=k=N=!1,D=[],(A=this).lifeCycle.on("onConfigChange",function(){I&&clearTimeout(I),I=setTimeout(function(){var G,q;!M&&A.config&&(M=!0,G=A.config.whiteListUrl,(q=G===void 0?"":G)&&A.sendPipeline([function(Z,z){z({url:q,type:_e.WHITE_LIST,success:function(K){k=!0;try{var re=K.data||JSON.parse(K),pe=re.retcode,Se=re.result,Re=Se===void 0?{}:Se,ve=(pe===0&&(N=Re.is_in_white_list,A.isWhiteList=N,0<=Re.rate)&&Re.rate<=1&&(A.config.random=Re.rate,A.isGetSample=!1),A.isWhiteList&&D.length?Pt(A)(D.splice(0),function(){}):!A.isWhiteList&&D.length&&(D.length=0),A.config.onWhitelist);typeof ve=="function"&&ve(N)}catch{}},fail:function(){k=!0}})}],_e.WHITE_LIST)(null),M=!1)},A.config.uin?50:500)}),A.lifeCycle.on("destroy",function(){D.length=0}),function(G,q){var Z;N||(Z=(Z=A.config)==null?void 0:Z.api)!=null&&Z.reportRequest?q(G.concat(D.splice(0)).map(function(z){return tt(z),z})):(Z=G.filter(function(z){return z.level!==Q.INFO&&z.level!==Q.API_RESPONSE?(tt(z),!0):(k||(D.push(z),200<=D.length&&(D.length=200)),!1)})).length&&q(Z)}),function(G,q){try{var Z=JSON.parse(JSON.stringify(G)),z=(ae.lifeCycle.emit("beforeReport",Z),ae.config.beforeReport);(G=typeof z=="function"?G.filter(function(K){return z(K)!==!1}):G).length&&q(G)}catch{}},Pt(this)]),this.eventPipeline=qe([ge(this,10),(O=this,function(G){O.sendPipeline([function(q,Z){var z=q.map(function(K){return{name:K.name,ext1:K.ext1||O.config.ext1||"",ext2:K.ext2||O.config.ext2||"",ext3:K.ext3||O.config.ext3||""}});Z({url:O.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(z)),type:_e.EVENT,log:q})}],_e.EVENT)(G)})]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=qe([ge(this,10),(E=this,function(G){return E.sendPipeline([function(q,Z){Z({url:E.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:q})),type:_e.CUSTOM,log:q})}],_e.CUSTOM)(G)})]),this.config=(m=this.config,(u=u.hostUrl)===void 0&&(u="https://aegis.qq.com"),m.url=m.url||u+"/collect",m.offlineUrl=m.offlineUrl||u+"/offline",m.whiteListUrl=m.whiteListUrl||u+"/collect/whitelist",m.pvUrl=m.pvUrl||u+"/collect/pv",m.eventUrl=m.eventUrl||u+"/collect/events",m.speedUrl=m.speedUrl||u+"/speed",m.customTimeUrl=m.customTimeUrl||u+"/speed/custom",m.performanceUrl=m.performanceUrl||u+"/speed/performance",m.webVitalsUrl=m.webVitalsUrl||u+"/speed/webvitals",m.setDataReportUrl=m.SetDataReportUrl||u+"/speed/miniProgramData",m),X.instances.push(this)}function ke(){return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,function(u){return(u^(16*Math.random()&15)>>u/4).toString(16)})}B.macos=function(){return be("mac")},B.ios=function(){return B.iphone()||B.ipod()||B.ipad()},B.iphone=function(){return!B.windows()&&be("iphone")},B.ipod=function(){return be("ipod")},B.ipad=function(){var u=navigator.platform==="MacIntel"&&1D&&m.isInFirstScreen(G.roots[Z])&&(D=G.rootsDomNum[Z],M=G.time,typeof((q=u.config)==null?void 0:q.pagePerformance)!="object"||(q=u.config.pagePerformance)!=null&&q.firstScreenInfo)&&(u.firstScreenInfo={element:G.roots[Z],timing:M})}),O.length=0,Object.keys(A).forEach(function(G){A[G]=A[G].map(function(q){var Z={tagName:q.tagName},z=q.attributes;if(!z)return q;for(var K=0;K{const s=o.indexOf(":"),d=o.slice(0,s).trim(),p=o.slice(s+1).trim();return i[d]=p,i},{}):{}}function parseQuery(e){return e?e.split("&").reduce((n,i)=>{const[o,s]=i.split("=");return o&&(n[o]=decodeURIComponent(s||"")),n},{}):{}}const global$1=(()=>{try{return window||{}}catch{return{}}})();function fallback(e,n,i){n in e||(e[n]=i)}fallback(global$1,"fetch",(e,n)=>new Promise((i,o)=>{if(!global$1.XMLHttpRequest)return o({name:"NotSupportedError",message:"Not support XMLHttpRequest."});const s=new XMLHttpRequest;s.onerror=o,s.onreadystatechange=()=>{s.readyState===4&&i({ok:s.status>=200&&s.status<=299,url:s.responseURL||e,type:(n==null?void 0:n.mode)||"basic",status:s.status,headers:parseHeaders(s.getAllResponseHeaders()),statusText:s.statusText,redirected:s.responseURL&&s.responseURL!==e,json:()=>JSON.parse(s.responseText)})},s.open((n==null?void 0:n.method)||"GET",e,!0),s.withCredentials=!!(n!=null&&n.credentials)&&(n==null?void 0:n.credentials)!=="omit";const d=(n==null?void 0:n.headers)||{};Object.keys(d).forEach(p=>{s.setRequestHeader(p,d[p])}),s.send(n==null?void 0:n.body)}));fallback(global$1,"WebSocket",class{constructor(){const n=new Error("Not support WebSocket.");throw n.name="NotSupportedError",n}send(){}close(){}});fallback(global$1,"TextEncoder",class{encode(n){const i=[];for(let o=0;o>6,128|s&63);else if(s<55296||s>=57344)i.push(224|s>>12,128|s>>6&63,128|s&63);else{const d=(s&1023)<<10,p=n.charCodeAt(++o)&1023;s=65536+(d|p),i.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63)}}return new Uint8Array(i)}});fallback(global$1,"TextDecoder",class{decode(n){const i=new Uint8Array(n),o=[];for(let s=0;s>10)+55296,_=(d&1023)+56320;o.push(String.fromCharCode(p,_))}}return o.join("")}});var AppId;(function(e){e[e.WEGAME=10001]="WEGAME"})(AppId||(AppId={}));var ClientType;(function(e){e[e.WEGAME_ANDROID=601]="WEGAME_ANDROID",e[e.WEGAME_IOS=602]="WEGAME_IOS",e[e.WEGAME_H5=603]="WEGAME_H5",e[e.WEGAME_MP=610]="WEGAME_MP",e[e.WEGAME_ELECTRON=611]="WEGAME_ELECTRON",e[e.WEGAME_PC_CLIENT=1e6]="WEGAME_PC_CLIENT",e[e.WEGAME_PC_WEB=1000005]="WEGAME_PC_WEB",e[e.WEGAME_PC_INGAME=1000515]="WEGAME_PC_INGAME"})(ClientType||(ClientType={}));const HOSTS={pc:{dev:"dev.wegame.com.cn",test:"test.wegame.com.cn",pre:"qa.wegame.com.cn",prod:"www.wegame.com.cn"},h5:{dev:"tt-m.wegame.com.cn",test:"t-m.wegame.com.cn",pre:"pre-m.wegame.com.cn",prod:"m.wegame.com.cn"},act:{dev:"dev.tgp.qq.com",test:"dev.tgp.qq.com",pre:"demoact.wegame.com.cn",prod:"act.wegame.com.cn"},aov:{dev:"tt-aov.wegame.com.cn",test:"t-m-asia.arena-buddy.com",pre:"pre-m-asia.arena-buddy.com",prod:"aov.wegame.com.cn"},login:{dev:"testlogin.wegame.qq.com",test:"testlogin.wegame.qq.com",pre:"login.wegame.qq.com",prod:"login.wegame.qq.com"},report:{dev:"t-report.wegame.com.cn",test:"t-report.wegame.com.cn",pre:"report.wegame.com.cn",prod:"report.wegame.com.cn"}};function hostToEnv(e){for(const n of Object.values(HOSTS))for(const i in n)if(n[i]===e)return i;return"prod"}function envToHosts(e){return e==="dev"&&(e="test"),Object.keys(HOSTS).reduce((i,o)=>(i[o]=HOSTS[o][e],i),{})}/*! js-cookie v3.0.5 | MIT */function assign(e){for(var n=1;n"u")){p=assign({},n,p),typeof p.expires=="number"&&(p.expires=new Date(Date.now()+p.expires*864e5)),p.expires&&(p.expires=p.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _="";for(var b in p)!p[b]||(_+="; "+b,p[b]!==!0&&(_+="="+p[b].split(";")[0]));return document.cookie=s+"="+e.write(d,s)+_}}function o(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var d=document.cookie?document.cookie.split("; "):[],p={},_=0;_{const e=+QUERY.client_type;if(ClientType[e])return e;if(detect.browser.name==="WeGame PC")return ClientType.WEGAME_PC_CLIENT;if(detect.browser.name==="WeGame APP")return ClientType.WEGAME_H5;if(detect.browser.name==="WeGame Electron")return ClientType.WEGAME_ELECTRON;const{pathname:n}=window.location;if(/^\/platform\/social_ingame/.test(n))return ClientType.WEGAME_PC_INGAME;if(/^\/platform\/social/.test(n))return ClientType.WEGAME_PC_WEB;if(/^\/app\/webibi\//.test(n)||/\/h5\//.test(n))return ClientType.WEGAME_H5;if(/\/pc\//.test(n))return ClientType.WEGAME_PC_WEB;const i=+cookie.get("client_type");return ClientType[i]?i:detect.device.type==="mobile"?ClientType.WEGAME_H5:ClientType.WEGAME_PC_WEB})();var storage={get(e){try{const n=window.localStorage.getItem(e)||"null";return JSON.parse(n)}catch(n){return console.warn("storage.get():",n),null}},set(e,n){try{window.localStorage.setItem(e,JSON.stringify(n))}catch(i){console.warn("storage.set():",i)}},remove(e){try{window.localStorage.removeItem(e)}catch(n){console.warn("storage.remove():",n)}},clear(){try{window.localStorage.clear()}catch(e){console.warn("storage.clear():",e)}}};const GameAegisKey=new Map([[29157,"zYWLZizDj7RG9d6aoR"],[29080,"dWmboSvoOJ09Wa7ZwW"],[15001,"EPkxdIr2YPk4W3LOEk"],[29134,"dWm5eIvo540XOZ7383"],[29185,"j4mqYuLl8x4OqPbe07"],[29175,"XVmeQHgd52qoqvx1jv"]]),aegisEnvMap={online:"production",gray:"gray",pre:"pre",preview:"daily",development:"local",demo:"test",others:"others"},update$c=(e,n)=>{if(IsLocalAndIde)return;const{gameId:i}=e;if(["-1",1e4].includes(i)||(n==null?void 0:n.gameId)===i)return;if(!i)throw new Error("gameId is not found");const o=GameAegisKey.get(Number(i));if(!o)throw new Error(`Dont have Aegis key of ${i}`);const s=cookie.get("openid"),{WAND_ENV:d="others"}={NODE_ENV:"production",WAND_ENV:"online",version:1711507075899},p=aegisEnvMap[d];console.log("getCookie openid",s,d,p),new Aegis({id:o,uin:s,reportApiSpeed:!0,reportAssetSpeed:!0,spa:!0,hostUrl:"https://rumt-sg.com",env:p})},depend$b=e=>{const{game_id:n}=e.page;return{gameId:n}},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,update:update$c,depend:depend$b},Symbol.toStringTag,{value:"Module"})),update$b=e=>{if(!e||!i18n.availableLocales.includes(e))return;const n=document.querySelector("html");!n||(n.style.direction=e!=="ar"?"ltr":"rtl")},depend$a=()=>i18n.locale,__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,update:update$b,depend:depend$a},Symbol.toStringTag,{value:"Module"})),depend$9=e=>{const{support_language_list:n,default_language:i}=e.page;return{support_language_list:n,default_language:i}},update$a=async e=>{},__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,depend:depend$9,update:update$a},Symbol.toStringTag,{value:"Module"})),update$9=e=>{const n=document.getElementsByTagName("meta"),{description:i,keywords:o}=e;for(let s=0;s{const{description:n,keywords:i}=e.page,o=n?i18n.t(n):"",s=i?i18n.t(i):"";return{description:o,keywords:s}},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,update:update$9,depend:depend$8},Symbol.toStringTag,{value:"Module"})),update$8=e=>{const{auto_width:n,design_width:i,max_width:o}=e,s=store.getters["page/isMobile"];let d="";if(n&&i&&i>0&&(d=`${100/i*100}vw`),!s&&o){const{clientWidth:_}=document.body,{num:b}=getNumUnit(o);_>b&&i&&i>0&&(d=`${100/i*b}px`)}const p=document.querySelector("html");!p||(p.style.fontSize=d)},depend$7=e=>{const{auto_width:n,design_width:i,max_width:o}=e.page;return{auto_width:n,design_width:i,max_width:o}},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,update:update$8,depend:depend$7},Symbol.toStringTag,{value:"Module"})),update$7=e=>{({NODE_ENV:"production",WAND_ENV:"online",version:1711507075899}).WAND_TYPE},depend$6=e=>{const{report:n=[],pageReport:i}=e.page,{mod:o=[]}=e.config;return{mod:o,report:n,pageReport:i}},__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,update:update$7,depend:depend$6},Symbol.toStringTag,{value:"Module"}));var rpc$1={},eventemitter3={exports:{}};(function(e){var n=Object.prototype.hasOwnProperty,i="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(i=!1));function s(b,y,x){this.fn=b,this.context=y,this.once=x||!1}function d(b,y,x,w,v){if(typeof x!="function")throw new TypeError("The listener must be a function");var T=new s(x,w||b,v),C=i?i+y:y;return b._events[C]?b._events[C].fn?b._events[C]=[b._events[C],T]:b._events[C].push(T):(b._events[C]=T,b._eventsCount++),b}function p(b,y){--b._eventsCount===0?b._events=new o:delete b._events[y]}function _(){this._events=new o,this._eventsCount=0}_.prototype.eventNames=function(){var y=[],x,w;if(this._eventsCount===0)return y;for(w in x=this._events)n.call(x,w)&&y.push(i?w.slice(1):w);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(x)):y},_.prototype.listeners=function(y){var x=i?i+y:y,w=this._events[x];if(!w)return[];if(w.fn)return[w.fn];for(var v=0,T=w.length,C=new Array(T);vn.counter)return this.queue.splice(o,0,n),[];return this.queue.push(n),[]},e.prototype.replayQueue=function(n){for(;this.queue.length;){var i=this.queue[0];if(i.counter>this.lastSequentialCall+1)return;n.push(this.queue.shift()),this.lastSequentialCall=i.counter}},e}();reorder.Reorder=Reorder;var types={};Object.defineProperty(types,"__esModule",{value:!0});function isRPCMessage(e){return(e.type==="method"||e.type==="reply")&&typeof e.counter=="number"}types.isRPCMessage=isRPCMessage;types.defaultRecievable={readMessages:function(e){return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}};var __extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])};return function(n,i){e(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(rpc$1,"__esModule",{value:!0});var eventemitter3_1=eventemitter3.exports,error_1=error,reorder_1=reorder,types_1=types;function objToError(e){return new error_1.RPCError(e.code,e.message,e.path)}var magicReadyCallId=-1,RPC=function(e){__extends(n,e);function n(i){var o=e.call(this)||this;return o.options=i,o.calls=Object.create(null),o.callCounter=0,o.reorder=new reorder_1.Reorder,o.listener=function(s){if(!(o.options.origin&&o.options.origin!=="*"&&s.origin!==o.options.origin)){var d;try{d=JSON.parse(s.data)}catch{return}if(!(!types_1.isRPCMessage(d)||d.serviceID!==o.options.serviceId)){if(o.isReadySignal(d)){var p=d.type==="method"?d.params:d.result;p&&p.protocolVersion?o.remoteProtocolVersion=p.protocolVersion:o.remoteProtocolVersion=o.remoteProtocolVersion,o.callCounter=0,o.reorder.reset(d.counter),o.emit("isReady",!0)}for(var _=0,b=o.reorder.append(d);_0){this.emit(i.method,i);return}this.post({type:"reply",serviceID:this.options.serviceId,id:i.id,error:{code:4003,message:'Unknown method name "'+i.method+'"'},result:null});break;case"reply":this.emit("recvReply",i),this.handleReply(i);break}},n}(eventemitter3_1.EventEmitter),RPC_1=rpc$1.RPC=RPC;let rpc;const update$6=e=>{if({NODE_ENV:"production",WAND_ENV:"online",version:1711507075899}.WAND_TYPE)return;rpc&&rpc.destroy();const{serviceId:n="wand"}=e;!(window!=null&&window.parent)||window.parent===window||(rpc=new RPC_1({target:window.parent,serviceId:n}),window.rpc=rpc)},depend$5=e=>{const{serviceId:n="wand"}=e.page;return{serviceId:n}},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,get rpc(){return rpc},update:update$6,depend:depend$5},Symbol.toStringTag,{value:"Module"})),update$5=e=>{document.title=e},depend$4=e=>{const{title:n}=e.page;return n?i18n.t(n):""},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,update:update$5,depend:depend$4},Symbol.toStringTag,{value:"Module"}));let vConsoleInstance;const update$4=async e=>{const{need_vconsole:n=!1}=e;if(!n){if(!vConsoleInstance)return;vConsoleInstance.destroy();return}const{default:i}=await __vitePreload(()=>import("./vconsole.min.ecf8fc89.js").then(o=>o.v),[],import.meta.url);vConsoleInstance=new i},depend$3=e=>{const{need_vconsole:n=!1}=e.page;return{need_vconsole:n}},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,update:update$4,depend:depend$3},Symbol.toStringTag,{value:"Module"})),update$3=async e=>{const{support_language_list:n=[],default_language:i}=e;if(n.length<1||!i)return;await importDefaultLanguage(i);const o=n.filter(s=>s!==i);o.length<1||importLanguages$1(o)},importDefaultLanguage=async e=>{initLanguage(e),await importLanguage(e)},importLanguage=async(e,n="page")=>{try{const i=`locales/${n}/${e}.js?v=${1711507075899}`,o=BasePath.current||"../",s=await __vitePreload(()=>import(`${o}${i}`),[],import.meta.url);mergeLocaleMessage({[e]:s.default})}catch(i){console.error(i)}},importLanguages$1=async(e,n="page")=>{for(const i of e)importLanguage(i,n)};async function initLocalLanguage(e){const{support_language_list:n,default_language:i}=e||store.state.page;await update$3({support_language_list:n,default_language:i})}async function importLanguages(e){const{support_language_list:n}=store.state.page;await importLanguage(i18n.locale,e);const i=n.filter(o=>o!==i18n.locale);i.length<1||importLanguages$1(i,e)}async function importModContainer(e){try{const n=BasePath.current||"./",o=await(await fetch(`${n}data/${e}.json?v=${1711507075899}`)).json(),{mod:s=[],container:d=[],child_page:p}=o;store.commit("config/setConfig",{mod:s,container:d}),store.dispatch("config/updateChildPage",p)}catch(n){console.error(n)}}async function updateUrlPath(e){const{childPagesRouter:n,page:i}=store.state.config;if(i!=null&&i.cfg.abtest)return;const o=getCurrentUrlPagePath(),s=n.find(y=>y.id===e);if(!s)return;const{path:d,usePath:p,id:_}=s;if(WandEnv.Preview!=="online"&&!p){replacePage("");return}const b=d||_;o!==b&&jumpPage(b)}const update$2=async e=>{const{child_page_id:n}=e;if(!n)return;const{childPages:i,childPagesRouter:o}=store.state.config;if(!o.find(p=>p.id===n))return;const d=i.find(p=>p.id===n);if(d){store.dispatch("config/updateChildPage",d);return}store.commit("config/setLoading",!0),updateUrlPath(n),await importLanguages(n),await importModContainer(n),store.commit("config/setLoading",!1)},depend$2=e=>{const{child_page_id:n}=e.config;return{child_page_id:n}},__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,update:update$2,depend:depend$2},Symbol.toStringTag,{value:"Module"}));browser.listen(({location:e,action:n})=>{const{childPagesRouter:i}=store.state.config,{search:o}=e,d=new URLSearchParams(o).get(WandPathName);computedChildPageId(i,d)});window.historys=browser;function computedChildPageId(e,n){const{child_page_id:i}=store.state.config,o=e.find(p=>p.path===n||p.id===n);if(!o){JumpHome(e);return}const{usePath:s,id:d}=o;if(WandEnv.Preview!=="online"&&!s){JumpHome(e);return}d!==i&&store.commit("config/setChildPageId",{child_page_id:d})}function JumpHome(e){const n=e.find(p=>p.isHome)||e[0];if(!n)return;const{usePath:i,path:o,id:s}=n;if(getCurrentUrlPagePath()&&!i){replacePage("");return}if(i){replacePage(`${o||s}`);return}store.commit("config/setChildPageId",{child_page_id:s})}async function initAccountApi(e,n){if(!e||!n){console.error("gameID or sdkEnvironment is null");return}const{default:i}=await __vitePreload(()=>import("./index.f0e6ab50.js").then(s=>s.i),[],import.meta.url),o=new i({env:IsTest?"test":n,gameID:e,langType:void 0,appID:void 0,accountPlatType:void 0});try{const s=await o.queryMyRegion();return!s||s.ret!==0||s==null?void 0:s.region}catch(s){console.log(s,"error");return}}async function getUnIntlRegion(e){var o;if(!e)return;const n="api/proxy_direct/account/Account/GetUserCountryCodeWithIP",i=`${e}${e.endsWith("/")?"":"/"}${n}`;try{const s=await fetch(i,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",keepalive:!0});if(s.status!==200){console.error(s);return}const d=await s.json();if(!d||d.code!==0){console.error(s);return}return(o=d==null?void 0:d.data)==null?void 0:o.code}catch(s){console.error(s);return}}async function handleAbtest(e=[],n=[]){if(!n||!e)return;const i=e.filter(_=>{const{pageId:b,isActivate:y}=_;if(!b||!y)return!1;const x=n.find(v=>v.id===b);return x?x.type===PlatformType.ALL?!0:store.getters["page/isMobile"]?x.type===PlatformType.H5:x.type===PlatformType.PC:!1}),o=i.find(_=>_.nationName||_.excludeNationName);let s=i;if(o){const{page:_}=store.state.config,b=await Promise.race([new Promise(async y=>{var x;try{let w=Number(_==null?void 0:_.game_id);IsTest&&w===1e4&&(w=29080);let v;w<15e3?v=await initAccountApi(w,_==null?void 0:_.cfg.abtestEnv)||"":v=await getUnIntlRegion(_==null?void 0:_.api_host)||"";const{default:T}=await __vitePreload(()=>import("./intlAreaCode.029a0b98.js"),[],import.meta.url),C=(x=T[v])==null?void 0:x.toLocaleLowerCase();y(C)}catch(w){console.log(w,"error"),y(void 0)}}),new Promise(y=>{setTimeout(()=>y(void 0),AbtestWaitTime)})]);b===void 0?s=i.filter(y=>y.isSafe):s=i.filter(y=>{if(y.excludeNationName.trim().toLocaleLowerCase().split(",").includes(b))return!1;const w=y.nationName.trim().toLocaleLowerCase().split(",");if(w.includes("all")||w.includes(b))return!0})}const d=s.reduce((_,b)=>_+b.weights,0);let p=Math.random()*d;for(let _=0;_{const{childPagesRouter:i=[]}=e;if(!i.length){const{childPagesRouter:p=[]}=n;p.length||store.commit("config/setLoading",!1);return}const{child_page_id:o,page:s}=store.state.config,d=getCurrentUrlPagePath();if(!o&&!d){if((s==null?void 0:s.cfg.abtest)&&!IsIde){const p=await handleAbtest(s==null?void 0:s.cfg.abtestConfig,i);if(p){store.commit("config/setChildPageId",{child_page_id:p});return}store.commit("config/setLoading",!1);return}JumpHome(i);return}o||computedChildPageId(i,getCurrentUrlPagePath()||"")},depend$1=e=>{const{childPagesRouter:n}=e.config;return{childPagesRouter:n}},__vite_glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,update:update$1,depend:depend$1},Symbol.toStringTag,{value:"Module"})),update=e=>{const n=document.getElementsByTagName("link"),{logo:i}=e;for(let o=0;o{const{logo:n}=e.page;return{logo:n}},__vite_glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,update,depend},Symbol.toStringTag,{value:"Module"})),initVconsole=async()=>{},init$1=()=>{const e=Object.assign({"./depend/initAegis.ts":__vite_glob_0_0$1,"./depend/initHtmlDirection.ts":__vite_glob_0_1,"./depend/initLocalLanguage.ts":__vite_glob_0_2,"./depend/initMeta.ts":__vite_glob_0_3,"./depend/initRem.ts":__vite_glob_0_4,"./depend/initReport.ts":__vite_glob_0_5,"./depend/initRpc.ts":__vite_glob_0_6,"./depend/initTitle.ts":__vite_glob_0_7,"./depend/initVconsole.ts":__vite_glob_0_8});Object.keys(e).forEach(s=>{const d=e[s],{depend:p,update:_}=d;store.watch(p,_,{immediate:!0})});const n=Object.assign({"./depend/immediate/watchChildPageId.ts":__vite_glob_1_0,"./depend/immediate/watchChildPagesRouter.ts":__vite_glob_1_1});Object.keys(n).forEach(s=>{const d=n[s],{depend:p,update:_}=d;store.watch(p,_,{immediate:!1})});const i=Object.assign({"./depend/unImmediate/initLogo.ts":__vite_glob_2_0});Object.keys(i).forEach(s=>{const d=i[s],{depend:p,update:_}=d;store.watch(p,_,{immediate:!1})});const o=Object.assign({"./base/initVconsole.ts":initVconsole});Object.keys(o).forEach(s=>{o[s]()})},BASEPATH="/render/vue/",page={game_id:29080,api_host:"https://sg-act.playerinfinite.com/",cfg:{title:"ff6d35e5-41b3-432b-b3ce-21a7a7ff10d4",keywords:"e535ff9c-31d0-4792-a1bb-b0e9bd541b0e",description:"7f528b65-8ccc-4ad9-846f-b275f55da098",bg_img:"",backgroundImageSize:"auto",logo:"",cut_img_flag:"",width:"100%",height:"100%",max_width:0,auto_width:!0,design_width:1920,font:"",need_login:!1,account_type:"1",login_params:{accountAppId:"",env:"sg",socialList:"",openLoginWithCode:!0,codeRegisterType:"manual",openLoginWithPwd:!0,loginSucess:"loginSucess",loginError:"loginError",registerSucess:"registerSucess",registerError:"registerError",reload:!0},bg_color:"",mobileEvent:"",macEvent:"",pcEvent:"",need_vconsole:!1,link_css:"",link_meta:"",link_js:`