tmagic-editor/playground/runtime/vue/page/assets/index-legacy-DCUTOevq.js
2026-03-19 03:41:09 +00:00

2 lines
86 KiB
JavaScript

(function(){System.register(["./src-legacy-BoMLmZn6.js"],function(_export,_context){var includeBooleanAttr,inject,defineAsyncComponent,reactive,unref,ref,onBeforeUnmount,defineComponent,openBlock,hyphenate,resolveDirective,createBlock,createRenderer,withDirectives,capitalize,camelize,extend$1,_defineProperty,getUrlParam,isString$1,callWithAsyncErrorHandling,isPageFragment,__exportAll,isArray$1,registerDataSourceOnDemand,DataSourceManager,isSpecialBooleanAttr,nextTick,replaceChildNode,isModelListener,isSymbol,isOn,isPage,src_default,isFunction$2,toLine,ObservedData,resolveDynamicComponent,__vite_style__,policy,tt,unsafeToTrustedHTML,svgNS,mathmlNS,doc,templateContainer,nodeOps,vtcKey,vShowOriginalDisplay,vShowHidden,CSS_VAR_TEXT,displayRE,importantRE,prefixes,prefixCache,xlinkNS,veiKey,optionsModifierRE,cachedNow,p,getNow,isNativeOn,patchProp,rendererOptions,renderer,createApp,segments,WildcardObject,ObjectPath,wasm,WASM_VECTOR_LEN,cachegetUint8Memory0,cachedTextEncoder,encodeString,defaultUpdateOptions,DeepState,ignoreFirstCall,DeepObservedData,scriptRel,assetsURL,seen,__vitePreload,components,datasources,plugins,toString,getPrototypeOf,iterator,toStringTag,kindOf,kindOfTest,typeOfTest,isArray,isUndefined,isArrayBuffer,isString,isFunction$1,isNumber,isObject,isBoolean,isPlainObject,isEmptyObject,isDate,isFile,isBlob,isFileList,isStream,isFormData,isURLSearchParams,isReadableStream,isRequest,isResponse,isHeaders,trim,_global,isContextDefined,extend,stripBOM,inherits,toFlatObject,endsWith,toArray,isTypedArray,forEachEntry,matchAll,isHTMLForm,toCamelCase,hasOwnProperty,isRegExp,reduceDescriptors,freezeMethods,toObjectSet,noop,toFiniteNumber,toJSONObject,isAsyncFn,isThenable,_setImmediate,asap,isIterable,utils_default,prototype$1,descriptors,predicates,prototype,InterceptorManager,transitional_default,URLSearchParams_default,FormData_default,Blob_default,browser_default,utils_exports,hasBrowserEnv,_navigator,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin,platform_default,defaults,ignoreDuplicateOf,parseHeaders_default,$internals,isValidHeaderName,AxiosHeaders,progressEventReducer,progressEventDecorator,asyncDecorator,isURLSameOrigin_default,cookies_default,headersToObject,resolveConfig_default,isXHRAdapterSupported,xhr_default,composeSignals,streamChunk,readBytes,readStream,trackStream,DEFAULT_CHUNK_SIZE,isFunction,globalFetchAPI,ReadableStream$1,TextEncoder$1,test,factory,seedCache,getFetch,adapter,knownAdapters,renderReason,isResolvedHandle,adapters_default,VERSION,validators$1,deprecatedWarnings,validator_default,validators,Axios,CancelToken,HttpStatusCode,axios,requestHandler,responseHandler,service,request_default,useDsl,App_vue_vue_type_script_setup_true_lang_default,App_default,getLocalConfig,vueApp,dsl,app;function patchClass(e,t,s){const r=e[vtcKey];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,s){const r=e.style,i=isString$1(s);let n=!1;if(s&&!i){if(t)if(isString$1(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==s[t]&&setStyle(r,t,"")}else for(const e in t)null==s[e]&&setStyle(r,e,"");for(const e in s)"display"===e&&(n=!0),setStyle(r,e,s[e])}else if(i){if(t!==s){const e=r[CSS_VAR_TEXT];e&&(s+=";"+e),r.cssText=s,n=displayRE.test(s)}}else t&&e.removeAttribute("style");vShowOriginalDisplay in e&&(e[vShowOriginalDisplay]=n?r.display:"",e[vShowHidden]&&(r.display="none"))}function setStyle(e,t,s){if(isArray$1(s))s.forEach(s=>setStyle(e,t,s));else if(null==s&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const r=autoPrefix(e,t);importantRE.test(s)?e.setProperty(hyphenate(r),s.replace(importantRE,""),"important"):e[r]=s}}function autoPrefix(e,t){const s=prefixCache[t];if(s)return s;let r=camelize(t);if("filter"!==r&&r in e)return prefixCache[t]=r;r=capitalize(r);for(let i=0;i<prefixes.length;i++){const s=prefixes[i]+r;if(s in e)return prefixCache[t]=s}return t}function patchAttr(e,t,s,r,i,n=isSpecialBooleanAttr(t)){r&&t.startsWith("xlink:")?null==s?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,s):null==s||n&&!includeBooleanAttr(s)?e.removeAttribute(t):e.setAttribute(t,n?"":isSymbol(s)?String(s):s)}function patchDOMProp(e,t,s,r,i){if("innerHTML"===t||"textContent"===t)return void(null!=s&&(e[t]="innerHTML"===t?unsafeToTrustedHTML(s):s));const n=e.tagName;if("value"===t&&"PROGRESS"!==n&&!n.includes("-")){const r="OPTION"===n?e.getAttribute("value")||"":e.value,i=null==s?"checkbox"===e.type?"on":"":String(s);return r===i&&"_value"in e||(e.value=i),null==s&&e.removeAttribute(t),void(e._value=s)}let o=!1;if(""===s||null==s){const r=typeof e[t];"boolean"===r?s=includeBooleanAttr(s):null==s&&"string"===r?(s="",o=!0):"number"===r&&(s=0,o=!0)}try{e[t]=s}catch(a){}o&&e.removeAttribute(i||t)}function addEventListener(e,t,s,r){e.addEventListener(t,s,r)}function removeEventListener(e,t,s,r){e.removeEventListener(t,s,r)}function patchEvent(e,t,s,r,i=null){const n=e[veiKey]||(e[veiKey]={}),o=n[t];if(r&&o)o.value=r;else{const[s,a]=parseName(t);r?addEventListener(e,s,n[t]=createInvoker(r,i),a):o&&(removeEventListener(e,s,o,a),n[t]=void 0)}}function parseName(e){let t;if(optionsModifierRE.test(e)){let s;for(t={};s=e.match(optionsModifierRE);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):hyphenate(e.slice(2)),t]}function createInvoker(e,t){const s=e=>{if(e._vts){if(e._vts<=s.attached)return}else e._vts=Date.now();callWithAsyncErrorHandling(patchStopImmediatePropagation(e,s.value),t,5,[e])};return s.value=e,s.attached=getNow(),s}function patchStopImmediatePropagation(e,t){if(isArray$1(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}function shouldSetAsProp(e,t,s,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&isNativeOn(t)&&isFunction$2(s));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!isNativeOn(t)||!isString$1(s))&&t in e}function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function resolveRootNamespace(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function normalizeContainer(e){return isString$1(e)?document.querySelector(e):e}function __awaiter(e,t,s,r){return new(s||(s=Promise))(function(i,n){function o(e){try{l(r.next(e))}catch(t){n(t)}}function a(e){try{l(r.throw(e))}catch(t){n(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s(function(e){e(t)})).then(o,a)}l((r=r.apply(e,t||[])).next())})}function Match(e,t,s="*"){if(e===s)return!0;segments.length=0;let r=0,i=0,n=0,o=0;for(let d=0,f=e.length;d<f;d+=1){const t=e[d];t===s&&(r+=1,d>o&&segments.push(e.substring(o,d)),segments.push(t),o=d+1)}if(o<e.length&&segments.push(e.substring(o)),r?(i=e.length-r,n=1/0):n=i=e.length,0===segments.length)return e===t;const a=t.length;if(a<i||a>n)return!1;let l=segments.length-1,u=t.length-1,c=!1;for(;;){const e=segments[l];if(l-=1,e===s)c=!0;else{const s=u+1-e.length,r=t.lastIndexOf(e,s);if(-1===r||r>s)return!1;if(c)u=r-1,c=!1;else{if(r!==s)return!1;u-=e.length}}if(0>l)break}return!0}function getUint8Memory0(){return null!==cachegetUint8Memory0&&cachegetUint8Memory0.buffer===wasm.memory.buffer||(cachegetUint8Memory0=new Uint8Array(wasm.memory.buffer)),cachegetUint8Memory0}function passStringToWasm0(e,t,s){if(void 0===s){const s=cachedTextEncoder.encode(e),r=t(s.length);return getUint8Memory0().subarray(r,r+s.length).set(s),WASM_VECTOR_LEN=s.length,r}let r=e.length,i=t(r);const n=getUint8Memory0();let o=0;for(;o<r;o++){const t=e.charCodeAt(o);if(t>127)break;n[i+o]=t}if(o!==r){0!==o&&(e=e.slice(o)),i=s(i,r,r=o+3*e.length);const t=getUint8Memory0().subarray(i+o,i+r);o+=encodeString(e,t).written}return WASM_VECTOR_LEN=o,i}function is_match(e,t){var s=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),r=WASM_VECTOR_LEN,i=passStringToWasm0(t,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),n=WASM_VECTOR_LEN;return 0!==wasm.is_match(s,r,i,n)}async function load(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(s){if("application/wasm"==e.headers.get("Content-Type"))throw s;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",s)}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}{const s=await WebAssembly.instantiate(e,t);return s instanceof WebAssembly.Instance?{instance:s,module:e}:s}}async function init(e){("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:s}=await load(await e,{});return wasm=t.exports,init.__wbindgen_wasm_module=s,wasm}function log(e,t){console.debug(e,t)}function getDefaultOptions(){return{delimiter:".",debug:!1,extraDebug:!1,useMute:!0,notRecursive:";",param:":",wildcard:"*",experimentalMatch:!1,queue:!1,defaultBulkValue:!0,useCache:!1,useSplitCache:!1,useIndicesCache:!1,maxSimultaneousJobs:1e3,maxQueueRuns:1e3,log:log,Promise:Promise}}function isObject$1(e){return e&&e.constructor?"Object"===e.constructor.name:"object"==typeof e&&null!==e}function bind(e,t){return function(){return e.apply(t,arguments)}}function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}function forEach(e,t,{allOwnKeys:s=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),isArray(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(isBuffer(e))return;const i=s?Object.getOwnPropertyNames(e):Object.keys(e),n=i.length;let o;for(r=0;r<n;r++)o=i[r],t.call(null,e[o],o,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const s=Object.keys(e);let r,i=s.length;for(;i-- >0;)if(r=s[i],t===r.toLowerCase())return r;return null}function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},s={},r=(r,i)=>{const n=e&&findKey(s,i)||i;isPlainObject(s[n])&&isPlainObject(r)?s[n]=merge(s[n],r):isPlainObject(r)?s[n]=merge({},r):isArray(r)?s[n]=r.slice():t&&isUndefined(r)||(s[n]=r)};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&forEach(arguments[i],r);return s}function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}function AxiosError(e,t,s,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}function isVisitable(e){return utils_default.isPlainObject(e)||utils_default.isArray(e)}function removeBrackets(e){return utils_default.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,s){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!s&&t?"["+e+"]":e}).join(s?".":""):t}function isFlatArray(e){return utils_default.isArray(e)&&!e.some(isVisitable)}function toFormData(e,t,s){if(!utils_default.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(s=utils_default.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils_default.isUndefined(t[e])})).metaTokens,i=s.visitor||u,n=s.dots,o=s.indexes,a=(s.Blob||"undefined"!=typeof Blob&&Blob)&&utils_default.isSpecCompliantForm(t);if(!utils_default.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(utils_default.isDate(e))return e.toISOString();if(utils_default.isBoolean(e))return e.toString();if(!a&&utils_default.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils_default.isArrayBuffer(e)||utils_default.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,s,i){let a=e;if(e&&!i&&"object"==typeof e)if(utils_default.endsWith(s,"{}"))s=r?s:s.slice(0,-2),e=JSON.stringify(e);else if(utils_default.isArray(e)&&isFlatArray(e)||(utils_default.isFileList(e)||utils_default.endsWith(s,"[]"))&&(a=utils_default.toArray(e)))return s=removeBrackets(s),a.forEach(function(e,r){!utils_default.isUndefined(e)&&null!==e&&t.append(!0===o?renderKey([s],r,n):null===o?s:s+"[]",l(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(i,s,n),l(e)),!1)}const c=[],d=Object.assign(predicates,{defaultVisitor:u,convertValue:l,isVisitable:isVisitable});if(!utils_default.isObject(e))throw new TypeError("data must be an object");return function e(s,r){if(!utils_default.isUndefined(s)){if(-1!==c.indexOf(s))throw Error("Circular reference detected in "+r.join("."));c.push(s),utils_default.forEach(s,function(s,n){!0===(!(utils_default.isUndefined(s)||null===s)&&i.call(t,s,utils_default.isString(n)?n.trim():n,r,d))&&e(s,r?r.concat(n):[n])}),c.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,s){if(!t)return e;const r=s&&s.encode||encode;utils_default.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let n;if(n=i?i(t,s):utils_default.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,s).toString(r),n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}function toURLEncodedForm(e,t){return toFormData(e,new platform_default.classes.URLSearchParams,{visitor:function(e,t,s,r){return platform_default.isNode&&utils_default.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils_default.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function arrayToObject(e){const t={},s=Object.keys(e);let r;const i=s.length;let n;for(r=0;r<i;r++)n=s[r],t[n]=e[n];return t}function formDataToJSON(e){function t(e,s,r,i){let n=e[i++];if("__proto__"===n)return!0;const o=Number.isFinite(+n),a=i>=e.length;return n=!n&&utils_default.isArray(r)?r.length:n,a?(utils_default.hasOwnProp(r,n)?r[n]=[r[n],s]:r[n]=s,!o):(r[n]&&utils_default.isObject(r[n])||(r[n]=[]),t(e,s,r[n],i)&&utils_default.isArray(r[n])&&(r[n]=arrayToObject(r[n])),!o)}if(utils_default.isFormData(e)&&utils_default.isFunction(e.entries)){const s={};return utils_default.forEachEntry(e,(e,r)=>{t(parsePropPath(e),r,s,0)}),s}return null}function stringifySafely(e,t,s){if(utils_default.isString(e))try{return(t||JSON.parse)(e),utils_default.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(s||JSON.stringify)(e)}function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils_default.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(e);)t[r[1]]=r[2];return t}function matchHeaderValue(e,t,s,r,i){return utils_default.isFunction(r)?r.call(this,t,s):(i&&(t=s),utils_default.isString(t)?utils_default.isString(r)?-1!==t.indexOf(r):utils_default.isRegExp(r)?r.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function buildAccessors(e,t){const s=utils_default.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+s,{value:function(e,s,i){return this[r].call(this,t,e,s,i)},configurable:!0})})}function transformData(e,t){const s=this||defaults,r=t||s,i=AxiosHeaders.from(r.headers);let n=r.data;return utils_default.forEach(e,function(e){n=e.call(s,n,i.normalize(),t?t.status:void 0)}),i.normalize(),n}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,s){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,s),this.name="CanceledError"}function settle(e,t,s){const r=s.config.validateStatus;s.status&&r&&!r(s.status)?t(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s)):e(s)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const s=new Array(e),r=new Array(e);let i,n=0,o=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=r[o];i||(i=l),s[n]=a,r[n]=l;let c=o,d=0;for(;c!==n;)d+=s[c++],c%=e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),l-i<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}function throttle(e,t){let s,r,i=0,n=1e3/t;const o=(t,n=Date.now())=>{i=n,s=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=n?o(e,t):(s=e,r||(r=setTimeout(()=>{r=null,o(s)},n-a)))},()=>s&&o(s)]}function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,s){let r=!isAbsoluteURL(t);return e&&(r||0==s)?combineURLs(e,t):t}function mergeConfig(e,t){t=t||{};const s={};function r(e,t,s,r){return utils_default.isPlainObject(e)&&utils_default.isPlainObject(t)?utils_default.merge.call({caseless:r},e,t):utils_default.isPlainObject(t)?utils_default.merge({},t):utils_default.isArray(t)?t.slice():t}function i(e,t,s,i){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function n(e,t){if(!utils_default.isUndefined(t))return r(void 0,t)}function o(e,t){return utils_default.isUndefined(t)?utils_default.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(s,i,n){return n in t?r(s,i):n in e?r(void 0,s):void 0}const l={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,s)=>i(headersToObject(e),headersToObject(t),0,!0)};return utils_default.forEach(Object.keys({...e,...t}),function(r){const n=l[r]||i,o=n(e[r],t[r],r);utils_default.isUndefined(o)&&n!==a||(s[r]=o)}),s}function getAdapter(e,t){e=utils_default.isArray(e)?e:[e];const{length:s}=e;let r,i;const n={};for(let o=0;o<s;o++){let s;if(r=e[o],i=r,!isResolvedHandle(r)&&(i=knownAdapters[(s=String(r)).toLowerCase()],void 0===i))throw new AxiosError(`Unknown adapter '${s}'`);if(i&&(utils_default.isFunction(i)||(i=i.get(t))))break;n[s||"#"+o]=i}if(!i){const e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError("There is no suitable adapter to dispatch the request "+(s?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i}function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters_default.getAdapter(e.adapter||defaults.adapter,e)(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders.from(t.headers),t},function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders.from(t.response.headers))),Promise.reject(t)})}function assertOptions(e,t,s){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const n=r[i],o=t[n];if(o){const t=e[n],s=void 0===t||o(t,n,e);if(!0!==s)throw new AxiosError("option "+n+" must be "+s,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==s)throw new AxiosError("Unknown option "+n,AxiosError.ERR_BAD_OPTION)}}function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils_default.isObject(e)&&!0===e.isAxiosError}function createInstance(e){const t=new Axios(e),s=bind(Axios.prototype.request,t);return utils_default.extend(s,Axios.prototype,t,{allOwnKeys:!0}),utils_default.extend(s,t,null,{allOwnKeys:!0}),s.create=function(t){return createInstance(mergeConfig(e,t))},s}function useComponent(e=""){let t,s,r;return"string"==typeof e?t=e:({componentType:t,app:s}=e),t&&""!==t||(t="container"),s||(s=inject("app")),r=s?.resolveComponent(t),r||t.startsWith("magic-ui-")||(t=`magic-ui-${toLine(t)}`,r=s?.resolveComponent(t)),r??t}return _export("t",useComponent),{setters:[function(e){includeBooleanAttr=e.$,inject=e.A,defineAsyncComponent=e.D,reactive=e.G,unref=e.J,ref=e.K,onBeforeUnmount=e.M,defineComponent=e.O,openBlock=e.P,hyphenate=e.Q,resolveDirective=e.R,createBlock=e.S,createRenderer=e.T,withDirectives=e.U,capitalize=e.X,camelize=e.Y,extend$1=e.Z,_defineProperty=e._,getUrlParam=e.a,isString$1=e.at,callWithAsyncErrorHandling=e.b,isPageFragment=e.c,__exportAll=e.dt,isArray$1=e.et,registerDataSourceOnDemand=e.g,DataSourceManager=e.h,isSpecialBooleanAttr=e.it,nextTick=e.j,replaceChildNode=e.l,isModelListener=e.nt,isSymbol=e.ot,isOn=e.rt,isPage=e.s,src_default=e.t,isFunction$2=e.tt,toLine=e.u,ObservedData=e.v,resolveDynamicComponent=e.z}],execute:function(){if(__vite_style__=document.createElement("style"),__vite_style__.textContent='html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;vertical-align:baseline;border:0;margin:0;padding:0}:focus{outline:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none}input[type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]::-webkit-search-results-button{-webkit-appearance:none;-moz-appearance:none}input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none}input[type=search]{-webkit-appearance:none;-moz-appearance:none;box-sizing:content-box}textarea{vertical-align:top;resize:vertical;overflow:auto}audio,canvas,video{max-width:100%}audio:not([controls]){height:0;display:none}[hidden]{display:none}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:100%}a:focus{outline:thin dotted}a:active,a:hover{outline:0}img{-ms-interpolation-mode:bicubic;border:0}figure,form{margin:0}button,input{line-height:normal}button,select{text-transform:none}button[disabled],html input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner{border:0;padding:0}input::-moz-focus-inner{border:0;padding:0}textarea{vertical-align:top;overflow:auto}table{border-collapse:collapse;border-spacing:0}html,button,input,select,textarea{color:#222}::selection{text-shadow:none;background:#b3d4fc}img{vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.chromeframe{color:#000;background:#ccc;margin:.2em 0;padding:.2em 0}\n/*$vite$:1*/',document.head.appendChild(__vite_style__),function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const s of e)if("childList"===s.type)for(const e of s.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}(),policy=void 0,tt="undefined"!=typeof window&&window.trustedTypes,tt)try{policy=tt.createPolicy("vue",{createHTML:e=>e})}catch(e){}var cache,TypedArray,setImmediateSupported,postMessageSupported,token,callbacks;unsafeToTrustedHTML=policy?e=>policy.createHTML(e):e=>e,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc="undefined"!=typeof document?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,r)=>{const i="svg"===t?doc.createElementNS(svgNS,e):"mathml"===t?doc.createElementNS(mathmlNS,e):s?doc.createElement(e,{is:s}):doc.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,r,i,n){const o=s?s.previousSibling:t.lastChild;if(i&&(i===n||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),i!==n&&(i=i.nextSibling););else{templateContainer.innerHTML=unsafeToTrustedHTML("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=templateContainer.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},vtcKey=Symbol("_vtc"),vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),CSS_VAR_TEXT=Symbol(""),displayRE=/(?:^|;)\s*display\s*:/,importantRE=/\s*!important$/,prefixes=["Webkit","Moz","ms"],prefixCache={},xlinkNS="http://www.w3.org/1999/xlink",veiKey=Symbol("_vei"),optionsModifierRE=/(?:Once|Passive|Capture)$/,cachedNow=0,p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now()),isNativeOn=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,patchProp=(e,t,s,r,i,n)=>{const o="svg"===i;"class"===t?patchClass(e,r,o):"style"===t?patchStyle(e,s,r):isOn(t)?isModelListener(t)||patchEvent(e,t,s,r,n):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):shouldSetAsProp(e,t,r,o))?(patchDOMProp(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||patchAttr(e,t,r,o,n,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&isString$1(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),patchAttr(e,t,r,o)):patchDOMProp(e,camelize(t),r,n,t)},rendererOptions=extend$1({patchProp:patchProp},nodeOps),createApp=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:s}=t;return t.mount=e=>{const r=normalizeContainer(e);if(!r)return;const i=t._component;isFunction$2(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const n=s(r,!1,resolveRootNamespace(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),n},t},segments=[],WildcardObject=class{constructor(e,t,s,r=void 0){this.obj=e,this.delimiter=t,this.wildcard=s,this.is_match=r}shortMatch(e,t){if(e===t)return!0;if(e===this.wildcard)return!0;if(this.is_match)return this.is_match(e,t);const s=e.indexOf(this.wildcard);if(s>-1){const r=e.substr(s+1);if(0===s||t.substring(0,s)===e.substring(0,s)){const e=r.length;return!(e>0)||t.substr(-e)===r}}return!1}match(e,t){return this.is_match?this.is_match(e,t):e===t||e===this.wildcard||t===this.wildcard||this.shortMatch(e,t)||Match(e,t,this.wildcard)}handleArray(e,t,s,r,i={}){let n=e.indexOf(this.delimiter,s),o=!1;-1===n&&(o=!0,n=e.length);const a=e.substring(s,n);let l=0;for(const u of t){const t=l.toString(),s=""===r?t:r+this.delimiter+l;(a===this.wildcard||a===t||this.shortMatch(a,t))&&(o?i[s]=u:this.goFurther(e,u,n+1,s,i)),l++}return i}handleObject(e,t,s,r,i={}){let n=e.indexOf(this.delimiter,s),o=!1;-1===n&&(o=!0,n=e.length);const a=e.substring(s,n);for(let l in t){l=l.toString();const s=""===r?l:r+this.delimiter+l;(a===this.wildcard||a===l||this.shortMatch(a,l))&&(o?i[s]=t[l]:this.goFurther(e,t[l],n+1,s,i))}return i}goFurther(e,t,s,r,i={}){return Array.isArray(t)?this.handleArray(e,t,s,r,i):this.handleObject(e,t,s,r,i)}get(e){return this.goFurther(e,this.obj,0,"")}},ObjectPath=class e{static get(e,t,s=!1){if(!t)return;let r=t;for(const i of e)if(i in r)r=r[i];else{if(!s)return;r[i]=Object.create({}),r=r[i]}return r}static set(t,s,r){if(!r)return;if(0===t.length){for(const e in r)delete r[e];for(const e in s)r[e]=s[e];return}const i=t.slice(),n=i.pop(),o=e.get(i,r,!0);return"object"==typeof o&&(o[n]=s),s}},WASM_VECTOR_LEN=0,cachegetUint8Memory0=null,cachedTextEncoder=new TextEncoder("utf-8"),encodeString="function"==typeof cachedTextEncoder.encodeInto?function(e,t){return cachedTextEncoder.encodeInto(e,t)}:function(e,t){const s=cachedTextEncoder.encode(e);return t.set(s),{read:e.length,written:s.length}},defaultUpdateOptions={only:[],source:"",debug:!1,data:void 0,queue:!1,force:!1},DeepState=class{constructor(e={},t={}){this.jobsRunning=0,this.updateQueue=[],this.subscribeQueue=[],this.listenersIgnoreCache=new WeakMap,this.is_match=null,this.destroyed=!1,this.queueRuns=0,this.groupId=0,this.namedGroups=[],this.numberGroups=[],this.traceId=0,this.traceMap=new Map,this.tracing=[],this.savedTrace=[],this.collection=null,this.collections=0,this.cache=new Map,this.splitCache=new Map,this.indices=new Map,this.indicesCount=new Map,this.lastExecs=new WeakMap,this.listeners=new Map,this.waitingListeners=new Map,this.options=Object.assign(Object.assign({},getDefaultOptions()),t),this.data=e,this.id=0,this.options.useCache?(this.pathGet=this.cacheGet,this.pathSet=this.cacheSet):(this.pathGet=ObjectPath.get,this.pathSet=ObjectPath.set),t.Promise?this.resolved=t.Promise.resolve():this.resolved=Promise.resolve(),this.muted=new Set,this.mutedListeners=new Set,this.scan=new WildcardObject(this.data,this.options.delimiter,this.options.wildcard),this.destroyed=!1}getDefaultListenerOptions(){return{bulk:!1,bulkValue:this.options.defaultBulkValue,debug:!1,source:"",data:void 0,queue:!1,group:!1}}cacheGet(e,t=this.data,s=!1){const r=e.join(this.options.delimiter),i=this.cache.get(r);if(i){const e=i.deref();if(e)return e}const n=ObjectPath.get(e,t,s);return(isObject$1(n)||Array.isArray(n))&&this.cache.set(r,new WeakRef(n)),n}cacheSet(e,t,s=this.data){const r=e.join(this.options.delimiter);return isObject$1(t)||Array.isArray(t)?this.cache.set(r,new WeakRef(t)):this.cache.delete(r),ObjectPath.set(e,t,s)}silentSet(e,t){return this.pathSet(this.split(e),t,this.data)}loadWasmMatcher(e){return __awaiter(this,void 0,void 0,function*(){yield init(e),this.is_match=is_match,this.scan=new WildcardObject(this.data,this.options.delimiter,this.options.wildcard,this.is_match)})}same(e,t){return(["number","string","undefined","boolean"].includes(typeof e)||null===e)&&t===e}getListeners(){return this.listeners}destroy(){this.destroyed=!0,this.data=void 0,this.listeners=new Map,this.waitingListeners=new Map,this.updateQueue=[],this.jobsRunning=0}match(e,t,s=!0){return this.is_match?this.is_match(e,t):e===t||(e===this.options.wildcard||t===this.options.wildcard||!(!s&&this.getIndicesCount(this.options.delimiter,e)<this.getIndicesCount(this.options.delimiter,t))&&this.scan.match(e,t))}getIndicesOf(e,t){if(this.options.useIndicesCache&&this.indices.has(t))return this.indices.get(t);const s=e.length;if(0==s)return[];let r,i=0,n=[];for(;(r=t.indexOf(e,i))>-1;)n.push(r),i=r+s;return this.options.useIndicesCache&&this.indices.set(t,n),n}getIndicesCount(e,t){if(this.options.useIndicesCache&&this.indicesCount.has(t))return this.indicesCount.get(t);const s=e.length;if(0==s)return 0;let r,i=0,n=0;for(;(r=t.indexOf(e,i))>-1;)n++,i=r+s;return this.options.useIndicesCache&&this.indicesCount.set(t,n),n}cutPath(e,t){if(""===t)return"";if((e=this.cleanNotRecursivePath(e))===(t=this.cleanNotRecursivePath(t)))return e;const s=this.getIndicesCount(this.options.delimiter,t),r=this.getIndicesOf(this.options.delimiter,e);return e.substring(0,r[s])}trimPath(e){return(e=this.cleanNotRecursivePath(e)).charAt(0)===this.options.delimiter?e.substr(1):e}split(e){if(""===e)return[];if(!this.options.useSplitCache)return e.split(this.options.delimiter);const t=this.splitCache.get(e);if(t)return t.slice();const s=e.split(this.options.delimiter);return this.splitCache.set(e,s.slice()),s}isWildcard(e){return e.includes(this.options.wildcard)||this.hasParams(e)}isNotRecursive(e){return e.endsWith(this.options.notRecursive)}cleanNotRecursivePath(e){return this.isNotRecursive(e)?e.substring(0,e.length-1):e}hasParams(e){return e.includes(this.options.param)}getParamsInfo(e){let t={replaced:"",original:e,params:{}},s=0,r=[];for(const i of this.split(e)){t.params[s]={original:i,replaced:"",name:""};const e=new RegExp(`\\${this.options.param}([^\\${this.options.delimiter}\\${this.options.param}]+)`,"g");let n=e.exec(i);n?(t.params[s].name=n[1],e.lastIndex=0,t.params[s].replaced=i.replace(e,this.options.wildcard),r.push(t.params[s].replaced),s++):(delete t.params[s],r.push(i),s++)}return t.replaced=r.join(this.options.delimiter),t}getParams(e,t){if(!e)return;const s=this.split(t),r={};for(const i in e.params){r[e.params[i].name]=s[i]}return r}waitForAll(e,t){const s={};for(let r of e)s[r]={dirty:!1},this.hasParams(r)&&(s[r].paramsInfo=this.getParamsInfo(r)),s[r].isWildcard=this.isWildcard(r),s[r].isRecursive=!this.isNotRecursive(r);return this.waitingListeners.set(e,{fn:t,paths:s}),t(s),function(){this.waitingListeners.delete(e)}}executeWaitingListeners(e){if(!this.destroyed)for(const t of this.waitingListeners.values()){const{fn:s,paths:r}=t;let i=0,n=0;for(let t in r){const s=r[t];let o=!1;s.isRecursive&&(e=this.cutPath(e,t)),s.isWildcard&&this.match(t,e)&&(o=!0),e===t&&(o=!0),o&&(s.dirty=!0),s.dirty&&i++,n++}i===n&&s(r)}}subscribeAll(e,t,s=this.getDefaultListenerOptions()){if(this.destroyed)return()=>{};let r=[],i=0,n=null;"boolean"==typeof s.group&&s.group?(this.groupId++,n=this.groupId,s.bulk=!0):"string"==typeof s.group&&(s.bulk=!0,n=s.group);for(const o of e)r.push(this.subscribe(o,t,s,{all:e,index:i,groupId:n})),i++;return function(){for(const e of r)e()}}getCleanListenersCollection(e={}){return Object.assign({listeners:new Map,isRecursive:!1,isWildcard:!1,hasParams:!1,match:void 0,paramsInfo:void 0,path:void 0,originalPath:void 0,count:0},e)}getCleanListener(e,t=this.getDefaultListenerOptions()){return{fn:e,options:Object.assign(Object.assign({},this.getDefaultListenerOptions()),t),groupId:null}}getListenerCollectionMatch(e,t,s){e=this.cleanNotRecursivePath(e);const r=this;return function(i,n=!1){let o=e;return t?i=r.cutPath(i,e):o=r.cutPath(r.cleanNotRecursivePath(e),i),n&&console.log("[getListenerCollectionMatch]",{listenerPath:e,scopedListenerPath:o,path:i,isRecursive:t,isWildcard:s}),!(!s||!r.match(o,i,t))||o===i}}getListenersCollection(e,t){if(this.listeners.has(e)){let s=this.listeners.get(e);return s.listeners.set(++this.id,t),t.id=this.id,s}const s=this.hasParams(e);let r;s&&(r=this.getParamsInfo(e));let i={isRecursive:!this.isNotRecursive(e),isWildcard:this.isWildcard(e),hasParams:s,paramsInfo:r,originalPath:e,path:s?r.replaced:e};i.isRecursive||(i.path=this.cleanNotRecursivePath(i.path));let n=this.getCleanListenersCollection(Object.assign(Object.assign({},i),{match:this.getListenerCollectionMatch(i.path,i.isRecursive,i.isWildcard)}));return this.id++,n.listeners.set(this.id,t),t.id=this.id,this.listeners.set(i.originalPath,n),n}subscribe(e,t,s=this.getDefaultListenerOptions(),r={all:[e],index:0,groupId:null}){if(this.destroyed)return()=>{};this.jobsRunning++;const i="subscribe";let n=this.getCleanListener(t,s);s.group&&(s.bulk=!0,"string"==typeof s.group?n.groupId=s.group:r.groupId&&(n.groupId=r.groupId)),this.listenersIgnoreCache.set(n,{truthy:[],falsy:[]});const o=this.getListenersCollection(e,n);s.debug&&console.log("[subscribe]",{listenerPath:e,options:s}),o.count++;let a=!0;if(n.groupId&&("string"==typeof n.groupId?this.namedGroups.includes(n.groupId)?a=!1:this.namedGroups.push(n.groupId):"number"==typeof n.groupId&&(this.numberGroups.includes(n.groupId)?a=!1:this.numberGroups.push(n.groupId))),a){const r=this.cleanNotRecursivePath(o.path),a=this.split(r);if(o.isWildcard){const a=this.scan.get(r);if(s.bulk){const r=[];for(const e in a)this.isMuted(e)||r.push({path:e,params:this.getParams(o.paramsInfo,e),value:a[e]});this.isMuted(t)||t(r,{type:i,listener:n,listenersCollection:o,path:{listener:e,update:void 0,resolved:void 0},options:s,params:void 0})}else for(const r in a)this.isMuted(r)||this.isMuted(t)||t(a[r],{type:i,listener:n,listenersCollection:o,path:{listener:e,update:void 0,resolved:this.cleanNotRecursivePath(r)},params:this.getParams(o.paramsInfo,r),options:s})}else this.isMuted(r)||this.isMuted(t)||t(this.pathGet(a,this.data),{type:i,listener:n,listenersCollection:o,path:{listener:e,update:void 0,resolved:this.cleanNotRecursivePath(e)},params:this.getParams(o.paramsInfo,r),options:s})}return this.debugSubscribe(n,o,e),this.jobsRunning--,this.unsubscribe(e,this.id)}unsubscribe(e,t){const s=this.listeners,r=s.get(e);return function(){r.listeners.delete(t),r.count--,0===r.count&&s.delete(e)}}runQueuedListeners(){if(!this.destroyed&&0!==this.subscribeQueue.length)if(0===this.jobsRunning){this.queueRuns=0;const e=[...this.subscribeQueue];for(let t=0,s=e.length;t<s;t++)e[t]();this.subscribeQueue.length=0}else{if(this.queueRuns++,this.queueRuns>=this.options.maxQueueRuns)throw this.queueRuns=0,new Error("Maximal number of queue runs exhausted.");Promise.resolve().then(()=>this.runQueuedListeners()).catch(e=>{throw e})}}getQueueNotifyListeners(e,t=[]){for(const s in e){if(this.isMuted(s))continue;let{single:r,bulk:i}=e[s];for(const e of r){let s=!1,r=e.listener.id+":"+e.eventInfo.path.resolved;e.eventInfo.path.resolved||(r=e.listener.id+":"+e.eventInfo.path.listener);for(const e of t)if(r===e.resolvedIdPath){s=!0;break}if(s)continue;const i=this.debugTime(e);if(!this.isMuted(e.listener.fn))if(e.listener.options.queue&&this.jobsRunning)this.subscribeQueue.push(()=>{e.listener.fn(e.value?e.value():void 0,e.eventInfo)});else{let s=e.listener.id+":"+e.eventInfo.path.resolved;e.eventInfo.path.resolved||(s=e.listener.id+":"+e.eventInfo.path.listener),t.push({id:e.listener.id,resolvedPath:e.eventInfo.path.resolved,resolvedIdPath:s,originalFn:e.listener.fn,fn:()=>{e.listener.fn(e.value?e.value():void 0,e.eventInfo)},options:e.listener.options,groupId:e.listener.groupId})}this.debugListener(i,e)}for(const e of i){let s=!1;for(const n of t)if(n.id===e.listener.id){s=!0;break}if(s)continue;const r=this.debugTime(e),i=[];for(const t of e.value)i.push(Object.assign(Object.assign({},t),{value:t.value?t.value():void 0}));if(!this.isMuted(e.listener.fn))if(e.listener.options.queue&&this.jobsRunning)this.subscribeQueue.push(()=>!this.jobsRunning&&(e.listener.fn(i,e.eventInfo),!0));else{let s=e.listener.id+":"+e.eventInfo.path.resolved;e.eventInfo.path.resolved||(s=e.listener.id+":"+e.eventInfo.path.listener),t.push({id:e.listener.id,resolvedPath:e.eventInfo.path.resolved,resolvedIdPath:s,originalFn:e.listener.fn,fn:()=>{e.listener.fn(i,e.eventInfo)},options:e.listener.options,groupId:e.listener.groupId})}this.debugListener(r,e)}}return Promise.resolve().then(()=>this.runQueuedListeners()),t}shouldIgnore(e,t){if(!e.options.ignore)return!1;for(const s of e.options.ignore){if(t.startsWith(s))return!0;if(this.is_match&&this.is_match(s,t))return!0;{const e=this.cutPath(t,s);if(this.match(s,e))return!0}}return!1}getSubscribedListeners(e,t,s,r="update",i=null){s=Object.assign(Object.assign({},defaultUpdateOptions),s);const n={};for(let[o,a]of this.listeners)if(a.match(e)){n[o]={single:[],bulk:[],bulkData:[]};const l=a.paramsInfo?this.getParams(a.paramsInfo,e):void 0,u=this.cutPath(e,o),c=a.isRecursive||a.isWildcard?()=>this.get(u):()=>t,d=[{value:c,path:e,params:l}];for(const t of a.listeners.values())this.shouldIgnore(t,e)?t.options.debug&&console.log("[getSubscribedListeners] Listener was not fired because it was ignored.",{listener:t,listenersCollection:a}):t.options.bulk?n[o].bulk.push({listener:t,listenersCollection:a,eventInfo:{type:r,listener:t,path:{listener:o,update:i||e,resolved:void 0},params:l,options:s},value:d}):n[o].single.push({listener:t,listenersCollection:a,eventInfo:{type:r,listener:t,path:{listener:o,update:i||e,resolved:this.cleanNotRecursivePath(e)},params:l,options:s},value:c})}else if(this.options.extraDebug){let t=!1;for(const s of a.listeners.values())s.options.debug&&(t=!0,console.log("[getSubscribedListeners] Listener was not fired because there was no match.",{listener:s,listenersCollection:a,updatePath:e}));t&&a.match(e,!0)}return n}notifySubscribedListeners(e,t,s,r="update",i=null){return this.getQueueNotifyListeners(this.getSubscribedListeners(e,t,s,r,i))}useBulkValue(e){for(const[t,s]of e.listeners){if(s.options.bulk&&s.options.bulkValue)return!0;if(!s.options.bulk)return!0}return!1}getNestedListeners(e,t,s,r="update",i=null){const n={},o={};for(let[a,l]of this.listeners){if(!l.isRecursive)continue;const u=this.cutPath(a,e);if(this.match(u,e)){n[a]={single:[],bulk:[]};const c=this.trimPath(a.substr(u.length)),d=this.useBulkValue(l);let f;d&&(f=o[c]?o[c]:new WildcardObject(t,this.options.delimiter,this.options.wildcard).get(c),o[c]=f);const p=l.paramsInfo?this.getParams(l.paramsInfo,e):void 0,h=[],m={};for(const[t,o]of l.listeners)if(d)for(const u in f){const c=()=>f[u],d=[e,u].join(this.options.delimiter),g={type:r,listener:o,listenersCollection:l,path:{listener:a,update:i||e,resolved:this.cleanNotRecursivePath(d)},params:p,options:s};this.shouldIgnore(o,e)||(o.options.bulk?(h.push({value:c,path:d,params:p}),m[t]=o):n[a].single.push({listener:o,listenersCollection:l,eventInfo:g,value:c}))}else{const u={type:r,listener:o,listenersCollection:l,path:{listener:a,update:i||e,resolved:void 0},params:p,options:s};if(this.shouldIgnore(o,e))continue;o.options.bulk?(h.push({value:void 0,path:void 0,params:p}),m[t]=o):n[a].single.push({listener:o,listenersCollection:l,eventInfo:u,value:void 0})}for(const t in m){const i=m[t],o={type:r,listener:i,listenersCollection:l,path:{listener:a,update:e,resolved:void 0},options:s,params:p};n[a].bulk.push({listener:i,listenersCollection:l,eventInfo:o,value:h})}}else if(this.options.extraDebug)for(const t of l.listeners.values())t.options.debug&&console.log("[getNestedListeners] Listener was not fired because there was no match.",{listener:t,listenersCollection:l,currentCutPath:u,updatePath:e})}return n}notifyNestedListeners(e,t,s,r="update",i,n=null){return this.getQueueNotifyListeners(this.getNestedListeners(e,t,s,r,n),i)}getNotifyOnlyListeners(e,t,s,r="update",i=null){const n={};if("object"!=typeof s.only||!Array.isArray(s.only)||void 0===s.only[0]||!this.canBeNested(t))return n;for(const o of s.only){const a=new WildcardObject(t,this.options.delimiter,this.options.wildcard).get(o);n[o]={bulk:[],single:[]};for(const t in a){const l=e+this.options.delimiter+t;for(const[u,c]of this.listeners){const d=c.paramsInfo?this.getParams(c.paramsInfo,l):void 0;if(this.match(u,l)){const f=()=>a[t],p=[{value:f,path:l,params:d}];for(const t of c.listeners.values()){const a={type:r,listener:t,listenersCollection:c,path:{listener:u,update:i||e,resolved:this.cleanNotRecursivePath(l)},params:d,options:s};this.shouldIgnore(t,e)||(t.options.bulk?n[o].bulk.some(e=>e.listener===t)||n[o].bulk.push({listener:t,listenersCollection:c,eventInfo:a,value:p}):n[o].single.push({listener:t,listenersCollection:c,eventInfo:a,value:f}))}}}}}return n}runQueue(e){const t=[];for(const s of e)s.options.group?t.includes(s.groupId)||(s.fn(),t.push(s.groupId)):s.fn()}sortAndRunQueue(e,t){e.sort(function(e,t){return e.id-t.id}),this.options.debug&&console.log(`[deep-state-observer] queue for ${t}`,e),this.runQueue(e)}notifyOnly(e,t,s,r="update",i=""){const n=this.getQueueNotifyListeners(this.getNotifyOnlyListeners(e,t,s,r,i));this.sortAndRunQueue(n,e)}canBeNested(e){return"object"==typeof e&&null!==e}getUpdateValues(e,t){let s=t;return"function"==typeof t&&(s=t(e)),{newValue:s,oldValue:e}}wildcardNotify(e,t){let s=[];for(const r of e)this.getQueueNotifyListeners(r,s);for(const r of t)this.executeWaitingListeners(r);return this.jobsRunning--,s}wildcardUpdate(e,t,s=defaultUpdateOptions,r=!1){++this.jobsRunning,s=Object.assign(Object.assign({},defaultUpdateOptions),s);const i=this.scan.get(e),n={};for(const u in i){const e=this.split(u),{oldValue:r,newValue:o}=this.getUpdateValues(i[u],t);this.same(o,r)&&!s.force||(this.pathSet(e,o,this.data),n[u]=o)}const o=[],a=[];for(const u in n){const t=n[u];s.only.length?o.push(this.getNotifyOnlyListeners(u,t,s,"update",e)):(o.push(this.getSubscribedListeners(u,t,s,"update",e)),this.canBeNested(t)&&o.push(this.getNestedListeners(u,t,s,"update",e))),s.debug&&this.options.log("Wildcard update",{path:u,newValue:t}),a.push(u)}if(r){const t=this;return function(){const s=t.wildcardNotify(o,a);t.sortAndRunQueue(s,e)}}const l=this.wildcardNotify(o,a);this.sortAndRunQueue(l,e)}runUpdateQueue(){if(!this.destroyed)for(;this.updateQueue.length&&this.updateQueue.length<this.options.maxSimultaneousJobs;){const e=this.updateQueue.shift();e.options.queue=!1,this.update(e.updatePath,e.fnOrValue,e.options,e.multi)}}updateNotify(e,t,s){const r=this.notifySubscribedListeners(e,t,s);this.canBeNested(t)&&this.notifyNestedListeners(e,t,s,"update",r),this.sortAndRunQueue(r,e),this.executeWaitingListeners(e)}updateNotifyAll(e){let t=[];for(const s of e){const e=s.newValue;if(this.tracing.length){const t=this.tracing[this.tracing.length-1],r=this.traceMap.get(t);r.changed.push({traceId:t,updatePath:s.updatePath,fnOrValue:e,options:s.options}),this.traceMap.set(t,r)}t=t.concat(this.notifySubscribedListeners(s.updatePath,e,s.options)),this.canBeNested(s.newValue)&&this.notifyNestedListeners(s.updatePath,e,s.options,"update",t)}this.runQueue(t)}updateNotifyOnly(e,t,s){this.notifyOnly(e,t,s),this.executeWaitingListeners(e)}update(e,t,s=Object.assign({},defaultUpdateOptions),r=!1){if(this.destroyed)return;if(this.collection)return this.collection.update(e,t,s);if(this.tracing.length){const r=this.tracing[this.tracing.length-1],i=this.traceMap.get(r);i.changed.push({traceId:r,updatePath:e,fnOrValue:t,options:s}),this.traceMap.set(r,i)}const i=this.jobsRunning;if((this.options.queue||s.queue)&&i){if(i>this.options.maxSimultaneousJobs)throw new Error("Maximal simultaneous jobs limit reached.");this.updateQueue.push({updatePath:e,fnOrValue:t,options:s,multi:r});const n=Promise.resolve().then(()=>{this.runUpdateQueue()});return r?function(){return n}:n}if(this.isWildcard(e))return this.wildcardUpdate(e,t,s,r);++this.jobsRunning;const n=this.split(e),o=this.pathGet(n,this.data);let{oldValue:a,newValue:l}=this.getUpdateValues(o,t);if(s.debug&&this.options.log(`Updating ${e} ${s.source?`from ${s.source}`:""}`,{oldValue:a,newValue:l}),this.same(l,a)&&!s.force)return--this.jobsRunning,r?function(){return l}:l;if(this.pathSet(n,l,this.data),null===(s=Object.assign(Object.assign({},defaultUpdateOptions),s)).only)return--this.jobsRunning,r?function(){}:l;if(s.only.length){if(--this.jobsRunning,r){const t=this;return function(){return t.updateNotifyOnly(e,l,s)}}return this.updateNotifyOnly(e,l,s),l}if(r){--this.jobsRunning;const t=this;return function(){return t.updateNotify(e,l,s)}}return this.updateNotify(e,l,s),--this.jobsRunning,l}multi(e=!1){if(this.destroyed)return{update(){return this},done(){},getStack:()=>[]};if(this.collection)return this.collection;const t=this,s=[],r=[];return{update(i,n,o=defaultUpdateOptions){if(e){const e=t.split(i);let r=n;const a=t.pathGet(e,t.data);"function"==typeof r&&(r=r(a)),t.pathSet(e,r,t.data),s.push({updatePath:i,newValue:r,options:o})}else r.push(t.update(i,n,o,!0));return this},done(){if(0===t.collections){if(e)t.updateNotifyAll(s);else for(const e of r)e();s.length=0}},getStack:()=>s}}collect(){return this.collections++,this.collection||(this.collection=this.multi(!0)),this.collection}executeCollected(){if(this.collections--,0===this.collections&&this.collection){const e=this.collection;this.collection=null,e.done()}}getCollectedCount(){return this.collections}getCollectedStack(){return this.collection?this.collection.getStack():[]}get(e=void 0){if(!this.destroyed)return void 0===e||""===e?this.data:this.isWildcard(e)?this.scan.get(e):this.pathGet(this.split(e),this.data)}last(e){let t=this.lastExecs.get(e);t||(t={calls:0},this.lastExecs.set(e,t));const s=++t.calls;this.resolved.then(()=>{s===t.calls&&(this.lastExecs.set(e,{calls:0}),e())})}isMuted(e){if(!this.options.useMute)return!1;if("function"==typeof e)return this.isMutedListener(e);for(const t of this.muted){const s=!this.isNotRecursive(t),r=this.trimPath(t);if(this.match(e,r))return!0;if(this.match(r,e))return!0;if(s){const s=this.cutPath(r,e);if(this.match(s,t))return!0;if(this.match(t,s))return!0}}return!1}isMutedListener(e){return this.mutedListeners.has(e)}mute(e){if("function"==typeof e)return this.mutedListeners.add(e);this.muted.add(e)}unmute(e){if("function"==typeof e)return this.mutedListeners.delete(e);this.muted.delete(e)}debugSubscribe(e,t,s){e.options.debug&&this.options.log("listener subscribed",{listenerPath:s,listener:e,listenersCollection:t})}debugListener(e,t){(t.eventInfo.options.debug||t.listener.options.debug)&&this.options.log("Listener fired",{time:Date.now()-e,info:t})}debugTime(e){return e.listener.options.debug||e.eventInfo.options.debug?Date.now():0}startTrace(e,t=null){this.traceId++;const s=this.traceId+":"+e;return this.traceMap.set(s,{id:s,sort:this.traceId,stack:this.tracing.map(e=>e),additionalData:t,changed:[]}),this.tracing.push(s),s}stopTrace(e){const t=this.traceMap.get(e);return this.tracing.pop(),this.traceMap.delete(e),t}saveTrace(e){const t=this.traceMap.get(e);return this.tracing.pop(),this.traceMap.delete(e),this.savedTrace.push(t),t}getSavedTraces(){const e=this.savedTrace.map(e=>e);return e.sort((e,t)=>e.sort-t.sort),this.savedTrace=[],e}},ignoreFirstCall=e=>{let t=0;return(...s)=>{if(0!==t)return e(...s);t+=1}},DeepObservedData=class extends ObservedData{constructor(e){super(),_defineProperty(this,"state",void 0),_defineProperty(this,"subscribers",new Map),_defineProperty(this,"update",(e,t)=>{this.state?.update(t??"",e)}),_defineProperty(this,"on",(e,t,s)=>{const r=this.state.subscribe(e,s?.immediate?t:ignoreFirstCall(t)),i=this.subscribers.get(e)??new Map;i.set(t,r),this.subscribers.set(e,i)}),_defineProperty(this,"off",(e,t)=>{const s=this.subscribers.get(e);s&&(s.get(t)?.(),s.delete(t))}),_defineProperty(this,"getData",e=>this.state?this.state?.get(e):{}),_defineProperty(this,"destroy",()=>{this.subscribers.forEach(e=>{e.forEach(e=>e())})}),this.state=new DeepState(e)}},scriptRel="modulepreload",assetsURL=function(e){return"/tmagic-editor/playground/runtime/vue/page/"+e},seen={},__vitePreload=function(e,t,s){let r=Promise.resolve();function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})},components={button:()=>__vitePreload(()=>_context.import("./src-legacy-B8_g3Xk_.js"),void 0),container:()=>__vitePreload(()=>_context.import("./Container-legacy-BDVSlzcK.js"),void 0),img:()=>__vitePreload(()=>_context.import("./src-legacy-Y54NmyDK.js"),void 0),"iterator-container":()=>__vitePreload(()=>_context.import("./IteratorContainer-legacy-Be9IMFWK.js"),void 0),overlay:()=>__vitePreload(()=>_context.import("./src-legacy-DEkB0OBi.js"),void 0),page:()=>__vitePreload(()=>_context.import("./src-legacy-kgRAh1UI.js"),void 0),"page-fragment":()=>__vitePreload(()=>_context.import("./PageFragment-legacy-D1VrRtFU.js"),void 0),"page-fragment-container":()=>__vitePreload(()=>_context.import("./PageFragmentContainer-legacy-DfBXQdDf.js"),void 0),qrcode:()=>__vitePreload(()=>_context.import("./src-legacy-DCOi3lS_.js"),void 0),text:()=>__vitePreload(()=>_context.import("./src-legacy-kTpdKl6r.js"),void 0)},datasources={},plugins={},({toString:toString}=Object.prototype),({getPrototypeOf:getPrototypeOf}=Object),({iterator:iterator,toStringTag:toStringTag}=Symbol),cache=Object.create(null),kindOf=e=>{const t=toString.call(e);return cache[t]||(cache[t]=t.slice(8,-1).toLowerCase())},kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,({isArray:isArray}=Array),isUndefined=typeOfTest("undefined"),isArrayBuffer=kindOfTest("ArrayBuffer"),isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||toStringTag in e||iterator in e)},isEmptyObject=t=>{if(!isObject(t)||isBuffer(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),_global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global,extend=(e,t,s,{allOwnKeys:r}={})=>(forEach(t,(t,r)=>{s&&isFunction$1(t)?e[r]=bind(t,s):e[r]=t},{allOwnKeys:r}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,s,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},toFlatObject=(e,t,s,r)=>{let i,n,o;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)o=i[n],r&&!r(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==s&&getPrototypeOf(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,s)=>{e=String(e),(void 0===s||s>e.length)&&(s=e.length),s-=t.length;const r=e.indexOf(t,s);return-1!==r&&r===s},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),isTypedArray=e=>TypedArray&&e instanceof TypedArray,forEachEntry=(e,t)=>{const s=(e&&e[iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},matchAll=(e,t)=>{let s;const r=[];for(;null!==(s=e.exec(t));)r.push(s);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,s){return t.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),r={};forEach(s,(s,i)=>{let n;!1!==(n=t(s,i,e))&&(r[i]=n||s)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(t,s)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(s))return!1;const r=e[s];isFunction$1(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")}))})},toObjectSet=(e,t)=>{const s={},r=e=>{e.forEach(e=>{s[e]=!0})};return isArray(e)?r(e):r(String(e).split(t)),s},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,toJSONObject=e=>{const t=new Array(10),s=(e,r)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[r]=e;const i=isArray(e)?[]:{};return forEach(e,(e,t)=>{const n=s(e,r+1);!isUndefined(n)&&(i[t]=n)}),t[r]=void 0,i}}return e};return s(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$1(_global.postMessage),_setImmediate=setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global.addEventListener("message",({source:e,data:t})=>{e===_global&&t===token&&callbacks.length&&callbacks.shift()()},!1),e=>{callbacks.push(e),_global.postMessage(token,"*")}):e=>setTimeout(e),asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate,isIterable=e=>null!=e&&isFunction$1(e[iterator]),utils_default={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable},utils_default.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_default.toJSONObject(this.config),code:this.code,status:this.status}}}),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,t,s,r,i,n)=>{const o=Object.create(prototype$1);utils_default.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return AxiosError.call(o,a,l,s,r,i),e&&null==o.cause&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",n&&Object.assign(o,n),o},predicates=utils_default.toFlatObject(utils_default,{},null,function(e){return/^is[A-Z]/.test(e)}),prototype=AxiosURLSearchParams.prototype,prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},InterceptorManager=class{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils_default.forEach(this.handlers,function(t){null!==t&&e(t)})}},transitional_default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams_default="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData_default="undefined"!=typeof FormData?FormData:null,Blob_default="undefined"!=typeof Blob?Blob:null,browser_default={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_default,FormData:FormData_default,Blob:Blob_default},protocols:["http","https","file","blob","url","data"]},utils_exports=__exportAll({hasBrowserEnv:()=>hasBrowserEnv,hasStandardBrowserEnv:()=>hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:()=>hasStandardBrowserWebWorkerEnv,navigator:()=>_navigator,origin:()=>origin}),hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost",platform_default={...utils_exports,...browser_default},defaults={transitional:transitional_default,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",r=s.indexOf("application/json")>-1,i=utils_default.isObject(e);if(i&&utils_default.isHTMLForm(e)&&(e=new FormData(e)),utils_default.isFormData(e))return r?JSON.stringify(formDataToJSON(e)):e;if(utils_default.isArrayBuffer(e)||utils_default.isBuffer(e)||utils_default.isStream(e)||utils_default.isFile(e)||utils_default.isBlob(e)||utils_default.isReadableStream(e))return e;if(utils_default.isArrayBufferView(e))return e.buffer;if(utils_default.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((n=utils_default.isFileList(e))||s.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(t){const s=this.transitional||defaults.transitional,r=s&&s.forcedJSONParsing,i="json"===this.responseType;if(utils_default.isResponse(t)||utils_default.isReadableStream(t))return t;if(t&&utils_default.isString(t)&&(r&&!this.responseType||i)){const r=!(s&&s.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform_default.classes.FormData,Blob:platform_default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}},utils_default.forEach(["delete","get","head","post","put","patch"],e=>{defaults.headers[e]={}}),ignoreDuplicateOf=utils_default.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_default=e=>{const t={};let s,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),s=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!s||t[s]&&ignoreDuplicateOf[s]||("set-cookie"===s?t[s]?t[s].push(r):t[s]=[r]:t[s]=t[s]?t[s]+", "+r:r)}),t},$internals=Symbol("internals"),isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),AxiosHeaders=class{constructor(e){e&&this.set(e)}set(e,t,s){const r=this;function i(e,t,s){const i=normalizeHeader(t);if(!i)throw new Error("header name must be a non-empty string");const n=utils_default.findKey(r,i);(!n||void 0===r[n]||!0===s||void 0===s&&!1!==r[n])&&(r[n||t]=normalizeValue(e))}const n=(e,t)=>utils_default.forEach(e,(e,s)=>i(e,s,t));if(utils_default.isPlainObject(e)||e instanceof this.constructor)n(e,t);else if(utils_default.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))n(parseHeaders_default(e),t);else if(utils_default.isObject(e)&&utils_default.isIterable(e)){let s,r,i={};for(const t of e){if(!utils_default.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(s=i[r])?utils_default.isArray(s)?[...s,t[1]]:[s,t[1]]:t[1]}n(i,t)}else null!=e&&i(t,e,s);return this}get(e,t){if(e=normalizeHeader(e)){const s=utils_default.findKey(this,e);if(s){const e=this[s];if(!t)return e;if(!0===t)return parseTokens(e);if(utils_default.isFunction(t))return t.call(this,e,s);if(utils_default.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const s=utils_default.findKey(this,e);return!(!s||void 0===this[s]||t&&!matchHeaderValue(this,this[s],s,t))}return!1}delete(e,t){const s=this;let r=!1;function i(e){if(e=normalizeHeader(e)){const i=utils_default.findKey(s,e);!i||t&&!matchHeaderValue(s,s[i],i,t)||(delete s[i],r=!0)}}return utils_default.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let s=t.length,r=!1;for(;s--;){const i=t[s];e&&!matchHeaderValue(this,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,s={};return utils_default.forEach(this,(r,i)=>{const n=utils_default.findKey(s,i);if(n)return t[n]=normalizeValue(r),void delete t[i];const o=e?formatHeader(i):String(i).trim();o!==i&&delete t[i],t[o]=normalizeValue(r),s[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils_default.forEach(this,(s,r)=>{null!=s&&!1!==s&&(t[r]=e&&utils_default.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(e=>s.set(e)),s}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function r(e){const r=normalizeHeader(e);t[r]||(buildAccessors(s,e),t[r]=!0)}return utils_default.isArray(e)?e.forEach(r):r(e),this}},AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils_default.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[s]=e}}}),utils_default.freezeMethods(AxiosHeaders),utils_default.inherits(CanceledError,AxiosError,{__CANCEL__:!0}),progressEventReducer=(e,t,s=3)=>{let r=0;const i=speedometer(50,250);return throttle(s=>{const n=s.loaded,o=s.lengthComputable?s.total:void 0,a=n-r,l=i(a);r=n,e({loaded:n,total:o,progress:o?n/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&n<=o?(o-n)/l:void 0,event:s,lengthComputable:null!=o,[t?"download":"upload"]:!0})},s)},progressEventDecorator=(e,t)=>{const s=null!=e;return[r=>t[0]({lengthComputable:s,total:e,loaded:r}),t[1]]},asyncDecorator=e=>(...t)=>utils_default.asap(()=>e(...t)),isURLSameOrigin_default=platform_default.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,platform_default.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(platform_default.origin),platform_default.navigator&&/(msie|trident)/i.test(platform_default.navigator.userAgent)):()=>!0,cookies_default=platform_default.hasStandardBrowserEnv?{write(e,t,s,r,i,n,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];utils_default.isNumber(s)&&a.push(`expires=${new Date(s).toUTCString()}`),utils_default.isString(r)&&a.push(`path=${r}`),utils_default.isString(i)&&a.push(`domain=${i}`),!0===n&&a.push("secure"),utils_default.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},headersToObject=e=>e instanceof AxiosHeaders?{...e}:e,resolveConfig_default=e=>{const t=mergeConfig({},e);let{data:s,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:n,headers:o,auth:a}=t;if(t.headers=o=AxiosHeaders.from(o),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),utils_default.isFormData(s))if(platform_default.hasStandardBrowserEnv||platform_default.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(utils_default.isFunction(s.getHeaders)){const e=s.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,s])=>{t.includes(e.toLowerCase())&&o.set(e,s)})}if(platform_default.hasStandardBrowserEnv&&(r&&utils_default.isFunction(r)&&(r=r(t)),r||!1!==r&&isURLSameOrigin_default(t.url))){const e=i&&n&&cookies_default.read(n);e&&o.set(i,e)}return t},isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest,xhr_default=isXHRAdapterSupported&&function(e){return new Promise(function(t,s){const r=resolveConfig_default(e);let i=r.data;const n=AxiosHeaders.from(r.headers).normalize();let o,a,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=AxiosHeaders.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle(function(e){t(e),h()},function(e){s(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(s(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new AxiosError(t&&t.message?t.message:"Network Error",AxiosError.ERR_NETWORK,e,m);r.event=t||null,s(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||transitional_default;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),s(new AxiosError(t,i.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,m)),m=null},void 0===i&&n.setContentType(null),"setRequestHeader"in m&&utils_default.forEach(n.toJSON(),function(e,t){m.setRequestHeader(t,e)}),utils_default.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=progressEventReducer(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([a,u]=progressEventReducer(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(o=t=>{m&&(s(!t||t.type?new CanceledError(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const b=parseProtocol(r.url);b&&-1===platform_default.protocols.indexOf(b)?s(new AxiosError("Unsupported protocol "+b+":",AxiosError.ERR_BAD_REQUEST,e)):m.send(i||null)})},composeSignals=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let s,r=new AbortController;const i=function(e){if(!s){s=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let n=t&&setTimeout(()=>{n=null,i(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t);const o=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=()=>utils_default.asap(o),a}},streamChunk=function*(e,t){let s=e.byteLength;if(!t||s<t)return void(yield e);let r,i=0;for(;i<s;)r=i+t,yield e.slice(i,r),i=r},readBytes=async function*(e,t){for await(const s of readStream(e))yield*streamChunk(s,t)},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:s}=await t.read();if(e)break;yield s}}finally{await t.cancel()}},trackStream=(e,t,s,r)=>{const i=readBytes(e,t);let n,o=0,a=e=>{n||(n=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let n=r.byteLength;s&&s(o+=n),e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=65536,({isFunction:isFunction}=utils_default),globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils_default.global),({ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils_default.global),test=(t,...s)=>{try{return!!t(...s)}catch(e){return!1}},factory=e=>{e=utils_default.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:s,Response:r}=e,i=t?isFunction(t):"function"==typeof fetch,n=isFunction(s),o=isFunction(r);if(!i)return!1;const a=i&&isFunction(ReadableStream$1),l=i&&("function"==typeof TextEncoder$1?(u=new TextEncoder$1,e=>u.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var u;const c=n&&a&&test(()=>{let e=!1;const t=new s(platform_default.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=o&&a&&test(()=>utils_default.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,s)=>{let r=t&&t[e];if(r)return r.call(t);throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,s)})});const p=async(e,t)=>{const r=utils_default.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:utils_default.isBlob(e)?e.size:utils_default.isSpecCompliantForm(e)?(await new s(platform_default.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:utils_default.isArrayBufferView(e)||utils_default.isArrayBuffer(e)?e.byteLength:(utils_default.isURLSearchParams(e)&&(e+=""),utils_default.isString(e)?(await l(e)).byteLength:void 0))(t):r};return async e=>{let{url:i,method:o,data:a,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:b,headers:y,withCredentials:_="same-origin",fetchOptions:v}=resolveConfig_default(e),w=t||fetch;b=b?(b+"").toLowerCase():"text";let E=composeSignals([l,u&&u.toAbortSignal()],h),O=null;const S=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let A;try{if(g&&c&&"get"!==o&&"head"!==o&&0!==(A=await p(y,a))){let e,t=new s(i,{method:"POST",body:a,duplex:"half"});if(utils_default.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,s]=progressEventDecorator(A,progressEventReducer(asyncDecorator(g)));a=trackStream(t.body,DEFAULT_CHUNK_SIZE,e,s)}}utils_default.isString(_)||(_=_?"include":"omit");const t=n&&"credentials"in s.prototype,l={...v,signal:E,method:o.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?_:void 0};O=n&&new s(i,l);let u=await(n?w(O,v):w(i,l));const h=d&&("stream"===b||"response"===b);if(d&&(m||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=utils_default.toFiniteNumber(u.headers.get("content-length")),[s,i]=m&&progressEventDecorator(t,progressEventReducer(asyncDecorator(m),!0))||[];u=new r(trackStream(u.body,DEFAULT_CHUNK_SIZE,s,()=>{i&&i(),S&&S()}),e)}b=b||"text";let R=await f[utils_default.findKey(f,b)||"text"](u,e);return!h&&S&&S(),await new Promise((t,s)=>{settle(t,s,{data:R,headers:AxiosHeaders.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:O})})}catch(R){if(S&&S(),R&&"TypeError"===R.name&&/Load failed|fetch/i.test(R.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,O),{cause:R.cause||R});throw AxiosError.from(R,R&&R.code,e,O)}}},seedCache=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:s,Request:r,Response:i}=t,n=[r,i,s];let o,a,l=n.length,u=seedCache;for(;l--;)o=n[l],a=u.get(o),void 0===a&&u.set(o,a=l?new Map:factory(t)),u=a;return a},adapter=getFetch(),knownAdapters={http:null,xhr:xhr_default,fetch:{get:getFetch}},utils_default.forEach(knownAdapters,(t,s)=>{if(t){try{Object.defineProperty(t,"name",{value:s})}catch(e){}Object.defineProperty(t,"adapterName",{value:s})}}),renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils_default.isFunction(e)||null===e||!1===e,adapters_default={getAdapter:getAdapter,adapters:knownAdapters},VERSION="1.13.2",validators$1={},["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}}),deprecatedWarnings={},validators$1.transitional=function(e,t,s){function r(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(s?". "+s:"")}return(s,i,n)=>{if(!1===e)throw new AxiosError(r(i," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,i,n)}},validators$1.spelling=function(e){return(t,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)},validator_default={assertOptions:assertOptions,validators:validators$1},validators=validator_default.validators,Axios=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,s){try{return await this._request(t,s)}catch(r){if(r instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const s=t.stack?t.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+s):r.stack=s}catch(e){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:s,paramsSerializer:r,headers:i}=t;void 0!==s&&validator_default.assertOptions(s,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=r&&(utils_default.isFunction(r)?t.paramsSerializer={serialize:r}:validator_default.assertOptions(r,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator_default.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let n=i&&utils_default.merge(i.common,i[t.method]);i&&utils_default.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=AxiosHeaders.concat(n,i);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...o),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let f=t;for(;d<c;){const e=o[d++],t=o[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{u=dispatchRequest.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}},utils_default.forEach(["delete","get","head","options"],function(e){Axios.prototype[e]=function(t,s){return this.request(mergeConfig(s||{},{method:e,url:t,data:(s||{}).data}))}}),utils_default.forEach(["post","put","patch"],function(e){function t(t){return function(s,r,i){return this.request(mergeConfig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}Axios.prototype[e]=t(),Axios.prototype[e+"Form"]=t(!0)}),CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const s=this;this.promise.then(e=>{if(!s._listeners)return;let t=s._listeners.length;for(;t-- >0;)s._listeners[t](e);s._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{s.subscribe(e),t=e}).then(e);return r.cancel=function(){s.unsubscribe(t)},r},e(function(e,r,i){s.reason||(s.reason=new CanceledError(e,r,i),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526},Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e}),axios=createInstance(defaults),axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders,axios.formToJSON=e=>formDataToJSON(utils_default.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters_default.getAdapter,axios.HttpStatusCode=HttpStatusCode,axios.default=axios,requestHandler=function(e){return e},responseHandler=function(e){return e},service=axios.create({withCredentials:!0,timeout:7e3}),service.interceptors.request.use(requestHandler),service.interceptors.response.use(responseHandler),request_default={install(e){e.provide("request",service)}},_export("n",useDsl=(e=inject("app"),t)=>{if(!e)throw new Error("useDsl must be used after MagicApp is created");const s=t?e.pageFragments.get(t):null,r=ref(t?s?.data:e.page?.data);if(t){const t=()=>{r.value=s?.data};e.on("dsl-change",t),onBeforeUnmount(()=>{e.off("dsl-change",t)})}else{const t=()=>{r.value=e.page?.data};e.on("page-change",t),onBeforeUnmount(()=>{e.off("page-change",t)})}const i=(i,n,o,a)=>{if(!(!i.length||t&&s?.data.id!==a||!t&&e.page?.data.id!==a)){for(const e of i)isPage(e)&&!t&&e.id===a||isPageFragment(e)&&t?r.value=e:replaceChildNode(reactive(e),[r.value]);nextTick(()=>{e.emit("replaced-node",{nodes:i,sourceId:n,...o})})}};return e.dataSourceManager&&(e.dataSourceManager.on("update-data",i),onBeforeUnmount(()=>{e.dataSourceManager.off("update-data",i)})),{app:e,pageConfig:r}}),App_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:"App",setup(e){const{pageConfig:t,app:s}=useDsl(),r=useComponent("page");return(e,s)=>(openBlock(),createBlock(resolveDynamicComponent(unref(r)),{config:unref(t)},null,8,["config"]))}}),App_default=App_vue_vue_type_script_setup_true_lang_default,getLocalConfig=()=>{const configStr=localStorage.getItem("magicDSL");if(!configStr)return[];try{return[eval(`(${configStr})`)]}catch(err){return console.error("Error parsing localStorage magicDSL:",err),[]}},DataSourceManager.registerObservedData(DeepObservedData),vueApp=createApp(App_default),vueApp.use(request_default),dsl=((getUrlParam("localPreview")?getLocalConfig():window.magicDSL)||[])[0]||{},app=new src_default({ua:window.navigator.userAgent,config:dsl,request:service,curPage:getUrlParam("page"),useMock:Boolean(getUrlParam("useMock"))}),app.setDesignWidth(app.env.isWeb?window.document.documentElement.getBoundingClientRect().width:375),Object.entries(components).forEach(([e,t])=>{app.registerComponent(e,defineAsyncComponent(t))}),Object.values(plugins).forEach(e=>{vueApp.use(e,{app:app})}),vueApp.provide("userRender",({h:e,type:t,props:s={},attrs:r={},style:i,className:n,on:o,directives:a=[]})=>{const l={...s,...r,style:i,class:n};if(o)for(const[u,c]of Object.entries(o))l[`on${u[0].toLocaleUpperCase()}${u.substring(1)}`]=c;return a.length?withDirectives(e(t,l),a.map(e=>[resolveDirective(e.name),e.value,e.modifiers])):e(t,l)}),registerDataSourceOnDemand(dsl,datasources).then(e=>{Object.entries(e).forEach(([e,t])=>{DataSourceManager.register(e,t)}),vueApp.config.globalProperties.app=app,vueApp.provide("app",app),vueApp.mount("#app")})}}})})();
//# sourceMappingURL=index-legacy-DCUTOevq.js.map