diff --git a/modules/backend/assets/ui/js/ajax/Handler.js b/modules/backend/assets/ui/js/ajax/Handler.js index 8cd2577c62..1b9a91fb8d 100644 --- a/modules/backend/assets/ui/js/ajax/Handler.js +++ b/modules/backend/assets/ui/js/ajax/Handler.js @@ -10,6 +10,7 @@ import { delegate } from 'jquery-events-to-dom-events'; * Functions: * - Adds the "render" jQuery event to Snowboard requests that widgets use to initialise. * - Ensures the CSRF token is included in requests. + * - Initialises controls within AJAX-changed partials. * * @copyright 2021 Winter. * @author Ben Thomson @@ -23,6 +24,7 @@ export default class Handler extends Snowboard.Singleton { listens() { return { ready: 'ready', + ajaxUpdate: 'onAjaxUpdate', ajaxFetchOptions: 'ajaxFetchOptions', ajaxUpdateComplete: 'ajaxUpdateComplete', }; @@ -43,6 +45,10 @@ export default class Handler extends Snowboard.Singleton { document.addEventListener('$render', () => { this.snowboard.globalEvent('render'); }); + delegate('ajaxUpdate', ['event', 'context', 'data', 'status', 'xhr']); + document.addEventListener('$ajaxUpdate', (event) => { + this.snowboard.globalEvent('ajaxUpdate', event.target, event.detail.data); + }); // Add "render" event for backwards compatibility window.jQuery(document).trigger('render'); @@ -121,4 +127,15 @@ export default class Handler extends Snowboard.Singleton { getToken() { return document.querySelector('meta[name="csrf-token"]').getAttribute('content'); } + + /** + * AJAX update handler. + * + * Initializes widgets inside an update element from an AJAX response. + * + * @param {HTMLElement} element + */ + onAjaxUpdate(element) { + this.snowboard['backend.ui.controls']().initializeControls(element); + } } diff --git a/modules/backend/assets/ui/js/build/backend.js b/modules/backend/assets/ui/js/build/backend.js index 133d5e72d2..4a9f3ea87b 100644 --- a/modules/backend/assets/ui/js/build/backend.js +++ b/modules/backend/assets/ui/js/build/backend.js @@ -1 +1,3 @@ -"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[147],{613:function(e,t,n){var i=n(471),r=n(341);class s extends Snowboard.Singleton{listens(){return{ready:"ready",ajaxFetchOptions:"ajaxFetchOptions",ajaxUpdateComplete:"ajaxUpdateComplete"}}ready(){window.jQuery&&((0,r.c)("render"),document.addEventListener("$render",(()=>{this.snowboard.globalEvent("render")})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((e=>{this.hasToken()&&(e.headers||(e.headers={}),e.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(e){this.hasToken()&&(e.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const e=document.querySelector('meta[name="csrf-token"]');return!!e&&!!e.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}class a extends Snowboard.PluginBase{construct(e,t){if(e instanceof Snowboard.PluginBase==!1)throw new Error("Event handling can only be applied to Snowboard classes.");if(!t)throw new Error("Event prefix is required.");this.instance=e,this.eventPrefix=t,this.events=[]}on(e,t){this.events.push({event:e,callback:t})}off(e,t){this.events=this.events.filter((n=>n.event!==e||n.callback!==t))}once(e,t){var n=this;const i=this.events.push({event:e,callback:function(){t(...arguments),n.events.splice(i-1,1)}})}fire(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e));let s=!1;r.forEach((e=>{s||!1===e.callback(...n)&&(s=!0)})),s||this.snowboard.globalEvent(`${this.eventPrefix}.${e}`,...n)}firePromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.event===e)),s=r.filter((e=>null!==e),r.map((e=>e.callback(...n))));Promise.all(s).then((()=>{this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${e}`,...n)}))}}class o extends Snowboard.Singleton{construct(){this.registeredWidgets=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady",render:"onRender",ajaxUpdate:"onAjaxUpdate"}}register(e,t,n){this.registeredWidgets.push({control:e,widget:t,callback:n})}unregister(e){this.registeredWidgets=this.registeredWidgets.filter((t=>t.control!==e))}onReady(){this.initializeWidgets(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}onRender(){this.initializeWidgets(document.body)}onAjaxUpdate(e){this.initializeWidgets(e)}initializeWidgets(e){this.registeredWidgets.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.control}"]:not([data-widget-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.widgetInitialized)return;const n=this.snowboard[t.widget](e);this.elements.push({element:e,instance:n}),e.dataset.widgetInitialized=!0,this.snowboard.globalEvent("backend.widget.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getWidget(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destruct(),this.elements=this.elements.filter((t=>t!==e))}))}))}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(e=>{e.addPlugin("backend.ajax.handler",s),e.addPlugin("backend.ui.eventHandler",a),e.addPlugin("backend.ui.widgetHandler",o),e["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(t,n)=>{e.assetLoader().load(t).then((()=>{n&&"function"==typeof n&&n()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=i}},function(e){e.O(0,[101],(function(){return t=613,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[476],{928:function(u,D,e){"use strict"; +/*! js-cookie v3.0.5 | MIT */ +function t(u){for(var D=1;D{this.snowboard.globalEvent("render")})),(0,n.M)("ajaxUpdate",["event","context","data","status","xhr"]),document.addEventListener("$ajaxUpdate",(u=>{this.snowboard.globalEvent("ajaxUpdate",u.target,u.detail.data)})),window.jQuery(document).trigger("render"))}addPrefilter(){window.jQuery&&window.jQuery.ajaxPrefilter((u=>{this.hasToken()&&(u.headers||(u.headers={}),u.headers["X-CSRF-TOKEN"]=this.getToken())}))}ajaxFetchOptions(u){this.hasToken()&&(u.headers["X-CSRF-TOKEN"]=this.getToken())}ajaxUpdateComplete(){window.jQuery&&window.jQuery(document).trigger("render")}hasToken(){const u=document.querySelector('meta[name="csrf-token"]');return!!u&&!!u.hasAttribute("content")}getToken(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")}onAjaxUpdate(u){this.snowboard["backend.ui.controls"]().initializeControls(u)}}if(void 0===window.Snowboard)throw new Error("Snowboard must be loaded in order to use the Backend UI.");(u=>{u.addPlugin("backend.ajax.handler",F),u.addPlugin("backend.ui.controls",r.g),u.addAbstract("WinterControl",r.E),u["backend.ajax.handler"]().addPrefilter(),window.AssetManager={load:(D,e)=>{u.assetLoader().load(D).then((()=>{e&&"function"==typeof e&&e()}))}},window.assetManager=window.AssetManager})(window.Snowboard),window.Vue=t},696:function(u){u.exports=function(){"use strict";function u(u,D){return u(D={exports:{}},D.exports),D.exports}var D=u((function(u){var D=u.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=D)})),e=u((function(u){var D=u.exports={version:"2.6.5"};"number"==typeof __e&&(__e=D)})),t=(e.version,function(u){return"object"==typeof u?null!==u:"function"==typeof u}),r=function(u){if(!t(u))throw TypeError(u+" is not an object!");return u},n=function(u){try{return!!u()}catch(u){return!0}},F=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),i=D.document,C=t(i)&&t(i.createElement),A=function(u){return C?i.createElement(u):{}},o=!F&&!n((function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a})),a=function(u,D){if(!t(u))return u;var e,r;if(D&&"function"==typeof(e=u.toString)&&!t(r=e.call(u)))return r;if("function"==typeof(e=u.valueOf)&&!t(r=e.call(u)))return r;if(!D&&"function"==typeof(e=u.toString)&&!t(r=e.call(u)))return r;throw TypeError("Can't convert object to primitive value")},E=Object.defineProperty,c={f:F?Object.defineProperty:function(u,D,e){if(r(u),D=a(D,!0),r(e),o)try{return E(u,D,e)}catch(u){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(u[D]=e.value),u}},s=function(u,D){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:D}},B=F?function(u,D,e){return c.f(u,D,s(1,e))}:function(u,D,e){return u[D]=e,u},f={}.hasOwnProperty,d=function(u,D){return f.call(u,D)},l=0,p=Math.random(),h=function(u){return"Symbol(".concat(void 0===u?"":u,")_",(++l+p).toString(36))},v=!1,m=u((function(u){var t="__core-js_shared__",r=D[t]||(D[t]={});(u.exports=function(u,D){return r[u]||(r[u]=void 0!==D?D:{})})("versions",[]).push({version:e.version,mode:v?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),g=m("native-function-to-string",Function.toString),w=u((function(u){var t=h("src"),r="toString",n=(""+g).split(r);e.inspectSource=function(u){return g.call(u)},(u.exports=function(u,e,r,F){var i="function"==typeof r;i&&(d(r,"name")||B(r,"name",e)),u[e]!==r&&(i&&(d(r,t)||B(r,t,u[e]?""+u[e]:n.join(String(e)))),u===D?u[e]=r:F?u[e]?u[e]=r:B(u,e,r):(delete u[e],B(u,e,r)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[t]||g.call(this)}))})),y=function(u){if("function"!=typeof u)throw TypeError(u+" is not a function!");return u},b=function(u,D,e){if(y(u),void 0===D)return u;switch(e){case 1:return function(e){return u.call(D,e)};case 2:return function(e,t){return u.call(D,e,t)};case 3:return function(e,t,r){return u.call(D,e,t,r)}}return function(){return u.apply(D,arguments)}},x="prototype",S=function(u,t,r){var n,F,i,C,A=u&S.F,o=u&S.G,a=u&S.S,E=u&S.P,c=u&S.B,s=o?D:a?D[t]||(D[t]={}):(D[t]||{})[x],f=o?e:e[t]||(e[t]={}),d=f[x]||(f[x]={});for(n in o&&(r=t),r)i=((F=!A&&s&&void 0!==s[n])?s:r)[n],C=c&&F?b(i,D):E&&"function"==typeof i?b(Function.call,i):i,s&&w(s,n,i,u&S.U),f[n]!=i&&B(f,n,C),E&&d[n]!=i&&(d[n]=i)};D.core=e,S.F=1,S.G=2,S.S=4,S.P=8,S.B=16,S.W=32,S.U=64,S.R=128;var N,P=S,j=Math.ceil,O=Math.floor,k=function(u){return isNaN(u=+u)?0:(u>0?O:j)(u)},_=function(u){if(null==u)throw TypeError("Can't call method on "+u);return u},I=(N=!1,function(u,D){var e,t,r=String(_(u)),n=k(D),F=r.length;return n<0||n>=F?N?"":void 0:(e=r.charCodeAt(n))<55296||e>56319||n+1===F||(t=r.charCodeAt(n+1))<56320||t>57343?N?r.charAt(n):e:N?r.slice(n,n+2):t-56320+(e-55296<<10)+65536});P(P.P,"String",{codePointAt:function(u){return I(this,u)}}),e.String.codePointAt;var U=Math.max,M=Math.min,T=function(u,D){return(u=k(u))<0?U(u+D,0):M(u,D)},V=String.fromCharCode,L=String.fromCodePoint;P(P.S+P.F*(!!L&&1!=L.length),"String",{fromCodePoint:function(u){for(var D,e=arguments,t=[],r=arguments.length,n=0;r>n;){if(D=+e[n++],T(D,1114111)!==D)throw RangeError(D+" is not a valid code point");t.push(D<65536?V(D):V(55296+((D-=65536)>>10),D%1024+56320))}return t.join("")}}),e.String.fromCodePoint;var J,R,z,$,H,Q,q,K,X,G,W,Z,Y,uu,Du={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},eu={isSpaceSeparator:function(u){return"string"==typeof u&&Du.Space_Separator.test(u)},isIdStartChar:function(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||"$"===u||"_"===u||Du.ID_Start.test(u))},isIdContinueChar:function(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||"$"===u||"_"===u||"‌"===u||"‍"===u||Du.ID_Continue.test(u))},isDigit:function(u){return"string"==typeof u&&/[0-9]/.test(u)},isHexDigit:function(u){return"string"==typeof u&&/[0-9A-Fa-f]/.test(u)}},tu=function(u,D){J=String(u),R="start",z=[],$=0,H=1,Q=0,q=void 0,K=void 0,X=void 0;do{q=nu(),su[R]()}while("eof"!==q.type);return"function"==typeof D?ru({"":X},"",D):X};function ru(u,D,e){var t=u[D];if(null!=t&&"object"==typeof t)if(Array.isArray(t))for(var r=0;r0;){var e=Fu();if(!eu.isHexDigit(e))throw du(iu());u+=iu()}return String.fromCodePoint(parseInt(u,16))}var su={start:function(){if("eof"===q.type)throw lu();Bu()},beforePropertyName:function(){switch(q.type){case"identifier":case"string":return K=q.value,void(R="afterPropertyName");case"punctuator":return void fu();case"eof":throw lu()}},afterPropertyName:function(){if("eof"===q.type)throw lu();R="beforePropertyValue"},beforePropertyValue:function(){if("eof"===q.type)throw lu();Bu()},beforeArrayValue:function(){if("eof"===q.type)throw lu();"punctuator"!==q.type||"]"!==q.value?Bu():fu()},afterPropertyValue:function(){if("eof"===q.type)throw lu();switch(q.value){case",":return void(R="beforePropertyName");case"}":fu()}},afterArrayValue:function(){if("eof"===q.type)throw lu();switch(q.value){case",":return void(R="beforeArrayValue");case"]":fu()}},end:function(){}};function Bu(){var u;switch(q.type){case"punctuator":switch(q.value){case"{":u={};break;case"[":u=[]}break;case"null":case"boolean":case"numeric":case"string":u=q.value}if(void 0===X)X=u;else{var D=z[z.length-1];Array.isArray(D)?D.push(u):Object.defineProperty(D,K,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(null!==u&&"object"==typeof u)z.push(u),R=Array.isArray(u)?"beforeArrayValue":"beforePropertyName";else{var e=z[z.length-1];R=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function fu(){z.pop();var u=z[z.length-1];R=null==u?"end":Array.isArray(u)?"afterArrayValue":"afterPropertyValue"}function du(u){return mu(void 0===u?"JSON5: invalid end of input at "+H+":"+Q:"JSON5: invalid character '"+vu(u)+"' at "+H+":"+Q)}function lu(){return mu("JSON5: invalid end of input at "+H+":"+Q)}function pu(){return mu("JSON5: invalid identifier character at "+H+":"+(Q-=5))}function hu(u){console.warn("JSON5: '"+vu(u)+"' in strings is not valid ECMAScript; consider escaping")}function vu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){var e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function mu(u){var D=new SyntaxError(u);return D.lineNumber=H,D.columnNumber=Q,D}return{parse:tu,stringify:function(u,D,e){var t,r,n,F=[],i="",C="";if(null==D||"object"!=typeof D||Array.isArray(D)||(e=D.space,n=D.quote,D=D.replacer),"function"==typeof D)r=D;else if(Array.isArray(D)){t=[];for(var A=0,o=D;A0&&(e=Math.min(10,Math.floor(e)),C=" ".substr(0,e)):"string"==typeof e&&(C=e.substr(0,10)),c("",{"":u});function c(u,D){var e=D[u];switch(null!=e&&("function"==typeof e.toJSON5?e=e.toJSON5(u):"function"==typeof e.toJSON&&(e=e.toJSON(u))),r&&(e=r.call(D,u,e)),e instanceof Number?e=Number(e):e instanceof String?e=String(e):e instanceof Boolean&&(e=e.valueOf()),e){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof e?s(e,!1):"number"==typeof e?String(e):"object"==typeof e?Array.isArray(e)?d(e):B(e):void 0}function s(u){for(var D={"'":.1,'"':.2},e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},t="",r=0;r=0)throw TypeError("Converting circular structure to JSON5");F.push(u);var D=i;i+=C;for(var e,r,n=[],A=0,o=t||Object.keys(u);A=0)throw TypeError("Converting circular structure to JSON5");F.push(u);var D=i;i+=C;for(var e,t=[],r=0;r=i)&&Object.keys(t.O).every((function(n){return t.O[n](r[c])}))?r.splice(c--,1):(f=!1,i0&&n[l-1][2]>i;l--)n[l]=n[l-1];n[l]=[r,o,i]},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},function(){var n={207:0};t.O.j=function(e){return 0===n[e]};var e=function(e,r){var o,i,u=r[0],f=r[1],c=r[2],a=0;if(u.some((function(e){return 0!==n[e]}))){for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var l=c(t)}for(e&&e(r);a=i)&&Object.keys(t.O).every((function(n){return t.O[n](r[c])}))?r.splice(c--,1):(f=!1,i0&&n[a-1][2]>i;a--)n[a]=n[a-1];n[a]=[r,o,i]},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},function(){var n={624:0};t.O.j=function(e){return 0===n[e]};var e=function(e,r){var o,i,u=r[0],f=r[1],c=r[2],l=0;if(u.some((function(e){return 0!==n[e]}))){for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var a=c(t)}for(e&&e(r);l{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},471:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return hr},Comment:function(){return is},EffectScope:function(){return pe},Fragment:function(){return os},KeepAlive:function(){return Er},ReactiveEffect:function(){return Te},Static:function(){return cs},Suspense:function(){return Jn},Teleport:function(){return ns},Text:function(){return ss},Transition:function(){return Ji},TransitionGroup:function(){return hc},VueElement:function(){return Ui},assertNumber:function(){return sn},callWithAsyncErrorHandling:function(){return ln},callWithErrorHandling:function(){return cn},camelize:function(){return Q},capitalize:function(){return ne},cloneVNode:function(){return Ns},compatUtils:function(){return Ci},compile:function(){return Bf},computed:function(){return ri},createApp:function(){return Kc},createBlock:function(){return vs},createCommentVNode:function(){return Ms},createElementBlock:function(){return gs},createElementVNode:function(){return ws},createHydrationRenderer:function(){return qo},createPropsRestProxy:function(){return pi},createRenderer:function(){return Go},createSSRApp:function(){return Gc},createSlots:function(){return ro},createStaticVNode:function(){return Os},createTextVNode:function(){return Rs},createVNode:function(){return ks},customRef:function(){return Xt},defineAsyncComponent:function(){return Cr},defineComponent:function(){return Sr},defineCustomElement:function(){return Bi},defineEmits:function(){return si},defineExpose:function(){return ii},defineProps:function(){return oi},defineSSRCustomElement:function(){return ji},devtools:function(){return Nn},effect:function(){return Re},effectScope:function(){return de},getCurrentInstance:function(){return Ds},getCurrentScope:function(){return me},getTransitionRawChildren:function(){return br},guardReactiveProps:function(){return Ts},h:function(){return hi},handleError:function(){return un},hydrate:function(){return zc},initCustomFormatter:function(){return vi},initDirectivesForSSR:function(){return Yc},inject:function(){return nr},isMemoSame:function(){return _i},isProxy:function(){return Ft},isReactive:function(){return Pt},isReadonly:function(){return At},isRef:function(){return Ut},isRuntimeOnly:function(){return Zs},isShallow:function(){return It},isVNode:function(){return ys},markRaw:function(){return Lt},mergeDefaults:function(){return fi},mergeProps:function(){return Fs},nextTick:function(){return _n},normalizeClass:function(){return p},normalizeProps:function(){return d},normalizeStyle:function(){return c},onActivated:function(){return Nr},onBeforeMount:function(){return $r},onBeforeUnmount:function(){return jr},onBeforeUpdate:function(){return Vr},onDeactivated:function(){return Rr},onErrorCaptured:function(){return zr},onMounted:function(){return Lr},onRenderTracked:function(){return Wr},onRenderTriggered:function(){return Hr},onScopeDispose:function(){return ge},onServerPrefetch:function(){return Ur},onUnmounted:function(){return Dr},onUpdated:function(){return Br},openBlock:function(){return as},popScopeId:function(){return Bn},provide:function(){return tr},proxyRefs:function(){return Yt},pushScopeId:function(){return Vn},queuePostFlushCb:function(){return xn},reactive:function(){return Tt},readonly:function(){return Rt},ref:function(){return Ht},registerRuntimeCompiler:function(){return Ys},render:function(){return Wc},renderList:function(){return no},renderSlot:function(){return oo},resolveComponent:function(){return Yr},resolveDirective:function(){return Qr},resolveDynamicComponent:function(){return Xr},resolveFilter:function(){return xi},resolveTransitionHooks:function(){return gr},setBlockTracking:function(){return hs},setDevtoolsHook:function(){return Mn},setTransitionHooks:function(){return _r},shallowReactive:function(){return Nt},shallowReadonly:function(){return Ot},shallowRef:function(){return Wt},ssrContextKey:function(){return mi},ssrUtils:function(){return Si},stop:function(){return Oe},toDisplayString:function(){return x},toHandlerKey:function(){return re},toHandlers:function(){return io},toRaw:function(){return $t},toRef:function(){return tn},toRefs:function(){return Qt},transformVNodeArgs:function(){return bs},triggerRef:function(){return Gt},unref:function(){return qt},useAttrs:function(){return ui},useCssModule:function(){return Hi},useCssVars:function(){return Wi},useSSRContext:function(){return gi},useSlots:function(){return li},useTransitionState:function(){return pr},vModelCheckbox:function(){return xc},vModelDynamic:function(){return Rc},vModelRadio:function(){return wc},vModelSelect:function(){return kc},vModelText:function(){return Sc},vShow:function(){return Lc},version:function(){return bi},warn:function(){return on},watch:function(){return cr},watchEffect:function(){return rr},watchPostEffect:function(){return or},watchSyncEffect:function(){return sr},withAsyncContext:function(){return di},withCtx:function(){return Dn},withDefaults:function(){return ci},withDirectives:function(){return Kr},withKeys:function(){return $c},withMemo:function(){return yi},withModifiers:function(){return Ic},withScopeId:function(){return jn}});var r={};function o(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(r),n.d(r,{BaseTransition:function(){return hr},Comment:function(){return is},EffectScope:function(){return pe},Fragment:function(){return os},KeepAlive:function(){return Er},ReactiveEffect:function(){return Te},Static:function(){return cs},Suspense:function(){return Jn},Teleport:function(){return ns},Text:function(){return ss},Transition:function(){return Ji},TransitionGroup:function(){return hc},VueElement:function(){return Ui},assertNumber:function(){return sn},callWithAsyncErrorHandling:function(){return ln},callWithErrorHandling:function(){return cn},camelize:function(){return Q},capitalize:function(){return ne},cloneVNode:function(){return Ns},compatUtils:function(){return Ci},computed:function(){return ri},createApp:function(){return Kc},createBlock:function(){return vs},createCommentVNode:function(){return Ms},createElementBlock:function(){return gs},createElementVNode:function(){return ws},createHydrationRenderer:function(){return qo},createPropsRestProxy:function(){return pi},createRenderer:function(){return Go},createSSRApp:function(){return Gc},createSlots:function(){return ro},createStaticVNode:function(){return Os},createTextVNode:function(){return Rs},createVNode:function(){return ks},customRef:function(){return Xt},defineAsyncComponent:function(){return Cr},defineComponent:function(){return Sr},defineCustomElement:function(){return Bi},defineEmits:function(){return si},defineExpose:function(){return ii},defineProps:function(){return oi},defineSSRCustomElement:function(){return ji},devtools:function(){return Nn},effect:function(){return Re},effectScope:function(){return de},getCurrentInstance:function(){return Ds},getCurrentScope:function(){return me},getTransitionRawChildren:function(){return br},guardReactiveProps:function(){return Ts},h:function(){return hi},handleError:function(){return un},hydrate:function(){return zc},initCustomFormatter:function(){return vi},initDirectivesForSSR:function(){return Yc},inject:function(){return nr},isMemoSame:function(){return _i},isProxy:function(){return Ft},isReactive:function(){return Pt},isReadonly:function(){return At},isRef:function(){return Ut},isRuntimeOnly:function(){return Zs},isShallow:function(){return It},isVNode:function(){return ys},markRaw:function(){return Lt},mergeDefaults:function(){return fi},mergeProps:function(){return Fs},nextTick:function(){return _n},normalizeClass:function(){return p},normalizeProps:function(){return d},normalizeStyle:function(){return c},onActivated:function(){return Nr},onBeforeMount:function(){return $r},onBeforeUnmount:function(){return jr},onBeforeUpdate:function(){return Vr},onDeactivated:function(){return Rr},onErrorCaptured:function(){return zr},onMounted:function(){return Lr},onRenderTracked:function(){return Wr},onRenderTriggered:function(){return Hr},onScopeDispose:function(){return ge},onServerPrefetch:function(){return Ur},onUnmounted:function(){return Dr},onUpdated:function(){return Br},openBlock:function(){return as},popScopeId:function(){return Bn},provide:function(){return tr},proxyRefs:function(){return Yt},pushScopeId:function(){return Vn},queuePostFlushCb:function(){return xn},reactive:function(){return Tt},readonly:function(){return Rt},ref:function(){return Ht},registerRuntimeCompiler:function(){return Ys},render:function(){return Wc},renderList:function(){return no},renderSlot:function(){return oo},resolveComponent:function(){return Yr},resolveDirective:function(){return Qr},resolveDynamicComponent:function(){return Xr},resolveFilter:function(){return xi},resolveTransitionHooks:function(){return gr},setBlockTracking:function(){return hs},setDevtoolsHook:function(){return Mn},setTransitionHooks:function(){return _r},shallowReactive:function(){return Nt},shallowReadonly:function(){return Ot},shallowRef:function(){return Wt},ssrContextKey:function(){return mi},ssrUtils:function(){return Si},stop:function(){return Oe},toDisplayString:function(){return x},toHandlerKey:function(){return re},toHandlers:function(){return io},toRaw:function(){return $t},toRef:function(){return tn},toRefs:function(){return Qt},transformVNodeArgs:function(){return bs},triggerRef:function(){return Gt},unref:function(){return qt},useAttrs:function(){return ui},useCssModule:function(){return Hi},useCssVars:function(){return Wi},useSSRContext:function(){return gi},useSlots:function(){return li},useTransitionState:function(){return pr},vModelCheckbox:function(){return xc},vModelDynamic:function(){return Rc},vModelRadio:function(){return wc},vModelSelect:function(){return kc},vModelText:function(){return Sc},vShow:function(){return Lc},version:function(){return bi},warn:function(){return on},watch:function(){return cr},watchEffect:function(){return rr},watchPostEffect:function(){return or},watchSyncEffect:function(){return sr},withAsyncContext:function(){return di},withCtx:function(){return Dn},withDefaults:function(){return ci},withDirectives:function(){return Kr},withKeys:function(){return $c},withMemo:function(){return yi},withModifiers:function(){return Ic},withScopeId:function(){return jn}});const s={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function c(e){if(F(e)){const t={};for(let n=0;n{if(e){const n=e.split(u);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(j(e))t=e;else if(F(e))for(let n=0;nb(e,t)))}const x=e=>j(e)?e:null==e?"":F(e)||U(e)&&(e.toString===W||!B(e.toString))?JSON.stringify(e,C,2):String(e),C=(e,t)=>t&&t.__v_isRef?C(e,t.value):$(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()]}:!U(t)||F(t)||G(t)?t:String(t),w={},k=[],E=()=>{},T=()=>!1,N=/^on[^a-z]/,R=e=>N.test(e),O=e=>e.startsWith("onUpdate:"),M=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,I=(e,t)=>A.call(e,t),F=Array.isArray,$=e=>"[object Map]"===z(e),L=e=>"[object Set]"===z(e),V=e=>"[object Date]"===z(e),B=e=>"function"==typeof e,j=e=>"string"==typeof e,D=e=>"symbol"==typeof e,U=e=>null!==e&&"object"==typeof e,H=e=>U(e)&&B(e.then)&&B(e.catch),W=Object.prototype.toString,z=e=>W.call(e),K=e=>z(e).slice(8,-1),G=e=>"[object Object]"===z(e),q=e=>j(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,J=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},X=/-(\w)/g,Q=Z((e=>e.replace(X,((e,t)=>t?t.toUpperCase():"")))),ee=/\B([A-Z])/g,te=Z((e=>e.replace(ee,"-$1").toLowerCase())),ne=Z((e=>e.charAt(0).toUpperCase()+e.slice(1))),re=Z((e=>e?`on${ne(e)}`:"")),oe=(e,t)=>!Object.is(e,t),se=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ce=e=>{const t=parseFloat(e);return isNaN(t)?e:t},le=e=>{const t=j(e)?Number(e):NaN;return isNaN(t)?e:t};let ue;const ae=()=>ue||(ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let fe;class pe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=fe,!e&&fe&&(this.index=(fe.scopes||(fe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=fe;try{return fe=this,e()}finally{fe=t}}else 0}on(){fe=this}off(){fe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&xe)>0,_e=e=>(e.n&xe)>0,be=new WeakMap;let Se=0,xe=1;const Ce=30;let we;const ke=Symbol(""),Ee=Symbol("");class Te{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,he(this,n)}run(){if(!this.active)return this.fn();let e=we,t=Me;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=we,we=this,Me=!0,xe=1<<++Se,Se<=Ce?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":F(e)?q(n)&&c.push(i.get("length")):(c.push(i.get(ke)),$(e)&&c.push(i.get(Ee)));break;case"delete":F(e)||(c.push(i.get(ke)),$(e)&&c.push(i.get(Ee)));break;case"set":$(e)&&c.push(i.get(ke))}if(1===c.length)c[0]&&Ve(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);Ve(ve(e))}}function Ve(e,t){const n=F(e)?e:[...e];for(const e of n)e.computed&&Be(e,t);for(const e of n)e.computed||Be(e,t)}function Be(e,t){(e!==we||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const je=o("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(D)),Ue=Je(),He=Je(!1,!0),We=Je(!0),ze=Je(!0,!0),Ke=Ge();function Ge(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=$t(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ae();const n=$t(this)[t].apply(this,e);return Ie(),n}})),e}function qe(e){const t=$t(this);return Fe(t,0,e),t.hasOwnProperty(e)}function Je(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Et:kt:t?wt:Ct).get(n))return n;const s=F(n);if(!e){if(s&&I(Ke,r))return Reflect.get(Ke,r,o);if("hasOwnProperty"===r)return qe}const i=Reflect.get(n,r,o);return(D(r)?De.has(r):je(r))?i:(e||Fe(n,0,r),t?i:Ut(i)?s&&q(r)?i:i.value:U(i)?e?Rt(i):Tt(i):i)}}function Ye(e=!1){return function(t,n,r,o){let s=t[n];if(At(s)&&Ut(s)&&!Ut(r))return!1;if(!e&&(It(r)||At(r)||(s=$t(s),r=$t(r)),!F(t)&&Ut(s)&&!Ut(r)))return s.value=r,!0;const i=F(t)&&q(n)?Number(n)e,nt=e=>Reflect.getPrototypeOf(e);function rt(e,t,n=!1,r=!1){const o=$t(e=e.__v_raw),s=$t(t);n||(t!==s&&Fe(o,0,t),Fe(o,0,s));const{has:i}=nt(o),c=r?tt:n?Bt:Vt;return i.call(o,t)?c(e.get(t)):i.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return t||(e!==o&&Fe(r,0,e),Fe(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function st(e,t=!1){return e=e.__v_raw,!t&&Fe($t(e),0,ke),Reflect.get(e,"size",e)}function it(e){e=$t(e);const t=$t(this);return nt(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function ct(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=nt(n);let s=r.call(n,e);s||(e=$t(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?oe(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function lt(e){const t=$t(this),{has:n,get:r}=nt(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e));r&&r.call(t,e);const s=t.delete(e);return o&&Le(t,"delete",e,void 0),s}function ut(){const e=$t(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function at(e,t){return function(n,r){const o=this,s=o.__v_raw,i=$t(s),c=t?tt:e?Bt:Vt;return!e&&Fe(i,0,ke),s.forEach(((e,t)=>n.call(r,c(e),c(t),o)))}}function ft(e,t,n){return function(...r){const o=this.__v_raw,s=$t(o),i=$(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,u=o[e](...r),a=n?tt:t?Bt:Vt;return!t&&Fe(s,0,l?Ee:ke),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return"delete"!==e&&this}}function dt(){const e={get(e){return rt(this,e)},get size(){return st(this)},has:ot,add:it,set:ct,delete:lt,clear:ut,forEach:at(!1,!1)},t={get(e){return rt(this,e,!1,!0)},get size(){return st(this)},has:ot,add:it,set:ct,delete:lt,clear:ut,forEach:at(!1,!0)},n={get(e){return rt(this,e,!0)},get size(){return st(this,!0)},has(e){return ot.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:at(!0,!1)},r={get(e){return rt(this,e,!0,!0)},get size(){return st(this,!0)},has(e){return ot.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ft(o,!1,!1),n[o]=ft(o,!0,!1),t[o]=ft(o,!1,!0),r[o]=ft(o,!0,!0)})),[e,n,t,r]}const[ht,mt,gt,vt]=dt();function yt(e,t){const n=t?e?vt:gt:e?mt:ht;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(I(n,r)&&r in t?n:t,r,o)}const _t={get:yt(!1,!1)},bt={get:yt(!1,!0)},St={get:yt(!0,!1)},xt={get:yt(!0,!0)};const Ct=new WeakMap,wt=new WeakMap,kt=new WeakMap,Et=new WeakMap;function Tt(e){return At(e)?e:Mt(e,!1,Ze,_t,Ct)}function Nt(e){return Mt(e,!1,Qe,bt,wt)}function Rt(e){return Mt(e,!0,Xe,St,kt)}function Ot(e){return Mt(e,!0,et,xt,Et)}function Mt(e,t,n,r,o){if(!U(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(K(c));var c;if(0===i)return e;const l=new Proxy(e,2===i?r:n);return o.set(e,l),l}function Pt(e){return At(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function At(e){return!(!e||!e.__v_isReadonly)}function It(e){return!(!e||!e.__v_isShallow)}function Ft(e){return Pt(e)||At(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function Lt(e){return ie(e,"__v_skip",!0),e}const Vt=e=>U(e)?Tt(e):e,Bt=e=>U(e)?Rt(e):e;function jt(e){Me&&we&&$e((e=$t(e)).dep||(e.dep=ve()))}function Dt(e,t){const n=(e=$t(e)).dep;n&&Ve(n)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return zt(e,!1)}function Wt(e){return zt(e,!0)}function zt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:$t(e),this._value=t?e:Vt(e)}get value(){return jt(this),this._value}set value(e){const t=this.__v_isShallow||It(e)||At(e);e=t?e:$t(e),oe(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Vt(e),Dt(this))}}function Gt(e){Dt(e)}function qt(e){return Ut(e)?e.value:e}const Jt={get:(e,t,n)=>qt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ut(o)&&!Ut(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Yt(e){return Pt(e)?e:new Proxy(e,Jt)}class Zt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>jt(this)),(()=>Dt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Xt(e){return new Zt(e)}function Qt(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=tn(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){var n;return null===(n=be.get(e))||void 0===n?void 0:n.get(t)}($t(this._object),this._key)}}function tn(e,t,n){const r=e[t];return Ut(r)?r:new en(e,t,n)}var nn;class rn{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[nn]=!1,this._dirty=!0,this.effect=new Te(e,(()=>{this._dirty||(this._dirty=!0,Dt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=$t(this);return jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}nn="__v_isReadonly";function on(e,...t){}function sn(e,t){}function cn(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){un(e,t,n)}return o}function ln(e,t,n,r){if(B(e)){const o=cn(e,t,n,r);return o&&H(o)&&o.catch((e=>{un(e,t,n)})),o}const o=[];for(let s=0;s>>1;kn(pn[r])kn(e)-kn(t))),gn=0;gnnull==e.id?1/0:e.id,En=(e,t)=>{const n=kn(e)-kn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Tn(e){fn=!1,an=!0,pn.sort(En);try{for(dn=0;dnNn.emit(e,...t))),Rn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Mn(e,t)})),setTimeout((()=>{Nn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,On=!0,Rn=[])}),3e3)}else On=!0,Rn=[]}function Pn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||w;let o=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:s}=r[e]||w;s&&(o=n.map((e=>j(e)?e.trim():e))),t&&(o=n.map(ce))}let c;let l=r[c=re(t)]||r[c=re(Q(t))];!l&&s&&(l=r[c=re(te(t))]),l&&ln(l,e,6,o);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,ln(u,e,6,o)}}function An(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let i={},c=!1;if(!B(e)){const r=e=>{const n=An(e,t,!0);n&&(c=!0,M(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||c?(F(s)?s.forEach((e=>i[e]=null)):M(i,s),U(e)&&r.set(e,i),i):(U(e)&&r.set(e,null),null)}function In(e,t){return!(!e||!R(t))&&(t=t.slice(2).replace(/Once$/,""),I(e,t[0].toLowerCase()+t.slice(1))||I(e,te(t))||I(e,t))}let Fn=null,$n=null;function Ln(e){const t=Fn;return Fn=e,$n=e&&e.type.__scopeId||null,t}function Vn(e){$n=e}function Bn(){$n=null}const jn=e=>Dn;function Dn(e,t=Fn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&hs(-1);const o=Ln(t);let s;try{s=e(...n)}finally{Ln(o),r._d&&hs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Un(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:c,attrs:l,emit:u,render:a,renderCache:f,data:p,setupState:d,ctx:h,inheritAttrs:m}=e;let g,v;const y=Ln(e);try{if(4&n.shapeFlag){const e=o||r;g=Ps(a.call(e,e,f,s,d,p,h)),v=l}else{const e=t;0,g=Ps(e.length>1?e(s,{attrs:l,slots:c,emit:u}):e(s,null)),v=t.props?l:Wn(l)}}catch(t){ls.length=0,un(t,e,1),g=ks(is)}let _=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=_;e.length&&7&t&&(i&&e.some(O)&&(v=zn(v,i)),_=Ns(_,v))}return n.dirs&&(_=Ns(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,Ln(y),g}function Hn(e){let t;for(let n=0;n{let t;for(const n in e)("class"===n||"style"===n||R(n))&&((t||(t={}))[n]=e[n]);return t},zn=(e,t)=>{const n={};for(const r in e)O(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Kn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense,Jn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,c,l,u){null==e?function(e,t,n,r,o,s,i,c,l){const{p:u,o:{createElement:a}}=l,f=a("div"),p=e.suspense=Zn(e,o,r,t,f,n,s,i,c,l);u(null,p.pendingBranch=e.ssContent,f,null,r,p,s,i),p.deps>0?(Yn(e,"onPending"),Yn(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,s,i),er(p,e.ssFallback)):p.resolve()}(t,n,r,o,s,i,c,l,u):function(e,t,n,r,o,s,i,c,{p:l,um:u,o:{createElement:a}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=p,_s(p,m)?(l(m,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():g&&(l(h,d,n,r,o,null,s,i,c),er(f,d))):(f.pendingId++,v?(f.isHydrating=!1,f.activeBranch=m):u(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=a("div"),g?(l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():(l(h,d,n,r,o,null,s,i,c),er(f,d))):h&&_s(p,h)?(l(h,p,n,r,o,f,s,i,c),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0&&f.resolve()));else if(h&&_s(p,h))l(h,p,n,r,o,f,s,i,c),er(f,p);else if(Yn(t,"onPending"),f.pendingBranch=p,f.pendingId++,l(null,p,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(d)}),e):0===e&&f.fallback(d)}}(e,t,n,r,o,i,c,l,u)},hydrate:function(e,t,n,r,o,s,i,c,l){const u=t.suspense=Zn(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,c,!0),a=l(e,u.pendingBranch=t.ssContent,n,u,s,i);0===u.deps&&u.resolve();return a},create:Zn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Xn(r?n.default:n),e.ssFallback=r?Xn(n.fallback):ks(is)}};function Yn(e,t){const n=e.props&&e.props[t];B(n)&&n()}function Zn(e,t,n,r,o,s,i,c,l,u,a=!1){const{p:f,m:p,um:d,n:h,o:{parentNode:m,remove:g}}=u,v=e.props?le(e.props.timeout):void 0;const y={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:a,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:s,parentComponent:i,container:c}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===y.pendingId&&p(r,c,t,0)});let{anchor:t}=y;n&&(t=h(n),d(n,i,y,!0)),e||p(r,c,t,0)}er(y,r),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,u=!1;for(;l;){if(l.pendingBranch){l.effects.push(...s),u=!0;break}l=l.parent}u||xn(s),y.effects=[],Yn(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:s}=y;Yn(t,"onFallback");const i=h(n),u=()=>{y.isInFallback&&(f(null,e,o,i,r,null,s,c,l),er(y,e))},a=e.transition&&"out-in"===e.transition.mode;a&&(n.transition.afterLeave=u),y.isInFallback=!0,d(n,r,null,!0),a||u()},move(e,t,n){y.activeBranch&&p(y.activeBranch,e,t,n),y.container=e},next(){return y.activeBranch&&h(y.activeBranch)},registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{un(t,e,0)})).then((o=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Js(e,o,!1),r&&(s.el=r);const c=!r&&e.subTree.el;t(e,s,m(r||e.subTree.el),r?null:h(e.subTree),y,i,l),c&&g(c),Gn(e,s.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&d(y.activeBranch,n,e,t),y.pendingBranch&&d(y.pendingBranch,n,e,t)}};return y}function Xn(e){let t;if(B(e)){const n=ds&&e._c;n&&(e._d=!1,as()),e=e(),n&&(e._d=!0,t=us,fs())}if(F(e)){const t=Hn(e);0,e=t}return e=Ps(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Qn(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):xn(e)}function er(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Gn(r,o))}function tr(e,t){if(js){let n=js.provides;const r=js.parent&&js.parent.provides;r===n&&(n=js.provides=Object.create(r)),n[e]=t}else 0}function nr(e,t,n=!1){const r=js||Fn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(r.proxy):t}else 0}function rr(e,t){return lr(e,null,t)}function or(e,t){return lr(e,null,{flush:"post"})}function sr(e,t){return lr(e,null,{flush:"sync"})}const ir={};function cr(e,t,n){return lr(e,t,n)}function lr(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=w){const c=me()===(null==js?void 0:js.scope)?js:null;let l,u,a=!1,f=!1;if(Ut(e)?(l=()=>e.value,a=It(e)):Pt(e)?(l=()=>e,r=!0):F(e)?(f=!0,a=e.some((e=>Pt(e)||It(e))),l=()=>e.map((e=>Ut(e)?e.value:Pt(e)?fr(e):B(e)?cn(e,c,2):void 0))):l=B(e)?t?()=>cn(e,c,2):()=>{if(!c||!c.isUnmounted)return u&&u(),ln(e,c,3,[d])}:E,t&&r){const e=l;l=()=>fr(e())}let p,d=e=>{u=v.onStop=()=>{cn(e,c,4)}};if(Gs){if(d=E,t?n&&ln(t,c,3,[l(),f?[]:void 0,d]):l(),"sync"!==o)return E;{const e=gi();p=e.__watcherHandles||(e.__watcherHandles=[])}}let h=f?new Array(e.length).fill(ir):ir;const m=()=>{if(v.active)if(t){const e=v.run();(r||a||(f?e.some(((e,t)=>oe(e,h[t]))):oe(e,h)))&&(u&&u(),ln(t,c,3,[e,h===ir?void 0:f&&h[0]===ir?[]:h,d]),h=e)}else v.run()};let g;m.allowRecurse=!!t,"sync"===o?g=m:"post"===o?g=()=>Ko(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),g=()=>bn(m));const v=new Te(l,g);t?n?m():h=v.run():"post"===o?Ko(v.run.bind(v),c&&c.suspense):v.run();const y=()=>{v.stop(),c&&c.scope&&P(c.scope.effects,v)};return p&&p.push(y),y}function ur(e,t,n){const r=this.proxy,o=j(e)?e.includes(".")?ar(r,e):()=>r[e]:e.bind(r,r);let s;B(t)?s=t:(s=t.handler,n=t);const i=js;Us(this);const c=lr(o,s.bind(r),n);return i?Us(i):Hs(),c}function ar(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{fr(e,t)}));else if(G(e))for(const n in e)fr(e[n],t);return e}function pr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lr((()=>{e.isMounted=!0})),jr((()=>{e.isUnmounting=!0})),e}const dr=[Function,Array],hr={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},setup(e,{slots:t}){const n=Ds(),r=pr();let o;return()=>{const s=t.default&&br(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){let e=!1;for(const t of s)if(t.type!==is){0,i=t,e=!0;break}}const c=$t(e),{mode:l}=c;if(r.isLeaving)return vr(i);const u=yr(i);if(!u)return vr(i);const a=gr(u,c,r,n);_r(u,a);const f=n.subTree,p=f&&yr(f);let d=!1;const{getTransitionKey:h}=u.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,d=!0)}if(p&&p.type!==is&&(!_s(u,p)||d)){const e=gr(p,c,r,n);if(_r(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},vr(i);"in-out"===l&&u.type!==is&&(e.delayLeave=(e,t,n)=>{mr(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function mr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function gr(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:a,onBeforeLeave:f,onLeave:p,onAfterLeave:d,onLeaveCancelled:h,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,_=String(e.key),b=mr(n,e),S=(e,t)=>{e&&ln(e,r,9,t)},x=(e,t)=>{const n=t[1];S(e,t),F(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:i,beforeEnter(t){let r=c;if(!n.isMounted){if(!o)return;r=m||c}t._leaveCb&&t._leaveCb(!0);const s=b[_];s&&_s(e,s)&&s.el._leaveCb&&s.el._leaveCb(),S(r,[t])},enter(e){let t=l,r=u,s=a;if(!n.isMounted){if(!o)return;t=g||l,r=v||u,s=y||a}let i=!1;const c=e._enterCb=t=>{i||(i=!0,S(t?s:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(f,[t]);let s=!1;const i=t._leaveCb=n=>{s||(s=!0,r(),S(n?h:d,[t]),t._leaveCb=void 0,b[o]===e&&delete b[o])};b[o]=e,p?x(p,[t,i]):i()},clone(e){return gr(e,t,n,r)}};return C}function vr(e){if(kr(e))return(e=Ns(e)).children=null,e}function yr(e){return kr(e)?e.children?e.children[0]:void 0:e}function _r(e,t){6&e.shapeFlag&&e.component?_r(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function br(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let e=0;e!!e.type.__asyncLoader;function Cr(e){B(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:c}=e;let l,u=null,a=0;const f=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((a++,u=null,f()))),(()=>n(e)),a+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Sr({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=js;if(l)return()=>wr(l,e);const t=t=>{u=null,un(t,e,13,!r)};if(i&&e.suspense||Gs)return f().then((t=>()=>wr(t,e))).catch((e=>(t(e),()=>r?ks(r,{error:e}):null)));const c=Ht(!1),a=Ht(),p=Ht(!!o);return o&&setTimeout((()=>{p.value=!1}),o),null!=s&&setTimeout((()=>{if(!c.value&&!a.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),a.value=e}}),s),f().then((()=>{c.value=!0,e.parent&&kr(e.parent.vnode)&&bn(e.parent.update)})).catch((e=>{t(e),a.value=e})),()=>c.value&&l?wr(l,e):a.value&&r?ks(r,{error:a.value}):n&&!p.value?ks(n):void 0}})}function wr(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=ks(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const kr=e=>e.type.__isKeepAlive,Er={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ds(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:u,um:a,o:{createElement:f}}}=r,p=f("div");function d(e){Pr(e),a(e,n,c,!0)}function h(e){o.forEach(((t,n)=>{const r=ti(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=o.get(e);i&&_s(t,i)?i&&Pr(i):d(t),o.delete(e),s.delete(e)}r.activate=(e,t,n,r,o)=>{const s=e.component;u(e,t,n,0,c),l(s.vnode,e,t,n,s,c,r,e.slotScopeIds,o),Ko((()=>{s.isDeactivated=!1,s.a&&se(s.a);const t=e.props&&e.props.onVnodeMounted;t&&$s(t,s.parent,e)}),c)},r.deactivate=e=>{const t=e.component;u(e,p,null,1,c),Ko((()=>{t.da&&se(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&$s(n,t.parent,e),t.isDeactivated=!0}),c)},cr((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Tr(e,t))),t&&h((e=>!Tr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,Ar(n.subTree))};return Lr(v),Br(v),jr((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=Ar(t);if(e.type!==o.type||e.key!==o.key)d(e);else{Pr(o);const e=o.component.da;e&&Ko(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return i=null,n;if(!(ys(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return i=null,r;let c=Ar(r);const l=c.type,u=ti(xr(c)?c.type.__asyncResolved||{}:l),{include:a,exclude:f,max:p}=e;if(a&&(!u||!Tr(a,u))||f&&u&&Tr(f,u))return i=c,r;const d=null==c.key?l:c.key,h=o.get(d);return c.el&&(c=Ns(c),128&r.shapeFlag&&(r.ssContent=c)),g=d,h?(c.el=h.el,c.component=h.component,c.transition&&_r(c,c.transition),c.shapeFlag|=512,s.delete(d),s.add(d)):(s.add(d),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,qn(r.type)?r:c}}};function Tr(e,t){return F(e)?e.some((e=>Tr(e,t))):j(e)?e.split(",").includes(t):"[object RegExp]"===z(e)&&e.test(t)}function Nr(e,t){Or(e,"a",t)}function Rr(e,t){Or(e,"da",t)}function Or(e,t,n=js){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ir(t,r,n),n){let e=n.parent;for(;e&&e.parent;)kr(e.parent.vnode)&&Mr(r,t,n,e),e=e.parent}}function Mr(e,t,n,r){const o=Ir(t,e,r,!0);Dr((()=>{P(r[t],o)}),n)}function Pr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ar(e){return 128&e.shapeFlag?e.ssContent:e}function Ir(e,t,n=js,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Ae(),Us(n);const o=ln(t,n,e,r);return Hs(),Ie(),o});return r?o.unshift(s):o.push(s),s}}const Fr=e=>(t,n=js)=>(!Gs||"sp"===e)&&Ir(e,((...e)=>t(...e)),n),$r=Fr("bm"),Lr=Fr("m"),Vr=Fr("bu"),Br=Fr("u"),jr=Fr("bum"),Dr=Fr("um"),Ur=Fr("sp"),Hr=Fr("rtg"),Wr=Fr("rtc");function zr(e,t=js){Ir("ec",e,t)}function Kr(e,t){const n=Fn;if(null===n)return e;const r=ei(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function oo(e,t,n={},r,o){if(Fn.isCE||Fn.parent&&xr(Fn.parent)&&Fn.parent.isCE)return"default"!==t&&(n.name=t),ks("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),as();const i=s&&so(s(n)),c=vs(os,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function so(e){return e.some((e=>!ys(e)||e.type!==is&&!(e.type===os&&!so(e.children))))?e:null}function io(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}const co=e=>e?Ws(e)?ei(e)||e.proxy:co(e.parent):null,lo=M(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>co(e.parent),$root:e=>co(e.root),$emit:e=>e.emit,$options:e=>vo(e),$forceUpdate:e=>e.f||(e.f=()=>bn(e.update)),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>ur.bind(e)}),uo=(e,t)=>e!==w&&!e.__isScriptSetup&&I(e,t),ao={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:c,appContext:l}=e;let u;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(uo(r,t))return i[t]=1,r[t];if(o!==w&&I(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&I(u,t))return i[t]=3,s[t];if(n!==w&&I(n,t))return i[t]=4,n[t];po&&(i[t]=0)}}const a=lo[t];let f,p;return a?("$attrs"===t&&Fe(e,0,t),a(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==w&&I(n,t)?(i[t]=4,n[t]):(p=l.config.globalProperties,I(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return uo(o,t)?(o[t]=n,!0):r!==w&&I(r,t)?(r[t]=n,!0):!I(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let c;return!!n[i]||e!==w&&I(e,i)||uo(t,i)||(c=s[0])&&I(c,i)||I(r,i)||I(lo,i)||I(o.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:I(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const fo=M({},ao,{get(e,t){if(t!==Symbol.unscopables)return ao.get(e,t,e)},has(e,t){return"_"!==t[0]&&!i(t)}});let po=!0;function ho(e){const t=vo(e),n=e.proxy,r=e.ctx;po=!1,t.beforeCreate&&mo(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:c,provide:l,inject:u,created:a,beforeMount:f,mounted:p,beforeUpdate:d,updated:h,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:_,unmounted:b,render:S,renderTracked:x,renderTriggered:C,errorCaptured:w,serverPrefetch:k,expose:T,inheritAttrs:N,components:R,directives:O,filters:M}=t;if(u&&function(e,t,n=E,r=!1){F(e)&&(e=So(e));for(const n in e){const o=e[n];let s;s=U(o)?"default"in o?nr(o.from||n,o.default,!0):nr(o.from||n):nr(o),Ut(s)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,r,null,e.appContext.config.unwrapInjectedRef),i)for(const e in i){const t=i[e];B(t)&&(r[e]=t.bind(n))}if(o){0;const t=o.call(n,n);0,U(t)&&(e.data=Tt(t))}if(po=!0,s)for(const e in s){const t=s[e],o=B(t)?t.bind(n,n):B(t.get)?t.get.bind(n,n):E;0;const i=!B(t)&&B(t.set)?t.set.bind(n):E,c=ri({get:o,set:i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)go(c[e],r,n,e);if(l){const e=B(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{tr(t,e[t])}))}function P(e,t){F(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(a&&mo(a,e,"c"),P($r,f),P(Lr,p),P(Vr,d),P(Br,h),P(Nr,m),P(Rr,g),P(zr,w),P(Wr,x),P(Hr,C),P(jr,y),P(Dr,b),P(Ur,k),F(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===E&&(e.render=S),null!=N&&(e.inheritAttrs=N),R&&(e.components=R),O&&(e.directives=O)}function mo(e,t,n){ln(F(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function go(e,t,n,r){const o=r.includes(".")?ar(n,r):()=>n[r];if(j(e)){const n=t[e];B(n)&&cr(o,n)}else if(B(e))cr(o,e.bind(n));else if(U(e))if(F(e))e.forEach((e=>go(e,t,n,r)));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&cr(o,r,e)}else 0}function vo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((e=>yo(l,e,i,!0))),yo(l,t,i)):l=t,U(t)&&s.set(t,l),l}function yo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yo(e,s,n,!0),o&&o.forEach((t=>yo(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=_o[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const _o={data:bo,props:Co,emits:Co,methods:Co,computed:Co,beforeCreate:xo,created:xo,beforeMount:xo,mounted:xo,beforeUpdate:xo,updated:xo,beforeDestroy:xo,beforeUnmount:xo,destroyed:xo,unmounted:xo,activated:xo,deactivated:xo,errorCaptured:xo,serverPrefetch:xo,components:Co,directives:Co,watch:function(e,t){if(!e)return t;if(!t)return e;const n=M(Object.create(null),e);for(const r in t)n[r]=xo(e[r],t[r]);return n},provide:bo,inject:function(e,t){return Co(So(e),So(t))}};function bo(e,t){return t?e?function(){return M(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function So(e){if(F(e)){const t={};for(let n=0;n{l=!0;const[n,r]=Eo(e,t,!0);M(i,n),r&&c.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return U(e)&&r.set(e,k),k;if(F(s))for(let e=0;e-1,r[1]=n<0||e-1||I(r,"default"))&&c.push(t)}}}}const u=[i,c];return U(e)&&r.set(e,u),u}function To(e){return"$"!==e[0]}function No(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Ro(e,t){return No(e)===No(t)}function Oo(e,t){return F(t)?t.findIndex((t=>Ro(t,e))):B(t)&&Ro(t,e)?0:-1}const Mo=e=>"_"===e[0]||"$stable"===e,Po=e=>F(e)?e.map(Ps):[Ps(e)],Ao=(e,t,n)=>{if(t._n)return t;const r=Dn(((...e)=>Po(t(...e))),n);return r._c=!1,r},Io=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Mo(n))continue;const o=e[n];if(B(o))t[n]=Ao(0,o,r);else if(null!=o){0;const e=Po(o);t[n]=()=>e}}},Fo=(e,t)=>{const n=Po(t);e.slots.default=()=>n},$o=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=$t(t),ie(t,"_",n)):Io(t,e.slots={})}else e.slots={},t&&Fo(e,t);ie(e.slots,Ss,1)},Lo=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=w;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(M(o,t),n||1!==e||delete o._):(s=!t.$stable,Io(t,o)),i=t}else t&&(Fo(e,t),i={default:1});if(s)for(const e in o)Mo(e)||e in i||delete o[e]};function Vo(){return{app:null,config:{isNativeTag:T,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bo=0;function jo(e,t){return function(n,r=null){B(n)||(n=Object.assign({},n)),null==r||U(r)||(r=null);const o=Vo(),s=new Set;let i=!1;const c=o.app={_uid:Bo++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:bi,get config(){return o.config},set config(e){0},use(e,...t){return s.has(e)||(e&&B(e.install)?(s.add(e),e.install(c,...t)):B(e)&&(s.add(e),e(c,...t))),c},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),c},component(e,t){return t?(o.components[e]=t,c):o.components[e]},directive(e,t){return t?(o.directives[e]=t,c):o.directives[e]},mount(s,l,u){if(!i){0;const a=ks(n,r);return a.appContext=o,l&&t?t(a,s):e(a,s,u),i=!0,c._container=s,s.__vue_app__=c,ei(a.component)||a.component.proxy}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return o.provides[e]=t,c}};return c}}function Do(e,t,n,r,o=!1){if(F(e))return void e.forEach(((e,s)=>Do(e,t&&(F(t)?t[s]:t),n,r,o)));if(xr(r)&&!o)return;const s=4&r.shapeFlag?ei(r.component)||r.component.proxy:r.el,i=o?null:s,{i:c,r:l}=e;const u=t&&t.r,a=c.refs===w?c.refs={}:c.refs,f=c.setupState;if(null!=u&&u!==l&&(j(u)?(a[u]=null,I(f,u)&&(f[u]=null)):Ut(u)&&(u.value=null)),B(l))cn(l,c,12,[i,a]);else{const t=j(l),r=Ut(l);if(t||r){const c=()=>{if(e.f){const n=t?I(f,l)?f[l]:a[l]:l.value;o?F(n)&&P(n,s):F(n)?n.includes(s)||n.push(s):t?(a[l]=[s],I(f,l)&&(f[l]=a[l])):(l.value=[s],e.k&&(a[e.k]=l.value))}else t?(a[l]=i,I(f,l)&&(f[l]=i)):r&&(l.value=i,e.k&&(a[e.k]=i))};i?(c.id=-1,Ko(c,n)):c()}else 0}}let Uo=!1;const Ho=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Wo=e=>8===e.nodeType;function zo(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:c,insert:l,createComment:u}}=e,a=(n,r,c,u,g,v=!1)=>{const y=Wo(n)&&"["===n.data,_=()=>h(n,r,c,u,g,y),{type:b,ref:S,shapeFlag:x,patchFlag:C}=r;let w=n.nodeType;r.el=n,-2===C&&(v=!1,r.dynamicChildren=null);let k=null;switch(b){case ss:3!==w?""===r.children?(l(r.el=o(""),i(n),n),k=n):k=_():(n.data!==r.children&&(Uo=!0,n.data=r.children),k=s(n));break;case is:k=8!==w||y?_():s(n);break;case cs:if(y&&(w=(n=s(n)).nodeType),1===w||3===w){k=n;const e=!r.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:l,props:u,patchFlag:a,shapeFlag:f,dirs:d}=t,h="input"===l&&d||"option"===l;if(h||-1!==a){if(d&&Gr(t,null,n,"created"),u)if(h||!i||48&a)for(const t in u)(h&&t.endsWith("value")||R(t)&&!J(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;if((l=u&&u.onVnodeBeforeMount)&&$s(l,n,t),d&&Gr(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||d)&&Qn((()=>{l&&$s(l,n,t),d&&Gr(t,null,n,"mounted")}),o),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,o,s,i);for(;r;){Uo=!0;const e=r;r=r.nextSibling,c(e)}}else 8&f&&e.textContent!==t.children&&(Uo=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,s,i,c)=>{c=c||!!t.dynamicChildren;const l=t.children,u=l.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const f=i(e),d=p(s(e),t,f,n,r,o,c);return d&&Wo(d)&&"]"===d.data?s(t.anchor=d):(Uo=!0,l(t.anchor=u("]"),f,d),d)},h=(e,t,r,o,l,u)=>{if(Uo=!0,t.el=null,u){const t=m(e);for(;;){const n=s(e);if(!n||n===t)break;c(n)}}const a=s(e),f=i(e);return c(e),n(null,t,f,a,r,o,Ho(f),l),a},m=e=>{let t=0;for(;e;)if((e=s(e))&&Wo(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return s(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);Uo=!1,a(t.firstChild,e,null,null,null),wn(),t._vnode=e,Uo&&console.error("Hydration completed but contains mismatches.")},a]}const Ko=Qn;function Go(e){return Jo(e)}function qo(e){return Jo(e,zo)}function Jo(e,t){ae().__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:s,createText:i,createComment:c,setText:l,setElementText:u,parentNode:a,nextSibling:f,setScopeId:p=E,insertStaticContent:d}=e,h=(e,t,n,r=null,o=null,s=null,i=!1,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!_s(e,t)&&(r=z(e),j(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:a,shapeFlag:f}=t;switch(u){case ss:m(e,t,n,r);break;case is:g(e,t,n,r);break;case cs:null==e&&v(t,n,r,i);break;case os:R(e,t,n,r,o,s,i,c,l);break;default:1&f?_(e,t,n,r,o,s,i,c,l):6&f?O(e,t,n,r,o,s,i,c,l):(64&f||128&f)&&u.process(e,t,n,r,o,s,i,c,l,G)}null!=a&&o&&Do(a,e&&e.ref,s,t||e,!t)},m=(e,t,r,o)=>{if(null==e)n(t.el=i(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},g=(e,t,r,o)=>{null==e?n(t.el=c(t.children||""),r,o):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=d(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),r(e),e=n;r(t)},_=(e,t,n,r,o,s,i,c,l)=>{i=i||"svg"===t.type,null==e?b(t,n,r,o,s,i,c,l):C(e,t,o,s,i,c,l)},b=(e,t,r,i,c,l,a,f)=>{let p,d;const{type:h,props:m,shapeFlag:g,transition:v,dirs:y}=e;if(p=e.el=s(e.type,l,m&&m.is,m),8&g?u(p,e.children):16&g&&x(e.children,p,null,i,c,l&&"foreignObject"!==h,a,f),y&&Gr(e,null,i,"created"),S(p,e,e.scopeId,a,i),m){for(const t in m)"value"===t||J(t)||o(p,t,null,m[t],l,e.children,i,c,W);"value"in m&&o(p,"value",null,m.value),(d=m.onVnodeBeforeMount)&&$s(d,i,e)}y&&Gr(e,null,i,"beforeMount");const _=(!c||c&&!c.pendingBranch)&&v&&!v.persisted;_&&v.beforeEnter(p),n(p,t,r),((d=m&&m.onVnodeMounted)||_||y)&&Ko((()=>{d&&$s(d,i,e),_&&v.enter(p),y&&Gr(e,null,i,"mounted")}),c)},S=(e,t,n,r,o)=>{if(n&&p(e,n),r)for(let t=0;t{for(let u=l;u{const l=t.el=e.el;let{patchFlag:a,dynamicChildren:f,dirs:p}=t;a|=16&e.patchFlag;const d=e.props||w,h=t.props||w;let m;n&&Yo(n,!1),(m=h.onVnodeBeforeUpdate)&&$s(m,n,t,e),p&&Gr(t,e,n,"beforeUpdate"),n&&Yo(n,!0);const g=s&&"foreignObject"!==t.type;if(f?T(e.dynamicChildren,f,l,n,r,g,i):c||$(e,t,l,null,n,r,g,i,!1),a>0){if(16&a)N(l,t,d,h,n,r,s);else if(2&a&&d.class!==h.class&&o(l,"class",null,h.class,s),4&a&&o(l,"style",d.style,h.style,s),8&a){const i=t.dynamicProps;for(let t=0;t{m&&$s(m,n,t,e),p&&Gr(t,e,n,"updated")}),r)},T=(e,t,n,r,o,s,i)=>{for(let c=0;c{if(n!==r){if(n!==w)for(const l in n)J(l)||l in r||o(e,l,n[l],null,c,t.children,s,i,W);for(const l in r){if(J(l))continue;const u=r[l],a=n[l];u!==a&&"value"!==l&&o(e,l,a,u,c,t.children,s,i,W)}"value"in r&&o(e,"value",n.value,r.value)}},R=(e,t,r,o,s,c,l,u,a)=>{const f=t.el=e?e.el:i(""),p=t.anchor=e?e.anchor:i("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:m}=t;m&&(u=u?u.concat(m):m),null==e?(n(f,r,o),n(p,r,o),x(t.children,r,p,s,c,l,u,a)):d>0&&64&d&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,r,s,c,l,u),(null!=t.key||s&&t===s.subTree)&&Zo(e,t,!0)):$(e,t,r,p,s,c,l,u,a)},O=(e,t,n,r,o,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):M(t,n,r,o,s,i,l):P(e,t,l)},M=(e,t,n,r,o,s,i)=>{const c=e.component=Bs(e,r,o);if(kr(e)&&(c.ctx.renderer=G),qs(c),c.asyncDep){if(o&&o.registerDep(c,A),!e.el){const e=c.subTree=ks(is);g(null,e,t,n)}}else A(c,e,t,n,o,s,i)},P=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!c||c&&c.$stable)||r!==i&&(r?!i||Kn(r,i,u):!!i);if(1024&l)return!0;if(16&l)return r?Kn(r,i,u):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;tdn&&pn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},A=(e,t,n,r,o,s,i)=>{const c=e.effect=new Te((()=>{if(e.isMounted){let t,{next:n,bu:r,u:c,parent:l,vnode:u}=e,f=n;0,Yo(e,!1),n?(n.el=u.el,F(e,n,i)):n=u,r&&se(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$s(t,l,n,u),Yo(e,!0);const p=Un(e);0;const d=e.subTree;e.subTree=p,h(d,p,a(d.el),z(d),e,o,s),n.el=p.el,null===f&&Gn(e,p.el),c&&Ko(c,o),(t=n.props&&n.props.onVnodeUpdated)&&Ko((()=>$s(t,l,n,u)),o)}else{let i;const{el:c,props:l}=t,{bm:u,m:a,parent:f}=e,p=xr(t);if(Yo(e,!1),u&&se(u),!p&&(i=l&&l.onVnodeBeforeMount)&&$s(i,f,t),Yo(e,!0),c&&Y){const n=()=>{e.subTree=Un(e),Y(c,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=Un(e);0,h(null,i,n,r,e,o,s),t.el=i.el}if(a&&Ko(a,o),!p&&(i=l&&l.onVnodeMounted)){const e=t;Ko((()=>$s(i,f,e)),o)}(256&t.shapeFlag||f&&xr(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Ko(e.a,o),e.isMounted=!0,t=n=r=null}}),(()=>bn(l)),e.scope),l=e.update=()=>c.run();l.id=e.uid,Yo(e,!0),l()},F=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=$t(o),[l]=e.propsOptions;let u=!1;if(!(r||i>0)||16&i){let r;wo(e,t,o,s)&&(u=!0);for(const s in c)t&&(I(t,s)||(r=te(s))!==s&&I(t,r))||(l?!n||void 0===n[s]&&void 0===n[r]||(o[s]=ko(l,c,s,void 0,e,!0)):delete o[s]);if(s!==c)for(const e in s)t&&I(t,e)||(delete s[e],u=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r{const a=e&&e.children,f=e?e.shapeFlag:0,p=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void V(a,p,n,r,o,s,i,c,l);if(256&d)return void L(a,p,n,r,o,s,i,c,l)}8&h?(16&f&&W(a,o,s),p!==a&&u(n,p)):16&f?16&h?V(a,p,n,r,o,s,i,c,l):W(a,o,s,!0):(8&f&&u(n,""),16&h&&x(p,n,r,o,s,i,c,l))},L=(e,t,n,r,o,s,i,c,l)=>{t=t||k;const u=(e=e||k).length,a=t.length,f=Math.min(u,a);let p;for(p=0;pa?W(e,o,s,!0,!1,f):x(t,n,r,o,s,i,c,l,f)},V=(e,t,n,r,o,s,i,c,l)=>{let u=0;const a=t.length;let f=e.length-1,p=a-1;for(;u<=f&&u<=p;){const r=e[u],a=t[u]=l?As(t[u]):Ps(t[u]);if(!_s(r,a))break;h(r,a,n,null,o,s,i,c,l),u++}for(;u<=f&&u<=p;){const r=e[f],u=t[p]=l?As(t[p]):Ps(t[p]);if(!_s(r,u))break;h(r,u,n,null,o,s,i,c,l),f--,p--}if(u>f){if(u<=p){const e=p+1,f=ep)for(;u<=f;)j(e[u],o,s,!0),u++;else{const d=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=l?As(t[u]):Ps(t[u]);null!=e.key&&g.set(e.key,u)}let v,y=0;const _=p-m+1;let b=!1,S=0;const x=new Array(_);for(u=0;u<_;u++)x[u]=0;for(u=d;u<=f;u++){const r=e[u];if(y>=_){j(r,o,s,!0);continue}let a;if(null!=r.key)a=g.get(r.key);else for(v=m;v<=p;v++)if(0===x[v-m]&&_s(r,t[v])){a=v;break}void 0===a?j(r,o,s,!0):(x[a-m]=u+1,a>=S?S=a:b=!0,h(r,t[a],n,null,o,s,i,c,l),y++)}const C=b?function(e){const t=e.slice(),n=[0];let r,o,s,i,c;const l=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[s-1]),n[s]=r)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(x):k;for(v=C.length-1,u=_-1;u>=0;u--){const e=m+u,f=t[e],p=e+1{const{el:i,type:c,transition:l,children:u,shapeFlag:a}=e;if(6&a)return void B(e.component.subTree,t,r,o);if(128&a)return void e.suspense.move(t,r,o);if(64&a)return void c.move(e,t,r,G);if(c===os){n(i,t,r);for(let e=0;e{let s;for(;e&&e!==t;)s=f(e),n(e,r,o),e=s;n(t,r,o)})(e,t,r);if(2!==o&&1&a&&l)if(0===o)l.beforeEnter(i),n(i,t,r),Ko((()=>l.enter(i)),s);else{const{leave:e,delayLeave:o,afterLeave:s}=l,c=()=>n(i,t,r),u=()=>{e(i,(()=>{c(),s&&s()}))};o?o(i,c,u):u()}else n(i,t,r)},j=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:c,children:l,dynamicChildren:u,shapeFlag:a,patchFlag:f,dirs:p}=e;if(null!=c&&Do(c,null,n,e,!0),256&a)return void t.ctx.deactivate(e);const d=1&a&&p,h=!xr(e);let m;if(h&&(m=i&&i.onVnodeBeforeUnmount)&&$s(m,t,e),6&a)H(e.component,n,r);else{if(128&a)return void e.suspense.unmount(n,r);d&&Gr(e,null,t,"beforeUnmount"),64&a?e.type.remove(e,t,n,o,G,r):u&&(s!==os||f>0&&64&f)?W(u,t,n,!1,!0):(s===os&&384&f||!o&&16&a)&&W(l,t,n),r&&D(e)}(h&&(m=i&&i.onVnodeUnmounted)||d)&&Ko((()=>{m&&$s(m,t,e),d&&Gr(e,null,t,"unmounted")}),n)},D=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===os)return void U(n,o);if(t===cs)return void y(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:r}=s,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},U=(e,t)=>{let n;for(;e!==t;)n=f(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:r,scope:o,update:s,subTree:i,um:c}=e;r&&se(r),o.stop(),s&&(s.active=!1,j(i,e,t,n)),c&&Ko(c,t),Ko((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},W=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?z(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&j(t._vnode,null,null,!0):h(t._vnode||null,e,t,null,null,null,n),Cn(),wn(),t._vnode=e},G={p:h,um:j,m:B,r:D,mt:M,mc:x,pc:$,pbc:T,n:z,o:e};let q,Y;return t&&([q,Y]=t(G)),{render:K,hydrate:q,createApp:jo(K,q)}}function Yo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Zo(e,t,n=!1){const r=e.children,o=t.children;if(F(r)&&F(o))for(let e=0;ee&&(e.disabled||""===e.disabled),Qo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,es=(e,t)=>{const n=e&&e.to;if(j(n)){if(t){const e=t(n);return e}return null}return n};function ts(e,t,n,{o:{insert:r},m:o},s=2){0===s&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:u,props:a}=e,f=2===s;if(f&&r(i,t,n),(!f||Xo(a))&&16&l)for(let e=0;e{16&y&&a(_,e,t,o,s,i,c,l)};v?g(n,u):f&&g(f,p)}else{t.el=e.el;const r=t.anchor=e.anchor,a=t.target=e.target,d=t.targetAnchor=e.targetAnchor,m=Xo(e.props),g=m?n:a,y=m?r:d;if(i=i||Qo(a),b?(p(e.dynamicChildren,b,g,o,s,i,c),Zo(e,t,!0)):l||f(e,t,g,y,o,s,i,c,!1),v)m||ts(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=es(t.props,h);e&&ts(t,e,null,u,0)}else m&&ts(t,a,d,u,1)}rs(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:u,targetAnchor:a,target:f,props:p}=e;if(f&&s(a),(i||!Xo(p))&&(s(u),16&c))for(let e=0;e0?us||k:null,fs(),ds>0&&us&&us.push(e),e}function gs(e,t,n,r,o,s){return ms(ws(e,t,n,r,o,s,!0))}function vs(e,t,n,r,o){return ms(ks(e,t,n,r,o,!0))}function ys(e){return!!e&&!0===e.__v_isVNode}function _s(e,t){return e.type===t.type&&e.key===t.key}function bs(e){ps=e}const Ss="__vInternal",xs=({key:e})=>null!=e?e:null,Cs=({ref:e,ref_key:t,ref_for:n})=>null!=e?j(e)||Ut(e)||B(e)?{i:Fn,r:e,k:t,f:!!n}:e:null;function ws(e,t=null,n=null,r=0,o=null,s=(e===os?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xs(t),ref:t&&Cs(t),scopeId:$n,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Fn};return c?(Is(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=j(n)?8:16),ds>0&&!i&&us&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&us.push(l),l}const ks=Es;function Es(e,t=null,n=null,r=0,o=null,s=!1){if(e&&e!==Zr||(e=is),ys(e)){const r=Ns(e,t,!0);return n&&Is(r,n),ds>0&&!s&&us&&(6&r.shapeFlag?us[us.indexOf(e)]=r:us.push(r)),r.patchFlag|=-2,r}if(ni(e)&&(e=e.__vccOpts),t){t=Ts(t);let{class:e,style:n}=t;e&&!j(e)&&(t.class=p(e)),U(n)&&(Ft(n)&&!F(n)&&(n=M({},n)),t.style=c(n))}return ws(e,t,n,r,o,j(e)?1:qn(e)?128:(e=>e.__isTeleport)(e)?64:U(e)?4:B(e)?2:0,s,!0)}function Ts(e){return e?Ft(e)||Ss in e?M({},e):e:null}function Ns(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,c=t?Fs(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&xs(c),ref:t&&t.ref?n&&o?F(o)?o.concat(Cs(t)):[o,Cs(t)]:Cs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==os?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ns(e.ssContent),ssFallback:e.ssFallback&&Ns(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Rs(e=" ",t=0){return ks(ss,null,e,t)}function Os(e,t){const n=ks(cs,null,e);return n.staticCount=t,n}function Ms(e="",t=!1){return t?(as(),vs(is,null,e)):ks(is,null,e)}function Ps(e){return null==e||"boolean"==typeof e?ks(is):F(e)?ks(os,null,e.slice()):"object"==typeof e?As(e):ks(ss,null,String(e))}function As(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Ns(e)}function Is(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(F(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Is(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Ss in t?3===r&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else B(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&r?(n=16,t=[Rs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fs(...e){const t={};for(let n=0;njs||Fn,Us=e=>{js=e,e.scope.on()},Hs=()=>{js&&js.scope.off(),js=null};function Ws(e){return 4&e.vnode.shapeFlag}let zs,Ks,Gs=!1;function qs(e,t=!1){Gs=t;const{props:n,children:r}=e.vnode,o=Ws(e);!function(e,t,n,r=!1){const o={},s={};ie(s,Ss,1),e.propsDefaults=Object.create(null),wo(e,t,o,s);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:Nt(o):e.type.props?e.props=o:e.props=s,e.attrs=s}(e,n,o,t),$o(e,r);const s=o?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=Lt(new Proxy(e.ctx,ao)),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Qs(e):null;Us(e),Ae();const o=cn(r,e,0,[e.props,n]);if(Ie(),Hs(),H(o)){if(o.then(Hs,Hs),t)return o.then((n=>{Js(e,n,t)})).catch((t=>{un(t,e,0)}));e.asyncDep=o}else Js(e,o,t)}else Xs(e,t)}(e,t):void 0;return Gs=!1,s}function Js(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:U(t)&&(e.setupState=Yt(t)),Xs(e,n)}function Ys(e){zs=e,Ks=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,fo))}}const Zs=()=>!zs;function Xs(e,t,n){const r=e.type;if(!e.render){if(!t&&zs&&!r.render){const t=r.template||vo(e).template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:i}=r,c=M(M({isCustomElement:n,delimiters:s},o),i);r.render=zs(t,c)}}e.render=r.render||E,Ks&&Ks(e)}Us(e),Ae(),ho(e),Ie(),Hs()}function Qs(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get(t,n){return Fe(e,0,"$attrs"),t[n]}})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yt(Lt(e.exposed)),{get(t,n){return n in t?t[n]:n in lo?lo[n](e):void 0},has(e,t){return t in e||t in lo}}))}function ti(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function ni(e){return B(e)&&"__vccOpts"in e}const ri=(e,t)=>function(e,t,n=!1){let r,o;const s=B(e);return s?(r=e,o=E):(r=e.get,o=e.set),new rn(r,o,s||!o,n)}(e,0,Gs);function oi(){return null}function si(){return null}function ii(e){0}function ci(e,t){return null}function li(){return ai().slots}function ui(){return ai().attrs}function ai(){const e=Ds();return e.setupContext||(e.setupContext=Qs(e))}function fi(e,t){const n=F(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const r=n[e];r?F(r)||B(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function pi(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function di(e){const t=Ds();let n=e();return Hs(),H(n)&&(n=n.catch((e=>{throw Us(t),e}))),[n,()=>Us(t)]}function hi(e,t,n){const r=arguments.length;return 2===r?U(t)&&!F(t)?ys(t)?ks(e,null,[t]):ks(e,t):ks(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ys(n)&&(n=[n]),ks(e,t,n))}const mi=Symbol(""),gi=()=>{{const e=nr(mi);return e}};function vi(){return void 0}function yi(e,t,n,r){const o=n[r];if(o&&_i(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function _i(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&us&&us.push(e),!0}const bi="3.2.47",Si={createComponentInstance:Bs,setupComponent:qs,renderComponentRoot:Un,setCurrentRenderingInstance:Ln,isVNode:ys,normalizeVNode:Ps},xi=null,Ci=null,wi="undefined"!=typeof document?document:null,ki=wi&&wi.createElement("template"),Ei={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?wi.createElementNS("http://www.w3.org/2000/svg",e):wi.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>wi.createTextNode(e),createComment:e=>wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{ki.innerHTML=r?`${e}`:e;const o=ki.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Ti=/\s*!important$/;function Ni(e,t,n){if(F(n))n.forEach((n=>Ni(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Oi[t];if(n)return n;let r=Q(t);if("filter"!==r&&r in e)return Oi[t]=r;r=ne(r);for(let n=0;n{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();ln(function(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Li(),n}(r,o);Pi(e,n,i,c)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,c),s[t]=void 0)}}const Ii=/(?:Once|Passive|Capture)$/;let Fi=0;const $i=Promise.resolve(),Li=()=>Fi||($i.then((()=>Fi=0)),Fi=Date.now());const Vi=/^on[a-z]/;function Bi(e,t){const n=Sr(e);class r extends Ui{constructor(e){super(n,e,t)}}return r.def=n,r}const ji=e=>Bi(e,zc),Di="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ui extends Di{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(Wc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!F(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=le(this._props[e])),(o||(o=Object.create(null)))[Q(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=F(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(Q))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=Q(e);this._numberProps&&this._numberProps[n]&&(t=le(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(te(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(te(e),t+""):t||this.removeAttribute(te(e))))}_update(){Wc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ks(this._def,M({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),te(e)!==e&&t(te(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Ui){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Hi(e="$style"){{const t=Ds();if(!t)return w;const n=t.type.__cssModules;if(!n)return w;const r=n[e];return r||w}}function Wi(e){const t=Ds();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Ki(e,n)))},r=()=>{const r=e(t.proxy);zi(t.subTree,r),n(r)};or(r),Lr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Dr((()=>e.disconnect()))}))}function zi(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{zi(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ki(e.el,t);else if(e.type===os)e.children.forEach((e=>zi(e,t)));else if(e.type===cs){let{el:n,anchor:r}=e;for(;n&&(Ki(n,t),n!==r);)n=n.nextSibling}}function Ki(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Gi="transition",qi="animation",Ji=(e,{slots:t})=>hi(hr,ec(e),t);Ji.displayName="Transition";const Yi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Zi=Ji.props=M({},hr.props,Yi),Xi=(e,t=[])=>{F(e)?e.forEach((e=>e(...t))):e&&e(...t)},Qi=e=>!!e&&(F(e)?e.some((e=>e.length>1)):e.length>1);function ec(e){const t={};for(const n in e)n in Yi||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:a=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(U(e))return[tc(e.enter),tc(e.leave)];{const t=tc(e);return[t,t]}}(o),m=h&&h[0],g=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:x=v,onAppear:C=y,onAppearCancelled:w=_}=t,k=(e,t,n)=>{rc(e,t?a:c),rc(e,t?u:i),n&&n()},E=(e,t)=>{e._isLeaving=!1,rc(e,f),rc(e,d),rc(e,p),t&&t()},T=e=>(t,n)=>{const o=e?C:y,i=()=>k(t,e,n);Xi(o,[t,i]),oc((()=>{rc(t,e?l:s),nc(t,e?a:c),Qi(o)||ic(t,r,m,i)}))};return M(t,{onBeforeEnter(e){Xi(v,[e]),nc(e,s),nc(e,i)},onBeforeAppear(e){Xi(x,[e]),nc(e,l),nc(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);nc(e,f),ac(),nc(e,p),oc((()=>{e._isLeaving&&(rc(e,f),nc(e,d),Qi(b)||ic(e,r,g,n))})),Xi(b,[e,n])},onEnterCancelled(e){k(e,!1),Xi(_,[e])},onAppearCancelled(e){k(e,!0),Xi(w,[e])},onLeaveCancelled(e){E(e),Xi(S,[e])}})}function tc(e){return le(e)}function nc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function rc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function oc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let sc=0;function ic(e,t,n,r){const o=e._endId=++sc,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=cc(e,t);if(!i)return r();const u=i+"end";let a=0;const f=()=>{e.removeEventListener(u,p),s()},p=t=>{t.target===e&&++a>=l&&f()};setTimeout((()=>{a(n[e]||"").split(", "),o=r(`${Gi}Delay`),s=r(`${Gi}Duration`),i=lc(o,s),c=r(`${qi}Delay`),l=r(`${qi}Duration`),u=lc(c,l);let a=null,f=0,p=0;t===Gi?i>0&&(a=Gi,f=i,p=s.length):t===qi?u>0&&(a=qi,f=u,p=l.length):(f=Math.max(i,u),a=f>0?i>u?Gi:qi:null,p=a?a===Gi?s.length:l.length:0);return{type:a,timeout:f,propCount:p,hasTransform:a===Gi&&/\b(transform|all)(,|$)/.test(r(`${Gi}Property`).toString())}}function lc(e,t){for(;e.lengthuc(t)+uc(e[n]))))}function uc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ac(){return document.body.offsetHeight}const fc=new WeakMap,pc=new WeakMap,dc={name:"TransitionGroup",props:M({},Zi,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ds(),r=pr();let o,s;return Br((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=cc(r);return o.removeChild(r),s}(o[0].el,n.vnode.el,t))return;o.forEach(mc),o.forEach(gc);const r=o.filter(vc);ac(),r.forEach((e=>{const n=e.el,r=n.style;nc(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,rc(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=$t(e),c=ec(i);let l=i.tag||os;o=s,s=t.default?br(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?e=>se(t,e):t};function _c(e){e.target.composing=!0}function bc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=yc(o);const s=r||o.props&&"number"===o.props.type;Pi(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=ce(r)),e._assign(r)})),n&&Pi(e,"change",(()=>{e.value=e.value.trim()})),t||(Pi(e,"compositionstart",_c),Pi(e,"compositionend",bc),Pi(e,"change",bc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=yc(s),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&ce(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},xc={deep:!0,created(e,t,n){e._assign=yc(n),Pi(e,"change",(()=>{const t=e._modelValue,n=Tc(e),r=e.checked,o=e._assign;if(F(t)){const e=S(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(L(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Nc(e,r))}))},mounted:Cc,beforeUpdate(e,t,n){e._assign=yc(n),Cc(e,t,n)}};function Cc(e,{value:t,oldValue:n},r){e._modelValue=t,F(t)?e.checked=S(t,r.props.value)>-1:L(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=b(t,Nc(e,!0)))}const wc={created(e,{value:t},n){e.checked=b(t,n.props.value),e._assign=yc(n),Pi(e,"change",(()=>{e._assign(Tc(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=yc(r),t!==n&&(e.checked=b(t,r.props.value))}},kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=L(t);Pi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ce(Tc(e)):Tc(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=yc(r)},mounted(e,{value:t}){Ec(e,t)},beforeUpdate(e,t,n){e._assign=yc(n)},updated(e,{value:t}){Ec(e,t)}};function Ec(e,t){const n=e.multiple;if(!n||F(t)||L(t)){for(let r=0,o=e.options.length;r-1:o.selected=t.has(s);else if(b(Tc(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Tc(e){return"_value"in e?e._value:e.value}function Nc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Rc={created(e,t,n){Mc(e,t,n,null,"created")},mounted(e,t,n){Mc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Mc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Mc(e,t,n,r,"updated")}};function Oc(e,t){switch(e){case"SELECT":return kc;case"TEXTAREA":return Sc;default:switch(t){case"checkbox":return xc;case"radio":return wc;default:return Sc}}}function Mc(e,t,n,r,o){const s=Oc(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const Pc=["ctrl","shift","alt","meta"],Ac={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Pc.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ic=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const r=te(n.key);return t.some((e=>e===r||Fc[e]===r))?e(n):void 0},Lc={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Vc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Vc(e,!0),r.enter(e)):r.leave(e,(()=>{Vc(e,!1)})):Vc(e,t))},beforeUnmount(e,{value:t}){Vc(e,t)}};function Vc(e,t){e.style.display=t?e._vod:"none"}const Bc=M({patchProp:(e,t,n,r,o=!1,s,i,c,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,n){const r=e.style,o=j(n);if(n&&!o){if(t&&!j(t))for(const e in t)null==n[e]&&Ni(r,e,"");for(const e in n)Ni(r,e,n[e])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}(e,n,r):R(t)?O(t)||Ai(e,t,0,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Vi.test(t)&&B(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Vi.test(t)&&j(n))return!1;return t in e}(e,t,r,o))?function(e,t,n,r,o,s,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,o,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let c=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=_(n):null==n&&"string"===r?(n="",c=!0):"number"===r&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}(e,t,r,s,i,c,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Mi,t.slice(6,t.length)):e.setAttributeNS(Mi,t,n);else{const r=y(t);null==n||r&&!_(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,o))}},Ei);let jc,Dc=!1;function Uc(){return jc||(jc=Go(Bc))}function Hc(){return jc=Dc?jc:qo(Bc),Dc=!0,jc}const Wc=(...e)=>{Uc().render(...e)},zc=(...e)=>{Hc().hydrate(...e)},Kc=(...e)=>{const t=Uc().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=qc(e);if(!r)return;const o=t._component;B(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Gc=(...e)=>{const t=Hc().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=qc(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function qc(e){if(j(e)){return document.querySelector(e)}return e}let Jc=!1;const Yc=()=>{Jc||(Jc=!0,Sc.getSSRProps=({value:e})=>({value:e}),wc.getSSRProps=({value:e},t)=>{if(t.props&&b(t.props.value,e))return{checked:!0}},xc.getSSRProps=({value:e},t)=>{if(F(e)){if(t.props&&S(e,t.props.value)>-1)return{checked:!0}}else if(L(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Oc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Lc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};function Zc(e){throw e}function Xc(e){}function Qc(e,t,n,r){const o=new SyntaxError(String(e));return o.code=e,o.loc=t,o}const el=Symbol(""),tl=Symbol(""),nl=Symbol(""),rl=Symbol(""),ol=Symbol(""),sl=Symbol(""),il=Symbol(""),cl=Symbol(""),ll=Symbol(""),ul=Symbol(""),al=Symbol(""),fl=Symbol(""),pl=Symbol(""),dl=Symbol(""),hl=Symbol(""),ml=Symbol(""),gl=Symbol(""),vl=Symbol(""),yl=Symbol(""),_l=Symbol(""),bl=Symbol(""),Sl=Symbol(""),xl=Symbol(""),Cl=Symbol(""),wl=Symbol(""),kl=Symbol(""),El=Symbol(""),Tl=Symbol(""),Nl=Symbol(""),Rl=Symbol(""),Ol=Symbol(""),Ml=Symbol(""),Pl=Symbol(""),Al=Symbol(""),Il=Symbol(""),Fl=Symbol(""),$l=Symbol(""),Ll=Symbol(""),Vl=Symbol(""),Bl={[el]:"Fragment",[tl]:"Teleport",[nl]:"Suspense",[rl]:"KeepAlive",[ol]:"BaseTransition",[sl]:"openBlock",[il]:"createBlock",[cl]:"createElementBlock",[ll]:"createVNode",[ul]:"createElementVNode",[al]:"createCommentVNode",[fl]:"createTextVNode",[pl]:"createStaticVNode",[dl]:"resolveComponent",[hl]:"resolveDynamicComponent",[ml]:"resolveDirective",[gl]:"resolveFilter",[vl]:"withDirectives",[yl]:"renderList",[_l]:"renderSlot",[bl]:"createSlots",[Sl]:"toDisplayString",[xl]:"mergeProps",[Cl]:"normalizeClass",[wl]:"normalizeStyle",[kl]:"normalizeProps",[El]:"guardReactiveProps",[Tl]:"toHandlers",[Nl]:"camelize",[Rl]:"capitalize",[Ol]:"toHandlerKey",[Ml]:"setBlockTracking",[Pl]:"pushScopeId",[Al]:"popScopeId",[Il]:"withCtx",[Fl]:"unref",[$l]:"isRef",[Ll]:"withMemo",[Vl]:"isMemoSame"};const jl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Dl(e,t,n,r,o,s,i,c=!1,l=!1,u=!1,a=jl){return e&&(c?(e.helper(sl),e.helper(gu(e.inSSR,u))):e.helper(mu(e.inSSR,u)),i&&e.helper(vl)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:u,loc:a}}function Ul(e,t=jl){return{type:17,loc:t,elements:e}}function Hl(e,t=jl){return{type:15,loc:t,properties:e}}function Wl(e,t){return{type:16,loc:jl,key:j(e)?zl(e,!0):e,value:t}}function zl(e,t=!1,n=jl,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Kl(e,t=jl){return{type:8,loc:t,children:e}}function Gl(e,t=[],n=jl){return{type:14,loc:n,callee:e,arguments:t}}function ql(e,t=void 0,n=!1,r=!1,o=jl){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Jl(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:jl}}const Yl=e=>4===e.type&&e.isStatic,Zl=(e,t)=>e===t||e===te(t);function Xl(e){return Zl(e,"Teleport")?tl:Zl(e,"Suspense")?nl:Zl(e,"KeepAlive")?rl:Zl(e,"BaseTransition")?ol:void 0}const Ql=/^\d|[^\$\w]/,eu=e=>!Ql.test(e),tu=/[A-Za-z_$\xA0-\uFFFF]/,nu=/[\.\?\w$\xA0-\uFFFF]/,ru=/\s+[.[]\s*|\s*[.[]\s+/g,ou=e=>{e=e.trim().replace(ru,(e=>e.trim()));let t=0,n=[],r=0,o=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===r))}return n}function Su(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function xu(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(mu(r,e.isComponent)),t(sl),t(gu(r,e.isComponent)))}function Cu(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function wu(e,t){const n=Cu("MODE",t),r=Cu(e,t);return 3===n?!0===r:!1!==r}function ku(e,t,n,...r){return wu(e,t)}const Eu=/&(gt|lt|amp|apos|quot);/g,Tu={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Nu={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:T,isPreTag:T,isCustomElement:T,decodeEntities:e=>e.replace(Eu,((e,t)=>Tu[t])),onError:Zc,onWarn:Xc,comments:!1};function Ru(e,t={}){const n=function(e,t){const n=M({},Nu);let r;for(r in t)n[r]=void 0===t[r]?Nu[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=Hu(n);return function(e,t=jl){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(Ou(n,0,[]),Wu(n,r))}function Ou(e,t,n){const r=zu(n),o=r?r.ns:0,s=[];for(;!Zu(e,t,n);){const i=e.source;let c;if(0===t||1===t)if(!e.inVPre&&Ku(i,e.options.delimiters[0]))c=ju(e,t);else if(0===t&&"<"===i[0])if(1===i.length)Yu(e,5,1);else if("!"===i[1])Ku(i,"\x3c!--")?c=Au(e):Ku(i,""===i[2]){Yu(e,14,2),Gu(e,3);continue}if(/[a-z]/i.test(i[2])){Yu(e,23),Lu(e,1,r);continue}Yu(e,12,2),c=Iu(e)}else/[a-z]/i.test(i[1])?(c=Fu(e,n),wu("COMPILER_NATIVE_TEMPLATE",e)&&c&&"template"===c.tag&&!c.props.some((e=>7===e.type&&$u(e.name)))&&(c=c.children)):"?"===i[1]?(Yu(e,21,1),c=Iu(e)):Yu(e,12,1);if(c||(c=Du(e,t)),F(c))for(let e=0;e/.exec(e.source);if(r){r.index<=3&&Yu(e,0),r[1]&&Yu(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let o=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",o));)Gu(e,s-o+1),s+4");return-1===o?(r=e.source.slice(n),Gu(e,e.source.length)):(r=e.source.slice(n,o),Gu(e,o+1)),{type:3,content:r,loc:Wu(e,t)}}function Fu(e,t){const n=e.inPre,r=e.inVPre,o=zu(t),s=Lu(e,0,o),i=e.inPre&&!n,c=e.inVPre&&!r;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return i&&(e.inPre=!1),c&&(e.inVPre=!1),s;t.push(s);const l=e.options.getTextMode(s,o),u=Ou(e,l,t);t.pop();{const t=s.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&ku("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=Wu(e,s.loc.end);t.value={type:2,content:n.source,loc:n}}}if(s.children=u,Xu(e.source,s.tag))Lu(e,1,o);else if(Yu(e,24,0,s.loc.start),0===e.source.length&&"script"===s.tag.toLowerCase()){const t=u[0];t&&Ku(t.loc.source,"\x3c!--")&&Yu(e,8)}return s.loc=Wu(e,s.loc.start),i&&(e.inPre=!1),c&&(e.inVPre=!1),s}const $u=o("if,else,else-if,for,slot");function Lu(e,t,n){const r=Hu(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=o[1],i=e.options.getNamespace(s,n);Gu(e,o[0].length),qu(e);const c=Hu(e),l=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let u=Vu(e,t);0===t&&!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,M(e,c),e.source=l,u=Vu(e,t).filter((e=>"v-pre"!==e.name)));let a=!1;if(0===e.source.length?Yu(e,9):(a=Ku(e.source,"/>"),1===t&&a&&Yu(e,4),Gu(e,a?2:1)),1===t)return;let f=0;return e.inVPre||("slot"===s?f=2:"template"===s?u.some((e=>7===e.type&&$u(e.name)))&&(f=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Xl(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e0&&!Ku(e.source,">")&&!Ku(e.source,"/>");){if(Ku(e.source,"/")){Yu(e,22),Gu(e,1),qu(e);continue}1===t&&Yu(e,3);const o=Bu(e,r);6===o.type&&o.value&&"class"===o.name&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&Yu(e,15),qu(e)}return n}function Bu(e,t){const n=Hu(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r)&&Yu(e,2),t.add(r),"="===r[0]&&Yu(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(r);)Yu(e,17,n.index)}let o;Gu(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(qu(e),Gu(e,1),qu(e),o=function(e){const t=Hu(e);let n;const r=e.source[0],o='"'===r||"'"===r;if(o){Gu(e,1);const t=e.source.indexOf(r);-1===t?n=Uu(e,e.source.length,4):(n=Uu(e,t,4),Gu(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let o;for(;o=r.exec(t[0]);)Yu(e,18,o.index);n=Uu(e,t[0].length,4)}return{content:n,isQuoted:o,loc:Wu(e,t)}}(e),o||Yu(e,13));const s=Wu(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let i,c=Ku(r,"."),l=t[1]||(c||Ku(r,":")?"bind":Ku(r,"@")?"on":"slot");if(t[2]){const o="slot"===l,s=r.lastIndexOf(t[2]),c=Wu(e,Ju(e,n,s),Ju(e,n,s+t[2].length+(o&&t[3]||"").length));let u=t[2],a=!0;u.startsWith("[")?(a=!1,u.endsWith("]")?u=u.slice(1,u.length-1):(Yu(e,27),u=u.slice(1))):o&&(u+=t[3]||""),i={type:4,content:u,isStatic:a,constType:a?3:0,loc:c}}if(o&&o.isQuoted){const e=o.loc;e.start.offset++,e.start.column++,e.end=iu(e.start,o.content),e.source=e.source.slice(1,-1)}const u=t[3]?t[3].slice(1).split("."):[];return c&&u.push("prop"),"bind"===l&&i&&u.includes("sync")&&ku("COMPILER_V_BIND_SYNC",e,0,i.loc.source)&&(l="model",u.splice(u.indexOf("sync"),1)),{type:7,name:l,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:i,modifiers:u,loc:s}}return!e.inVPre&&Ku(r,"v-")&&Yu(e,26),{type:6,name:r,value:o&&{type:2,content:o.content,loc:o.loc},loc:s}}function ju(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(-1===o)return void Yu(e,25);const s=Hu(e);Gu(e,n.length);const i=Hu(e),c=Hu(e),l=o-n.length,u=e.source.slice(0,l),a=Uu(e,l,t),f=a.trim(),p=a.indexOf(f);p>0&&cu(i,u,p);return cu(c,u,l-(a.length-f.length-p)),Gu(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:Wu(e,i,c)},loc:Wu(e,s)}}function Du(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let t=0;to&&(r=o)}const o=Hu(e);return{type:2,content:Uu(e,r,t),loc:Wu(e,o)}}function Uu(e,t,n){const r=e.source.slice(0,t);return Gu(e,t),2!==n&&3!==n&&r.includes("&")?e.options.decodeEntities(r,4===n):r}function Hu(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Wu(e,t,n){return{start:t,end:n=n||Hu(e),source:e.originalSource.slice(t.offset,n.offset)}}function zu(e){return e[e.length-1]}function Ku(e,t){return e.startsWith(t)}function Gu(e,t){const{source:n}=e;cu(e,n,t),e.source=n.slice(t)}function qu(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Gu(e,t[0].length)}function Ju(e,t,n){return iu(t,e.originalSource.slice(t.offset,n),n)}function Yu(e,t,n,r=Hu(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Qc(t,{start:r,end:r,source:""}))}function Zu(e,t,n){const r=e.source;switch(t){case 0:if(Ku(r,"=0;--e)if(Xu(r,n[e].tag))return!0;break;case 1:case 2:{const e=zu(n);if(e&&Xu(r,e.tag))return!0;break}case 3:if(Ku(r,"]]>"))return!0}return!r}function Xu(e,t){return Ku(e,"]/.test(e[2+t.length]||">")}function Qu(e,t){ta(e,t,ea(e,e.children[0]))}function ea(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!hu(t)}function ta(e,t,n=!1){const{children:r}=e,o=r.length;let s=0;for(let e=0;e0){if(e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),s++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=ca(e);if((!n||512===n||1===n)&&sa(o,t)>=2){const n=ia(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,ta(o,t),e&&t.scopes.vSlot--}else if(11===o.type)ta(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e1)for(let o=0;on&&(C.childIndex--,C.onNodeRemoved()):(C.currentNode=null,C.onNodeRemoved()),C.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){j(e)&&(e=zl(e)),C.hoists.push(e);const t=zl(`_hoisted_${C.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:jl}}(C.cached++,e,t)}};return C.filters=new Set,C}function ua(e,t){const n=la(e,t);aa(e,n),t.hoistStatic&&Qu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(ea(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&xu(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;s[64];0,e.codegenNode=Dl(t,n(el),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function aa(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(pu))return;const s=[];for(let i=0;i`${Bl[e]}: _${Bl[e]}`;function ha(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:a=!1,isTS:f=!1,inSSR:p=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:a,isTS:f,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Bl[e]}`},push(e,t){d.code+=e},indent(){h(++d.indentLevel)},deindent(e=!1){e?--d.indentLevel:h(--d.indentLevel)},newline(){h(d.indentLevel)}};function h(e){d.push("\n"+" ".repeat(e))}return d}function ma(e,t={}){const n=ha(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:u,ssr:a}=n,f=Array.from(e.helpers),p=f.length>0,d=!s&&"module"!==r,h=n;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,u=c,a=Array.from(e.helpers);if(a.length>0&&(o(`const _Vue = ${u}\n`),e.hoists.length)){o(`const { ${[ll,ul,al,fl,pl].filter((e=>a.includes(e))).map(da).join(", ")} } = _Vue\n`)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:i}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(ga(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ga(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n"),l()),a||o("return "),e.codegenNode?_a(e.codegenNode,n):o("null"),d&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ga(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?gl:"component"===t?dl:ml);for(let n=0;n3||!1;t.push("["),n&&t.indent(),ya(e,t,n),n&&t.deindent(),t.push("]")}function ya(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,l,u]),t),n(")"),f&&n(")");a&&(n(", "),_a(a,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=j(e.callee)?e.callee:r(e.callee);o&&n(pa);n(s+"(",e),ya(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),F(i)?va(i,t):_a(i,t)):c&&_a(c,t);(l||c)&&(o(),n("}"));u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:u}=t;if(4===n.type){const e=!eu(n.content);e&&i("("),ba(n,t),e&&i(")")}else i("("),_a(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),_a(r,t),t.indentLevel--,s&&u(),s||i(" "),i(": ");const a=19===o.type;a||t.indentLevel++;_a(o,t),a||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ml)}(-1),`),i());n(`_cache[${e.index}] = `),_a(e.value,t),e.isVNode&&(n(","),i(),n(`${r(Ml)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")")}(e,t);break;case 21:ya(e.body,t,!0,!1)}}function ba(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Sa(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Qc(28,t.loc)),t.exp=zl("true",!1,r)}0;if("if"===t.name){const o=wa(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Qc(30,e.loc)),n.removeNode();const o=wa(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);aa(o,n),s&&s(),n.currentNode=null}else n.onError(Qc(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=ka(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=ka(t,i+e.branches.length-1,n)}}}))));function wa(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!lu(e,"for")?e.children:[e],userKey:uu(e,"key"),isTemplateIf:n}}function ka(e,t,n){return e.condition?Jl(e.condition,Ea(e,t,n),Gl(n.helper(al),['""',"true"])):Ea(e,t,n)}function Ea(e,t,n){const{helper:r}=n,o=Wl("key",zl(`${t}`,!1,jl,2)),{children:i}=e,c=i[0];if(1!==i.length||1!==c.type){if(1===i.length&&11===c.type){const e=c.codegenNode;return _u(e,o,n),e}{let t=64;s[64];return Dl(n,r(el),Hl([o]),i,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=c.codegenNode,t=14===(l=e).type&&l.callee===Ll?l.arguments[1].returns:l;return 13===t.type&&xu(t,n),_u(t,o,n),e}var l}const Ta=fa("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Qc(31,t.loc));const o=Ma(t.exp,n);if(!o)return void n.onError(Qc(32,t.loc));const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:u,key:a,index:f}=o,p={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:a,objectIndexAlias:f,parseResult:o,children:du(e)?e.children:[e]};n.replaceNode(p),c.vFor++;const d=r&&r(p);return()=>{c.vFor--,d&&d()}}(e,t,n,(t=>{const s=Gl(r(yl),[t.source]),i=du(e),c=lu(e,"memo"),l=uu(e,"key"),u=l&&(6===l.type?zl(l.value.content,!0):l.exp),a=l?Wl("key",u):null,f=4===t.source.type&&t.source.constType>0,p=f?64:l?128:256;return t.codegenNode=Dl(n,r(el),void 0,s,p+"",void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:p}=t;const d=1!==p.length||1!==p[0].type,h=hu(e)?e:i&&1===e.children.length&&hu(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&a&&_u(l,a,n)):d?l=Dl(n,r(el),a?Hl([a]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,i&&a&&_u(l,a,n),l.isBlock!==!f&&(l.isBlock?(o(sl),o(gu(n.inSSR,l.isComponent))):o(mu(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(sl),r(gu(n.inSSR,l.isComponent))):r(mu(n.inSSR,l.isComponent))),c){const e=ql(Aa(t.parseResult,[zl("_cached")]));e.body={type:21,body:[Kl(["const _memo = (",c.exp,")"]),Kl(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Vl)}(_cached, _memo)) return _cached`]),Kl(["const _item = ",l]),zl("_item.memo = _memo"),zl("return _item")],loc:jl},s.arguments.push(e,zl("_cache"),zl(String(n.cached++)))}else s.arguments.push(ql(Aa(t.parseResult),l,!0))}}))}));const Na=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ra=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Oa=/^\(|\)$/g;function Ma(e,t){const n=e.loc,r=e.content,o=r.match(Na);if(!o)return;const[,s,i]=o,c={source:Pa(n,i.trim(),r.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Oa,"").trim();const u=s.indexOf(l),a=l.match(Ra);if(a){l=l.replace(Ra,"").trim();const e=a[1].trim();let t;if(e&&(t=r.indexOf(e,u+l.length),c.key=Pa(n,e,t)),a[2]){const o=a[2].trim();o&&(c.index=Pa(n,o,r.indexOf(o,c.key?t+e.length:u+l.length)))}}return l&&(c.value=Pa(n,l,u)),c}function Pa(e,t,n){return zl(t,!1,su(e,n,t.length))}function Aa({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||zl("_".repeat(t+1),!1)))}([e,t,n,...r])}const Ia=zl("undefined",!1),Fa=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=lu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},$a=(e,t,n)=>ql(e,t,!1,!0,t.length?t[0].loc:n);function La(e,t,n=$a){t.helper(Il);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=lu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Yl(e)&&(c=!0),s.push(Wl(e||zl("default",!0),n(t,r,o)))}let u=!1,a=!1;const f=[],p=new Set;let d=0;for(let e=0;e{const s=n(e,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),Wl("default",s)};u?f.length&&f.some((e=>ja(e)))&&(a?t.onError(Qc(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Ba(e.children)?3:1;let m=Hl(s.concat(Wl("_",zl(h+"",!1))),o);return i.length&&(m=Gl(t.helper(bl),[m,Ul(i)])),{slots:m,hasDynamicSlots:c}}function Va(e,t,n){const r=[Wl("name",e),Wl("fn",t)];return null!=n&&r.push(Wl("key",zl(String(n),!0))),Hl(r)}function Ba(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=Ka(r),s=uu(e,"is");if(s)if(o||wu("COMPILER_IS_ON_ELEMENT",t)){const e=6===s.type?s.value&&zl(s.value.content,!0):s.exp;if(e)return Gl(t.helper(hl),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=!o&&lu(e,"is");if(i&&i.exp)return Gl(t.helper(hl),[i.exp]);const c=Xl(r)||t.isBuiltInComponent(r);if(c)return n||t.helper(c),c;return t.helper(dl),t.components.add(r),Su(r,"component")}(e,t):`"${n}"`;const i=U(s)&&s.callee===hl;let c,l,u,a,f,p,d=0,h=i||s===tl||s===nl||!o&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=Ha(e,t,void 0,o,i);c=n.props,d=n.patchFlag,f=n.dynamicPropNames;const r=n.directives;p=r&&r.length?Ul(r.map((e=>function(e,t){const n=[],r=Da.get(e);r?n.push(t.helperString(r)):(t.helper(ml),t.directives.add(e.name),n.push(Su(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=zl("true",!1,o);n.push(Hl(e.modifiers.map((e=>Wl(e,t))),o))}return Ul(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){s===rl&&(h=!0,d|=1024);if(o&&s!==tl&&s!==rl){const{slots:n,hasDynamicSlots:r}=La(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&s!==tl){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===na(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}0!==d&&(u=String(d),f&&f.length&&(a=function(e){let t="[";for(let n=0,r=e.length;n0;let d=!1,h=0,m=!1,g=!1,v=!1,y=!1,_=!1,b=!1;const S=[],x=e=>{u.length&&(a.push(Hl(Wa(u),c)),u=[]),e&&a.push(e)},C=({key:e,value:n})=>{if(Yl(e)){const s=e.content,i=R(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||J(s)||(y=!0),i&&J(s)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&na(n,t)>0)return;"ref"===s?m=!0:"class"===s?g=!0:"style"===s?v=!0:"key"===s||S.includes(s)||S.push(s),!r||"class"!==s&&"style"!==s||S.includes(s)||S.push(s)}else _=!0};for(let o=0;o0&&u.push(Wl(zl("ref_for",!0),zl("true")))),"is"===n&&(Ka(i)||r&&r.content.startsWith("vue:")||wu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Wl(zl(n,!0,su(e,0,n.length)),zl(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:o,exp:h,loc:m}=l,g="bind"===n,v="on"===n;if("slot"===n){r||t.onError(Qc(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&au(o,"is")&&(Ka(i)||wu("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&s)continue;if((g&&au(o,"key")||v&&p&&au(o,"vue:before-update"))&&(d=!0),g&&au(o,"ref")&&t.scopes.vFor>0&&u.push(Wl(zl("ref_for",!0),zl("true"))),!o&&(g||v)){if(_=!0,h)if(g){if(x(),wu("COMPILER_V_BIND_OBJECT_ORDER",t)){a.unshift(h);continue}a.push(h)}else x({type:14,loc:m,callee:t.helper(Tl),arguments:r?[h]:[h,"true"]});else t.onError(Qc(g?34:35,m));continue}const y=t.directiveTransforms[n];if(y){const{props:n,needRuntime:r}=y(l,e,t);!s&&n.forEach(C),v&&o&&!Yl(o)?x(Hl(n,c)):u.push(...n),r&&(f.push(l),D(r)&&Da.set(l,r))}else Y(n)||(f.push(l),p&&(d=!0))}}let w;if(a.length?(x(),w=a.length>1?Gl(t.helper(xl),a,c):a[0]):u.length&&(w=Hl(Wa(u),c)),_?h|=16:(g&&!r&&(h|=2),v&&!r&&(h|=4),S.length&&(h|=8),y&&(h|=32)),d||0!==h&&32!==h||!(m||b||f.length>0)||(h|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.replace(Ga,((e,t)=>t?t.toUpperCase():"")))),Ja=(e,t)=>{if(hu(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Ha(e,t,o,!1,!1);n=r,s.length&&t.onError(Qc(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=ql([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Gl(t.helper(_l),i,r)}};const Ya=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Za=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Qc(35,o)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=zl(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?re(Q(e)):`on:${e}`,!0,i.loc)}else c=Kl([`${n.helperString(Ol)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(Ol)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=ou(l.content),t=!(e||Ya.test(l.content)),n=l.content.includes(";");0,(t||u&&e)&&(l=Kl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let a={props:[Wl(c,l||zl("() => {}",!1,o))]};return r&&(a=r(a)),u&&(a.props[0].value=n.cache(a.props[0].value)),a.props.forEach((e=>e.key.isHandlerKey=!0)),a},Xa=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,i=e.arg;return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=Q(i.content):i.content=`${n.helperString(Nl)}(${i.content})`:(i.children.unshift(`${n.helperString(Nl)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&Qa(i,"."),o.includes("attr")&&Qa(i,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(Qc(34,s)),{props:[Wl(i,zl("",!0,s))]}):{props:[Wl(i,r)]}},Qa=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ef=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&lu(e,"once",!0)){if(tf.has(e)||t.inVOnce)return;return tf.add(e),t.inVOnce=!0,t.helper(Ml),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},rf=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Qc(41,e.loc)),of();const s=r.loc.source,i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Qc(44,r.loc)),of();if(!i.trim()||!ou(i))return n.onError(Qc(42,r.loc)),of();const l=o||zl("modelValue",!0),u=o?Yl(o)?`onUpdate:${Q(o.content)}`:Kl(['"onUpdate:" + ',o]):"onUpdate:modelValue";let a;a=Kl([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[Wl(l,e.exp),Wl(u,a)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(eu(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?Yl(o)?`${o.content}Modifiers`:Kl([o,' + "Modifiers"']):"modelModifiers";f.push(Wl(n,zl(`{ ${t} }`,!1,e.loc,2)))}return of(f)};function of(e=[]){return{props:e}}const sf=/[\w).+\-_$\]]/,cf=(e,t)=>{wu("COMPILER_FILTER",t)&&(5===e.type&&lf(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&lf(e.exp,t)})))};function lf(e,t){if(4===e.type)uf(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&sf.test(e)||(a=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=lu(e,"memo");if(!n||ff.has(e))return;return ff.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&xu(r,t),e.codegenNode=Gl(t.helper(Ll),[n.exp,ql(void 0,r),"_cache",String(t.cached++)]))}}};function df(e,t={}){const n=t.onError||Zc,r="module"===t.mode;!0===t.prefixIdentifiers?n(Qc(47)):r&&n(Qc(48));t.cacheHandlers&&n(Qc(49)),t.scopeId&&!r&&n(Qc(50));const o=j(e)?Ru(e,t):e,[s,i]=[[nf,Ca,pf,Ta,cf,Ja,Ua,Fa,ef],{on:Za,bind:Xa,model:rf}];return ua(o,M({},t,{prefixIdentifiers:false,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:M({},i,t.directiveTransforms||{})})),ma(o,M({},t,{prefixIdentifiers:false}))}const hf=Symbol(""),mf=Symbol(""),gf=Symbol(""),vf=Symbol(""),yf=Symbol(""),_f=Symbol(""),bf=Symbol(""),Sf=Symbol(""),xf=Symbol(""),Cf=Symbol("");var wf;let kf;wf={[hf]:"vModelRadio",[mf]:"vModelCheckbox",[gf]:"vModelText",[vf]:"vModelSelect",[yf]:"vModelDynamic",[_f]:"withModifiers",[bf]:"withKeys",[Sf]:"vShow",[xf]:"Transition",[Cf]:"TransitionGroup"},Object.getOwnPropertySymbols(wf).forEach((e=>{Bl[e]=wf[e]}));const Ef=o("style,iframe,script,noscript",!0),Tf={isVoidTag:g,isNativeTag:e=>h(e)||m(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return kf||(kf=document.createElement("div")),t?(kf.innerHTML=`
`,kf.children[0].getAttribute("foo")):(kf.innerHTML=e,kf.textContent)},isBuiltInComponent:e=>Zl(e,"Transition")?xf:Zl(e,"TransitionGroup")?Cf:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Ef(e))return 2}return 0}},Nf=(e,t)=>{const n=f(e);return zl(JSON.stringify(n),!1,t,3)};function Rf(e,t){return Qc(e,t)}const Of=o("passive,once,capture"),Mf=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Pf=o("left,right"),Af=o("onkeyup,onkeydown,onkeypress",!0),If=(e,t)=>Yl(e)&&"onclick"===e.content.toLowerCase()?zl(t,!0):4!==e.type?Kl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Ff=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(Rf(61,e.loc)),t.removeNode())},$f=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:zl("style",!0,t.loc),exp:Nf(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Lf={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Rf(51,o)),t.children.length&&(n.onError(Rf(52,o)),t.children.length=0),{props:[Wl(zl("innerHTML",!0,o),r||zl("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Rf(53,o)),t.children.length&&(n.onError(Rf(54,o)),t.children.length=0),{props:[Wl(zl("textContent",!0),r?na(r,n)>0?r:Gl(n.helperString(Sl),[r],o):zl("",!0))]}},model:(e,t,n)=>{const r=rf(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Rf(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=gf,c=!1;if("input"===o||s){const r=uu(t,"type");if(r){if(7===r.type)i=yf;else if(r.value)switch(r.value.content){case"radio":i=hf;break;case"checkbox":i=mf;break;case"file":c=!0,n.onError(Rf(57,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=yf)}else"select"===o&&(i=vf);c||(r.needRuntime=n.helper(i))}else n.onError(Rf(55,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Za(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],s=[],i=[];for(let r=0;r{const{exp:r,loc:o}=e;return r||n.onError(Rf(59,o)),{props:[],needRuntime:n.helper(Sf)}}};const Vf=Object.create(null);function Bf(e,t){if(!j(e)){if(!e.nodeType)return E;e=e.innerHTML}const n=e,o=Vf[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const s=M({hoistStatic:!0,onError:void 0,onWarn:E},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));const{code:i}=function(e,t={}){return df(e,M({},Tf,t,{nodeTransforms:[Ff,...$f,...t.nodeTransforms||[]],directiveTransforms:M({},Lf,t.directiveTransforms||{}),transformHoist:null}))}(e,s);const c=new Function("Vue",i)(r);return c._rc=!0,Vf[n]=c}Ys(Bf)}}]); \ No newline at end of file +"use strict";(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[429],{941:function(e,t,n){n.d(t,{E:function(){return o},g:function(){return s}});var r=n(928);class o extends r.bM{constructor(e,t){super(e),this.snowboard=e,this.destructed=!1,this.element=t}destructor(){this.element=void 0,super.destructor()}traits(){return["Configurable"]}}class s extends r.KB{construct(){this.registeredControls=[],this.elements=[],this.events={mutate:e=>this.onMutation(e)},this.observer=null}listens(){return{ready:"onReady"}}onReady(){this.initializeControls(document.body),this.observer||(this.observer=new MutationObserver(this.events.mutate),this.observer.observe(document.body,{childList:!0,subtree:!0}))}destruct(){this.observer&&(this.observer.disconnect(),this.observer=null)}register(e,t,n){if(this.registeredControls.some((e=>e.control===t)))throw new Error("Control already registered.");const r=`control.${Math.random().toString(36).substring(2,9)}${Math.random().toString(36).substring(2,9)}`;this.snowboard.addPlugin(r,t),this.registeredControls.push({name:e,pluginName:r,control:t,callback:n})}unregister(e){this.registeredControls=this.registeredControls.filter((t=>t.name!==e))}initializeControls(e){this.registeredControls.forEach((t=>{const n=e.querySelectorAll(`[data-control="${t.name}"]:not([data-control-initialized])`);n.length&&n.forEach((e=>{if(e.dataset.controlInitialized)return;const n=this.snowboard[t.pluginName](e);this.elements.push({element:e,control:t.name,instance:n}),e.dataset.controlInitialized=!0,e.control=n,this.snowboard.globalEvent("control.initialized",e,n),"function"==typeof t.callback&&t.callback(n,e)}))}))}getControl(e){const t=this.elements.find((t=>t.element===e));return t?t.instance:null}getInstances(e){if(!this.registeredControls.some((t=>t.name===e)))throw new Error(`Control "${e}" is not registered.`);return this.elements.filter((t=>t.control===e)).map((e=>e.instance))}onMutation(e){const t=e.filter((e=>e.removedNodes.length)).map((e=>Array.from(e.removedNodes))).flat();t.length&&t.forEach((e=>{const t=this.elements.filter((t=>e.contains(t.element)));t.length&&t.forEach((e=>{e.instance.destructor(),this.elements=this.elements.filter((t=>t!==e))}))}))}}},935:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var s=0;s{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},35:function(e,t,n){n.r(t),n.d(t,{BaseTransition:function(){return $r},BaseTransitionPropsValidators:function(){return Pr},Comment:function(){return Us},DeprecationTypes:function(){return oc},EffectScope:function(){return he},ErrorCodes:function(){return hn},ErrorTypeStrings:function(){return Qi},Fragment:function(){return Bs},KeepAlive:function(){return Gr},ReactiveEffect:function(){return _e},Static:function(){return js},Suspense:function(){return dr},Teleport:function(){return Ds},Text:function(){return Hs},TrackOpTypes:function(){return cn},Transition:function(){return fc},TransitionGroup:function(){return sl},TriggerOpTypes:function(){return ln},VueElement:function(){return Qc},assertNumber:function(){return pn},callWithAsyncErrorHandling:function(){return vn},callWithErrorHandling:function(){return gn},camelize:function(){return M},capitalize:function(){return $},cloneVNode:function(){return ui},compatUtils:function(){return rc},compile:function(){return Ld},computed:function(){return qi},createApp:function(){return $l},createBlock:function(){return Zs},createCommentVNode:function(){return pi},createElementBlock:function(){return Qs},createElementVNode:function(){return ii},createHydrationRenderer:function(){return ks},createPropsRestProxy:function(){return Do},createRenderer:function(){return Ts},createSSRApp:function(){return Fl},createSlots:function(){return go},createStaticVNode:function(){return di},createTextVNode:function(){return fi},createVNode:function(){return ci},customRef:function(){return en},defineAsyncComponent:function(){return Wr},defineComponent:function(){return jr},defineCustomElement:function(){return Jc},defineEmits:function(){return ko},defineExpose:function(){return wo},defineModel:function(){return Io},defineOptions:function(){return No},defineProps:function(){return To},defineSSRCustomElement:function(){return Yc},defineSlots:function(){return Ao},devtools:function(){return Zi},effect:function(){return Ee},effectScope:function(){return me},getCurrentInstance:function(){return Ci},getCurrentScope:function(){return ve},getTransitionRawChildren:function(){return Ur},guardReactiveProps:function(){return ai},h:function(){return zi},handleError:function(){return yn},hasInjectionContext:function(){return os},hydrate:function(){return Pl},initCustomFormatter:function(){return Ki},initDirectivesForSSR:function(){return Hl},inject:function(){return rs},isMemoSame:function(){return Ji},isProxy:function(){return Lt},isReactive:function(){return Rt},isReadonly:function(){return Ot},isRef:function(){return jt},isRuntimeOnly:function(){return Pi},isShallow:function(){return Mt},isVNode:function(){return ei},markRaw:function(){return $t},mergeDefaults:function(){return $o},mergeModels:function(){return Fo},mergeProps:function(){return vi},nextTick:function(){return Nn},normalizeClass:function(){return Q},normalizeProps:function(){return Z},normalizeStyle:function(){return K},onActivated:function(){return Yr},onBeforeMount:function(){return oo},onBeforeUnmount:function(){return lo},onBeforeUpdate:function(){return io},onDeactivated:function(){return Xr},onErrorCaptured:function(){return ho},onMounted:function(){return so},onRenderTracked:function(){return po},onRenderTriggered:function(){return fo},onScopeDispose:function(){return ye},onServerPrefetch:function(){return uo},onUnmounted:function(){return ao},onUpdated:function(){return co},openBlock:function(){return zs},popScopeId:function(){return Kn},provide:function(){return ns},proxyRefs:function(){return Qt},pushScopeId:function(){return zn},queuePostFlushCb:function(){return Rn},reactive:function(){return kt},readonly:function(){return Nt},ref:function(){return qt},registerRuntimeCompiler:function(){return Li},render:function(){return Ll},renderList:function(){return mo},renderSlot:function(){return vo},resolveComponent:function(){return or},resolveDirective:function(){return cr},resolveDynamicComponent:function(){return ir},resolveFilter:function(){return nc},resolveTransitionHooks:function(){return Dr},setBlockTracking:function(){return Ys},setDevtoolsHook:function(){return ec},setTransitionHooks:function(){return Hr},shallowReactive:function(){return wt},shallowReadonly:function(){return At},shallowRef:function(){return Wt},ssrContextKey:function(){return yr},ssrUtils:function(){return tc},stop:function(){return Te},toDisplayString:function(){return ae},toHandlerKey:function(){return F},toHandlers:function(){return _o},toRaw:function(){return Pt},toRef:function(){return on},toRefs:function(){return tn},toValue:function(){return Yt},transformVNodeArgs:function(){return ni},triggerRef:function(){return Gt},unref:function(){return Jt},useAttrs:function(){return Mo},useCssModule:function(){return Zc},useCssVars:function(){return Oc},useModel:function(){return Wi},useSSRContext:function(){return _r},useSlots:function(){return Oo},useTransitionState:function(){return Mr},vModelCheckbox:function(){return hl},vModelDynamic:function(){return Sl},vModelRadio:function(){return gl},vModelSelect:function(){return vl},vModelText:function(){return pl},vShow:function(){return Ac},version:function(){return Yi},warn:function(){return Xi},watch:function(){return Er},watchEffect:function(){return br},watchPostEffect:function(){return Sr},watchSyncEffect:function(){return xr},withAsyncContext:function(){return Vo},withCtx:function(){return Jn},withDefaults:function(){return Ro},withDirectives:function(){return Ar},withKeys:function(){return Nl},withMemo:function(){return Gi},withModifiers:function(){return kl},withScopeId:function(){return Gn}});var r={}; +/** +* @vue/shared v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +function o(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(r),n.d(r,{BaseTransition:function(){return $r},BaseTransitionPropsValidators:function(){return Pr},Comment:function(){return Us},DeprecationTypes:function(){return oc},EffectScope:function(){return he},ErrorCodes:function(){return hn},ErrorTypeStrings:function(){return Qi},Fragment:function(){return Bs},KeepAlive:function(){return Gr},ReactiveEffect:function(){return _e},Static:function(){return js},Suspense:function(){return dr},Teleport:function(){return Ds},Text:function(){return Hs},TrackOpTypes:function(){return cn},Transition:function(){return fc},TransitionGroup:function(){return sl},TriggerOpTypes:function(){return ln},VueElement:function(){return Qc},assertNumber:function(){return pn},callWithAsyncErrorHandling:function(){return vn},callWithErrorHandling:function(){return gn},camelize:function(){return M},capitalize:function(){return $},cloneVNode:function(){return ui},compatUtils:function(){return rc},computed:function(){return qi},createApp:function(){return $l},createBlock:function(){return Zs},createCommentVNode:function(){return pi},createElementBlock:function(){return Qs},createElementVNode:function(){return ii},createHydrationRenderer:function(){return ks},createPropsRestProxy:function(){return Do},createRenderer:function(){return Ts},createSSRApp:function(){return Fl},createSlots:function(){return go},createStaticVNode:function(){return di},createTextVNode:function(){return fi},createVNode:function(){return ci},customRef:function(){return en},defineAsyncComponent:function(){return Wr},defineComponent:function(){return jr},defineCustomElement:function(){return Jc},defineEmits:function(){return ko},defineExpose:function(){return wo},defineModel:function(){return Io},defineOptions:function(){return No},defineProps:function(){return To},defineSSRCustomElement:function(){return Yc},defineSlots:function(){return Ao},devtools:function(){return Zi},effect:function(){return Ee},effectScope:function(){return me},getCurrentInstance:function(){return Ci},getCurrentScope:function(){return ve},getTransitionRawChildren:function(){return Ur},guardReactiveProps:function(){return ai},h:function(){return zi},handleError:function(){return yn},hasInjectionContext:function(){return os},hydrate:function(){return Pl},initCustomFormatter:function(){return Ki},initDirectivesForSSR:function(){return Hl},inject:function(){return rs},isMemoSame:function(){return Ji},isProxy:function(){return Lt},isReactive:function(){return Rt},isReadonly:function(){return Ot},isRef:function(){return jt},isRuntimeOnly:function(){return Pi},isShallow:function(){return Mt},isVNode:function(){return ei},markRaw:function(){return $t},mergeDefaults:function(){return $o},mergeModels:function(){return Fo},mergeProps:function(){return vi},nextTick:function(){return Nn},normalizeClass:function(){return Q},normalizeProps:function(){return Z},normalizeStyle:function(){return K},onActivated:function(){return Yr},onBeforeMount:function(){return oo},onBeforeUnmount:function(){return lo},onBeforeUpdate:function(){return io},onDeactivated:function(){return Xr},onErrorCaptured:function(){return ho},onMounted:function(){return so},onRenderTracked:function(){return po},onRenderTriggered:function(){return fo},onScopeDispose:function(){return ye},onServerPrefetch:function(){return uo},onUnmounted:function(){return ao},onUpdated:function(){return co},openBlock:function(){return zs},popScopeId:function(){return Kn},provide:function(){return ns},proxyRefs:function(){return Qt},pushScopeId:function(){return zn},queuePostFlushCb:function(){return Rn},reactive:function(){return kt},readonly:function(){return Nt},ref:function(){return qt},registerRuntimeCompiler:function(){return Li},render:function(){return Ll},renderList:function(){return mo},renderSlot:function(){return vo},resolveComponent:function(){return or},resolveDirective:function(){return cr},resolveDynamicComponent:function(){return ir},resolveFilter:function(){return nc},resolveTransitionHooks:function(){return Dr},setBlockTracking:function(){return Ys},setDevtoolsHook:function(){return ec},setTransitionHooks:function(){return Hr},shallowReactive:function(){return wt},shallowReadonly:function(){return At},shallowRef:function(){return Wt},ssrContextKey:function(){return yr},ssrUtils:function(){return tc},stop:function(){return Te},toDisplayString:function(){return ae},toHandlerKey:function(){return F},toHandlers:function(){return _o},toRaw:function(){return Pt},toRef:function(){return on},toRefs:function(){return tn},toValue:function(){return Yt},transformVNodeArgs:function(){return ni},triggerRef:function(){return Gt},unref:function(){return Jt},useAttrs:function(){return Mo},useCssModule:function(){return Zc},useCssVars:function(){return Oc},useModel:function(){return Wi},useSSRContext:function(){return _r},useSlots:function(){return Oo},useTransitionState:function(){return Mr},vModelCheckbox:function(){return hl},vModelDynamic:function(){return Sl},vModelRadio:function(){return gl},vModelSelect:function(){return vl},vModelText:function(){return pl},vShow:function(){return Ac},version:function(){return Yi},warn:function(){return Xi},watch:function(){return Er},watchEffect:function(){return br},watchPostEffect:function(){return Sr},watchSyncEffect:function(){return xr},withAsyncContext:function(){return Vo},withCtx:function(){return Jn},withDefaults:function(){return Ro},withDirectives:function(){return Ar},withKeys:function(){return Nl},withMemo:function(){return Gi},withModifiers:function(){return kl},withScopeId:function(){return Gn}});const s={},i=[],c=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),f=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),m=Array.isArray,g=e=>"[object Map]"===T(e),v=e=>"[object Set]"===T(e),y=e=>"[object Date]"===T(e),_=e=>"function"==typeof e,b=e=>"string"==typeof e,S=e=>"symbol"==typeof e,x=e=>null!==e&&"object"==typeof e,C=e=>(x(e)||_(e))&&_(e.then)&&_(e.catch),E=Object.prototype.toString,T=e=>E.call(e),k=e=>T(e).slice(8,-1),w=e=>"[object Object]"===T(e),N=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,M=R((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),L=/\B([A-Z])/g,P=R((e=>e.replace(L,"-$1").toLowerCase())),$=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=R((e=>e?`on${$(e)}`:"")),D=(e,t)=>!Object.is(e,t),V=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},H=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const q=()=>j||(j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},z=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function K(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Q(e){let t="";if(b(e))t=e;else if(m(e))for(let n=0;nce(e,t)))}const ae=e=>b(e)?e:null==e?"":m(e)||x(e)&&(e.toString===E||!_(e.toString))?JSON.stringify(e,ue,2):String(e),ue=(e,t)=>t&&t.__v_isRef?ue(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[fe(t,r)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>fe(e)))}:S(t)?fe(t):!x(t)||m(t)||w(t)?t:String(t),fe=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}else 0}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ie()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ke,t=pe;try{return ke=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{xe(this),this._runnings--,pe=t,ke=e}}stop(){var e;this.active&&(Se(this),xe(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function xe(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(f(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function Te(e){e.effect.stop()}let ke=!0,we=0;const Ne=[];function Ae(){Ne.push(ke),ke=!1}function Ie(){const e=Ne.pop();ke=void 0===e||e}function Re(){we++}function Oe(){for(we--;!we&&Le.length;)Le.shift()()}function Me(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Ce(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Le=[];function Pe(e,t,n){Re();for(const n of e.keys()){let r;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Fe=new WeakMap,De=Symbol(""),Ve=Symbol("");function Be(e,t,n){if(ke&&pe){let t=Fe.get(e);t||Fe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=$e((()=>t.delete(n)))),Me(pe,r)}}function He(e,t,n,r,o,s){const i=Fe.get(e);if(!i)return;let c=[];if("clear"===t)c=[...i.values()];else if("length"===n&&m(e)){const e=Number(r);i.forEach(((t,n)=>{("length"===n||!S(n)&&n>=e)&&c.push(t)}))}else switch(void 0!==n&&c.push(i.get(n)),t){case"add":m(e)?N(n)&&c.push(i.get("length")):(c.push(i.get(De)),g(e)&&c.push(i.get(Ve)));break;case"delete":m(e)||(c.push(i.get(De)),g(e)&&c.push(i.get(Ve)));break;case"set":g(e)&&c.push(i.get(De))}Re();for(const e of c)e&&Pe(e,4);Oe()}const Ue=o("__proto__,__v_isRef,__isVue"),je=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(S)),qe=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ae(),Re();const n=Pt(this)[t].apply(this,e);return Oe(),Ie(),n}})),e}function ze(e){const t=Pt(this);return Be(t,0,e),t.hasOwnProperty(e)}class Ke{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Tt:Et:o?Ct:xt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!r){if(s&&h(qe,t))return Reflect.get(qe,t,n);if("hasOwnProperty"===t)return ze}const i=Reflect.get(e,t,n);return(S(t)?je.has(t):Ue(t))?i:(r||Be(e,0,t),o?i:jt(i)?s&&N(t)?i:i.value:x(i)?r?Nt(i):kt(i):i)}}class Ge extends Ke{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){const t=Ot(o);if(Mt(n)||Ot(n)||(o=Pt(o),n=Pt(n)),!m(e)&&jt(o)&&!jt(n))return!t&&(o.value=n,!0)}const s=m(e)&&N(t)?Number(t)e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,r=!1){const o=Pt(e=e.__v_raw),s=Pt(t);n||(D(t,s)&&Be(o,0,t),Be(o,0,s));const{has:i}=tt(o),c=r?et:n?Dt:Ft;return i.call(o,t)?c(e.get(t)):i.call(o,s)?c(e.get(s)):void(e!==o&&e.get(t))}function rt(e,t=!1){const n=this.__v_raw,r=Pt(n),o=Pt(e);return t||(D(e,o)&&Be(r,0,e),Be(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function ot(e,t=!1){return e=e.__v_raw,!t&&Be(Pt(e),0,De),Reflect.get(e,"size",e)}function st(e){e=Pt(e);const t=Pt(this);return tt(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function it(e,t){t=Pt(t);const n=Pt(this),{has:r,get:o}=tt(n);let s=r.call(n,e);s||(e=Pt(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?D(t,i)&&He(n,"set",e,t):He(n,"add",e,t),this}function ct(e){const t=Pt(this),{has:n,get:r}=tt(t);let o=n.call(t,e);o||(e=Pt(e),o=n.call(t,e));r&&r.call(t,e);const s=t.delete(e);return o&&He(t,"delete",e,void 0),s}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function at(e,t){return function(n,r){const o=this,s=o.__v_raw,i=Pt(s),c=t?et:e?Dt:Ft;return!e&&Be(i,0,De),s.forEach(((e,t)=>n.call(r,c(e),c(t),o)))}}function ut(e,t,n){return function(...r){const o=this.__v_raw,s=Pt(o),i=g(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,a=o[e](...r),u=n?et:t?Dt:Ft;return!t&&Be(s,0,l?Ve:De),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return nt(this,e)},get size(){return ot(this)},has:rt,add:st,set:it,delete:ct,clear:lt,forEach:at(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return ot(this)},has:rt,add:st,set:it,delete:ct,clear:lt,forEach:at(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return ot(this,!0)},has(e){return rt.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:at(!0,!1)},r={get(e){return nt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return rt.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ut(o,!1,!1),n[o]=ut(o,!0,!1),t[o]=ut(o,!1,!0),r[o]=ut(o,!0,!0)})),[e,n,t,r]}const[pt,ht,mt,gt]=dt();function vt(e,t){const n=t?e?gt:mt:e?ht:pt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(h(n,r)&&r in t?n:t,r,o)}const yt={get:vt(!1,!1)},_t={get:vt(!1,!0)},bt={get:vt(!0,!1)},St={get:vt(!0,!0)};const xt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,Tt=new WeakMap;function kt(e){return Ot(e)?e:It(e,!1,Ye,yt,xt)}function wt(e){return It(e,!1,Qe,_t,Ct)}function Nt(e){return It(e,!0,Xe,bt,Et)}function At(e){return It(e,!0,Ze,St,Tt)}function It(e,t,n,r,o){if(!x(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=(c=e).__v_skip||!Object.isExtensible(c)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(c));var c;if(0===i)return e;const l=new Proxy(e,2===i?r:n);return o.set(e,l),l}function Rt(e){return Ot(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Mt(e){return!(!e||!e.__v_isShallow)}function Lt(e){return Rt(e)||Ot(e)}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function $t(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Ft=e=>x(e)?kt(e):e,Dt=e=>x(e)?Nt(e):e;class Vt{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new _e((()=>e(this._value)),(()=>Ut(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!D(e._value,e._value=e.effect.run())||Ut(e,4),Ht(e),e.effect._dirtyLevel>=2&&Ut(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Bt(e,t,n=!1){let r,o;const s=_(e);s?(r=e,o=c):(r=e.get,o=e.set);return new Vt(r,o,s||!o,n)}function Ht(e){var t;ke&&pe&&(e=Pt(e),Me(pe,null!=(t=e.dep)?t:e.dep=$e((()=>e.dep=void 0),e instanceof Vt?e:void 0)))}function Ut(e,t=4,n){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function jt(e){return!(!e||!0!==e.__v_isRef)}function qt(e){return zt(e,!1)}function Wt(e){return zt(e,!0)}function zt(e,t){return jt(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Ft(e)}get value(){return Ht(this),this._value}set value(e){const t=this.__v_isShallow||Mt(e)||Ot(e);e=t?e:Pt(e),D(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ft(e),Ut(this,4))}}function Gt(e){Ut(e,4)}function Jt(e){return jt(e)?e.value:e}function Yt(e){return _(e)?e():Jt(e)}const Xt={get:(e,t,n)=>Jt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return jt(o)&&!jt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Qt(e){return Rt(e)?e:new Proxy(e,Xt)}class Zt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Ht(this)),(()=>Ut(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function en(e){return new Zt(e)}function tn(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=sn(e,n);return t}class nn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Pt(this._object),t=this._key,null==(n=Fe.get(e))?void 0:n.get(t);var e,t,n}}class rn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function on(e,t,n){return jt(e)?e:_(e)?new rn(e):x(e)&&arguments.length>1?sn(e,t,n):qt(e)}function sn(e,t,n){const r=e[t];return jt(r)?r:new nn(e,t,n)}const cn={GET:"get",HAS:"has",ITERATE:"iterate"},ln={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},an=[];function un(e,...t){Ae();const n=an.length?an[an.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=function(){let e=an[an.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)gn(r,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Ui(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Ui(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...fn(e.props),s]:[o+s]}(e))})),t}(o)),console.warn(...n)}Ie()}function fn(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...dn(n,e[n]))})),n.length>3&&t.push(" ..."),t}function dn(e,t,n){return b(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:jt(t)?(t=dn(e,Pt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):_(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),n?t:[`${e}=`,t])}function pn(e,t){}const hn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},mn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function gn(e,t,n,r){try{return r?e(...r):e()}catch(e){yn(e,t,n)}}function vn(e,t,n,r){if(_(e)){const o=gn(e,t,n,r);return o&&C(o)&&o.catch((e=>{yn(e,t,n)})),o}const o=[];for(let s=0;s>>1,o=Sn[r],s=Ln(o);sLn(e)-Ln(t)));if(Cn.length=0,En)return void En.push(...e);for(En=e,Tn=0;Tnnull==e.id?1/0:e.id,Pn=(e,t)=>{const n=Ln(e)-Ln(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $n(e){bn=!1,_n=!0,Sn.sort(Pn);try{for(xn=0;xnb(e)?e.trim():e))),t&&(o=n.map(H))}let l;let a=r[l=F(t)]||r[l=F(M(t))];!a&&i&&(a=r[l=F(P(t))]),a&&vn(a,e,6,o);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,vn(u,e,6,o)}}function Hn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let i={},c=!1;if(!_(e)){const r=e=>{const n=Hn(e,t,!0);n&&(c=!0,f(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||c?(m(s)?s.forEach((e=>i[e]=null)):f(i,s),x(e)&&r.set(e,i),i):(x(e)&&r.set(e,null),null)}function Un(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,P(t))||h(e,t))}let jn=null,qn=null;function Wn(e){const t=jn;return jn=e,qn=e&&e.type.__scopeId||null,t}function zn(e){qn=e}function Kn(){qn=null}const Gn=e=>Jn;function Jn(e,t=jn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Ys(-1);const o=Wn(t);let s;try{s=e(...n)}finally{Wn(o),r._d&&Ys(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Yn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:c,attrs:l,emit:a,render:f,renderCache:d,data:p,setupState:h,ctx:m,inheritAttrs:g}=e;let v,y;const _=Wn(e);try{if(4&n.shapeFlag){const e=o||r,t=e;v=hi(f.call(t,e,d,s,h,p,m)),y=l}else{const e=t;0,v=hi(e.length>1?e(s,{attrs:l,slots:c,emit:a}):e(s,null)),y=t.props?l:Qn(l)}}catch(t){qs.length=0,yn(t,e,1),v=ci(Us)}let b=v;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(u)&&(y=Zn(y,i)),b=ui(b,y))}return n.dirs&&(b=ui(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,Wn(_),v}function Xn(e,t=!0){let n;for(let t=0;t{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Zn=(e,t)=>{const n={};for(const r in e)u(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function er(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;let fr=0;const dr={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,c,l,a){if(null==e)!function(e,t,n,r,o,s,i,c,l){const{p:a,o:{createElement:u}}=l,f=u("div"),d=e.suspense=hr(e,o,r,t,f,n,s,i,c,l);a(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(pr(e,"onPending"),pr(e,"onFallback"),a(null,e.ssFallback,t,n,r,null,s,i),vr(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,o,s,i,c,l,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,s,i,c,{p:l,um:a,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=d,ti(d,m)?(l(m,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():g&&(v||(l(h,p,n,r,o,null,s,i,c),vr(f,p)))):(f.pendingId=fr++,v?(f.isHydrating=!1,f.activeBranch=m):a(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),g?(l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0?f.resolve():(l(h,p,n,r,o,null,s,i,c),vr(f,p))):h&&ti(d,h)?(l(h,d,n,r,o,f,s,i,c),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0&&f.resolve()));else if(h&&ti(d,h))l(h,d,n,r,o,f,s,i,c),vr(f,d);else if(pr(t,"onPending"),f.pendingBranch=d,512&d.shapeFlag?f.pendingId=d.component.suspenseId:f.pendingId=fr++,l(null,d,f.hiddenContainer,null,o,f,s,i,c),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}(e,t,n,r,o,i,c,l,a)}},hydrate:function(e,t,n,r,o,s,i,c,l){const a=t.suspense=hr(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,c,!0),u=l(e,a.pendingBranch=t.ssContent,n,a,s,i);0===a.deps&&a.resolve(!1,!0);return u},create:hr,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=mr(r?n.default:n),e.ssFallback=r?mr(n.fallback):ci(Us)}};function pr(e,t){const n=e.props&&e.props[t];_(n)&&n()}function hr(e,t,n,r,o,s,i,c,l,a,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);y&&(null==t?void 0:t.pendingBranch)&&(v=t.pendingId,t.deps++);const _=e.props?U(e.props.timeout):void 0;const b=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:fr++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:c,effects:l,parentComponent:a,container:u}=S;let f=!1;S.isHydrating?S.isHydrating=!1:e||(f=o&&i.transition&&"out-in"===i.transition.mode,f&&(o.transition.afterLeave=()=>{c===S.pendingId&&(d(i,u,s===b?h(o):s,0),Rn(l))}),o&&(m(o.el)!==S.hiddenContainer&&(s=h(o)),p(o,a,S,!0)),f||d(i,u,s,0)),vr(S,i),S.pendingBranch=null,S.isInFallback=!1;let g=S.parent,_=!1;for(;g;){if(g.pendingBranch){g.effects.push(...l),_=!0;break}g=g.parent}_||f||Rn(l),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),pr(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:s}=S;pr(t,"onFallback");const i=h(n),a=()=>{S.isInFallback&&(f(null,e,o,i,r,null,s,c,l),vr(S,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),S.isInFallback=!0,p(n,r,null,!0),u||a()},move(e,t,n){S.activeBranch&&d(S.activeBranch,e,t,n),S.container=e},next(){return S.activeBranch&&h(S.activeBranch)},registerDep(e,t){const n=!!S.pendingBranch;n&&S.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{yn(t,e,0)})).then((o=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Mi(e,o,!1),r&&(s.el=r);const c=!r&&e.subTree.el;t(e,s,m(r||e.subTree.el),r?null:h(e.subTree),S,i,l),c&&g(c),tr(e,s.el),n&&0==--S.deps&&S.resolve()}))},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,e,t),S.pendingBranch&&p(S.pendingBranch,n,e,t)}};return S}function mr(e){let t;if(_(e)){const n=Js&&e._c;n&&(e._d=!1,zs()),e=e(),n&&(e._d=!0,t=Ws,Ks())}if(m(e)){const t=Xn(e);0,e=t}return e=hi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function gr(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):Rn(e)}function vr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,tr(r,o))}const yr=Symbol.for("v-scx"),_r=()=>{{const e=rs(yr);return e}};function br(e,t){return Tr(e,null,t)}function Sr(e,t){return Tr(e,null,{flush:"post"})}function xr(e,t){return Tr(e,null,{flush:"sync"})}const Cr={};function Er(e,t,n){return Tr(e,t,n)}function Tr(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:l,onTrigger:a}=s){if(t&&i){const e=t;t=(...t)=>{e(...t),k()}}const u=xi,f=e=>!0===r?e:Nr(e,!1===r?1:void 0);let p,h,g=!1,v=!1;if(jt(e)?(p=()=>e.value,g=Mt(e)):Rt(e)?(p=()=>f(e),g=!0):m(e)?(v=!0,g=e.some((e=>Rt(e)||Mt(e))),p=()=>e.map((e=>jt(e)?e.value:Rt(e)?f(e):_(e)?gn(e,u,2):void 0))):p=_(e)?t?()=>gn(e,u,2):()=>(h&&h(),vn(e,u,3,[b])):c,t&&r){const e=p;p=()=>Nr(e())}let y,b=e=>{h=E.onStop=()=>{gn(e,u,4),h=E.onStop=void 0}};if(Ri){if(b=c,t?n&&vn(t,u,3,[p(),v?[]:void 0,b]):p(),"sync"!==o)return c;{const e=_r();y=e.__watcherHandles||(e.__watcherHandles=[])}}let S=v?new Array(e.length).fill(Cr):Cr;const x=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(r||g||(v?e.some(((e,t)=>D(e,S[t]))):D(e,S)))&&(h&&h(),vn(t,u,3,[e,S===Cr?void 0:v&&S[0]===Cr?[]:S,b]),S=e)}else E.run()};let C;x.allowRecurse=!!t,"sync"===o?C=x:"post"===o?C=()=>Es(x,u&&u.suspense):(x.pre=!0,u&&(x.id=u.uid),C=()=>An(x));const E=new _e(p,c,C),T=ve(),k=()=>{E.stop(),T&&d(T.effects,E)};return t?n?x():S=E.run():"post"===o?Es(E.run.bind(E),u&&u.suspense):E.run(),y&&y.push(k),k}function kr(e,t,n){const r=this.proxy,o=b(e)?e.includes(".")?wr(r,e):()=>r[e]:e.bind(r,r);let s;_(t)?s=t:(s=t.handler,n=t);const i=ki(this),c=Tr(o,s.bind(r),n);return i(),c}function wr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e0){if(n>=t)return e;n++}if((r=r||new Set).has(e))return e;if(r.add(e),jt(e))Nr(e.value,t,n,r);else if(m(e))for(let o=0;o{Nr(e,t,n,r)}));else if(w(e))for(const o in e)Nr(e[o],t,n,r);return e}function Ar(e,t){if(null===jn)return e;const n=Di(jn)||jn.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),lo((()=>{e.isUnmounting=!0})),e}const Lr=[Function,Array],Pr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Lr,onEnter:Lr,onAfterEnter:Lr,onEnterCancelled:Lr,onBeforeLeave:Lr,onLeave:Lr,onAfterLeave:Lr,onLeaveCancelled:Lr,onBeforeAppear:Lr,onAppear:Lr,onAfterAppear:Lr,onAppearCancelled:Lr},$r={name:"BaseTransition",props:Pr,setup(e,{slots:t}){const n=Ci(),r=Mr();return()=>{const o=t.default&&Ur(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==Us){0,s=t,e=!0;break}}const i=Pt(e),{mode:c}=i;if(r.isLeaving)return Vr(s);const l=Br(s);if(!l)return Vr(s);const a=Dr(l,i,r,n);Hr(l,a);const u=n.subTree,f=u&&Br(u);if(f&&f.type!==Us&&!ti(l,f)){const e=Dr(f,i,r,n);if(Hr(f,e),"out-in"===c)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Vr(s);"in-out"===c&&l.type!==Us&&(e.delayLeave=(e,t,n)=>{Fr(r,f)[String(f.key)]=f,e[Rr]=()=>{t(),e[Rr]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function Fr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dr(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:v,onAfterAppear:y,onAppearCancelled:_}=t,b=String(e.key),S=Fr(n,e),x=(e,t)=>{e&&vn(e,r,9,t)},C=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},E={mode:s,persisted:i,beforeEnter(t){let r=c;if(!n.isMounted){if(!o)return;r=g||c}t[Rr]&&t[Rr](!0);const s=S[b];s&&ti(e,s)&&s.el[Rr]&&s.el[Rr](),x(r,[t])},enter(e){let t=l,r=a,s=u;if(!n.isMounted){if(!o)return;t=v||l,r=y||a,s=_||u}let i=!1;const c=e[Or]=t=>{i||(i=!0,x(t?s:r,[e]),E.delayedLeave&&E.delayedLeave(),e[Or]=void 0)};t?C(t,[e,c]):c()},leave(t,r){const o=String(e.key);if(t[Or]&&t[Or](!0),n.isUnmounting)return r();x(f,[t]);let s=!1;const i=t[Rr]=n=>{s||(s=!0,r(),x(n?h:p,[t]),t[Rr]=void 0,S[o]===e&&delete S[o])};S[o]=e,d?C(d,[t,i]):i()},clone(e){return Dr(e,t,n,r)}};return E}function Vr(e){if(Kr(e))return(e=ui(e)).children=null,e}function Br(e){return Kr(e)?e.children?e.children[0]:void 0:e}function Hr(e,t){6&e.shapeFlag&&e.component?Hr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ur(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let e=0;ef({name:e.name},t,{setup:e}))():e}const qr=e=>!!e.type.__asyncLoader +/*! #__NO_SIDE_EFFECTS__ */;function Wr(e){_(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:c}=e;let l,a=null,u=0;const f=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((u++,a=null,f()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return jr({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=xi;if(l)return()=>zr(l,e);const t=t=>{a=null,yn(t,e,13,!r)};if(i&&e.suspense||Ri)return f().then((t=>()=>zr(t,e))).catch((e=>(t(e),()=>r?ci(r,{error:e}):null)));const c=qt(!1),u=qt(),d=qt(!!o);return o&&setTimeout((()=>{d.value=!1}),o),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),f().then((()=>{c.value=!0,e.parent&&Kr(e.parent.vnode)&&(e.parent.effect.dirty=!0,An(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>c.value&&l?zr(l,e):u.value&&r?ci(r,{error:u.value}):n&&!d.value?ci(n):void 0}})}function zr(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=ci(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Kr=e=>e.type.__isKeepAlive,Gr={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ci(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:a,um:u,o:{createElement:f}}}=r,d=f("div");function p(e){eo(e),u(e,n,c,!0)}function h(e){o.forEach(((t,n)=>{const r=Hi(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=o.get(e);i&&ti(t,i)?i&&eo(i):p(t),o.delete(e),s.delete(e)}r.activate=(e,t,n,r,o)=>{const s=e.component;a(e,t,n,0,c),l(s.vnode,e,t,n,s,c,r,e.slotScopeIds,o),Es((()=>{s.isDeactivated=!1,s.a&&V(s.a);const t=e.props&&e.props.onVnodeMounted;t&&yi(t,s.parent,e)}),c)},r.deactivate=e=>{const t=e.component;a(e,d,null,1,c),Es((()=>{t.da&&V(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&yi(n,t.parent,e),t.isDeactivated=!0}),c)},Er((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>Jr(e,t))),t&&h((e=>!Jr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,to(n.subTree))};return so(v),co(v),lo((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=to(t);if(e.type!==o.type||e.key!==o.key)p(e);else{eo(o);const e=o.component.da;e&&Es(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return i=null,n;if(!(ei(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return i=null,r;let c=to(r);const l=c.type,a=Hi(qr(c)?c.type.__asyncResolved||{}:l),{include:u,exclude:f,max:d}=e;if(u&&(!a||!Jr(u,a))||f&&a&&Jr(f,a))return i=c,r;const p=null==c.key?l:c.key,h=o.get(p);return c.el&&(c=ui(c),128&r.shapeFlag&&(r.ssContent=c)),g=p,h?(c.el=h.el,c.component=h.component,c.transition&&Hr(c,c.transition),c.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),d&&s.size>parseInt(d,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,ur(r.type)?r:c}}};function Jr(e,t){return m(e)?e.some((e=>Jr(e,t))):b(e)?e.split(",").includes(t):"[object RegExp]"===T(e)&&e.test(t)}function Yr(e,t){Qr(e,"a",t)}function Xr(e,t){Qr(e,"da",t)}function Qr(e,t,n=xi){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(no(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Kr(e.parent.vnode)&&Zr(r,t,n,e),e=e.parent}}function Zr(e,t,n,r){const o=no(t,e,r,!0);ao((()=>{d(r[t],o)}),n)}function eo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function to(e){return 128&e.shapeFlag?e.ssContent:e}function no(e,t,n=xi,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Ae();const o=ki(n),s=vn(t,n,e,r);return o(),Ie(),s});return r?o.unshift(s):o.push(s),s}}const ro=e=>(t,n=xi)=>(!Ri||"sp"===e)&&no(e,((...e)=>t(...e)),n),oo=ro("bm"),so=ro("m"),io=ro("bu"),co=ro("u"),lo=ro("bum"),ao=ro("um"),uo=ro("sp"),fo=ro("rtg"),po=ro("rtc");function ho(e,t=xi){no("ec",e,t)}function mo(e,t,n,r){let o;const s=n&&n[r];if(m(e)||b(e)){o=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function vo(e,t,n={},r,o){if(jn.isCE||jn.parent&&qr(jn.parent)&&jn.parent.isCE)return"default"!==t&&(n.name=t),ci("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),zs();const i=s&&yo(s(n)),c=Zs(Bs,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function yo(e){return e.some((e=>!ei(e)||e.type!==Us&&!(e.type===Bs&&!yo(e.children))))?e:null}function _o(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:F(r)]=e[r];return n}const bo=e=>e?Ni(e)?Di(e)||e.proxy:bo(e.parent):null,So=f(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bo(e.parent),$root:e=>bo(e.root),$emit:e=>e.emit,$options:e=>qo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,An(e.update)}),$nextTick:e=>e.n||(e.n=Nn.bind(e.proxy)),$watch:e=>kr.bind(e)}),xo=(e,t)=>e!==s&&!e.__isScriptSetup&&h(e,t),Co={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:c,type:l,appContext:a}=e;let u;if("$"!==t[0]){const l=c[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(xo(r,t))return c[t]=1,r[t];if(o!==s&&h(o,t))return c[t]=2,o[t];if((u=e.propsOptions[0])&&h(u,t))return c[t]=3,i[t];if(n!==s&&h(n,t))return c[t]=4,n[t];Bo&&(c[t]=0)}}const f=So[t];let d,p;return f?("$attrs"===t&&Be(e,0,t),f(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==s&&h(n,t)?(c[t]=4,n[t]):(p=a.config.globalProperties,h(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return xo(o,t)?(o[t]=n,!0):r!==s&&h(r,t)?(r[t]=n,!0):!h(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},c){let l;return!!n[c]||e!==s&&h(e,c)||xo(t,c)||(l=i[0])&&h(l,c)||h(r,c)||h(So,c)||h(o.config.globalProperties,c)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Eo=f({},Co,{get(e,t){if(t!==Symbol.unscopables)return Co.get(e,t,e)},has(e,t){return"_"!==t[0]&&!z(t)}});function To(){return null}function ko(){return null}function wo(e){0}function No(e){0}function Ao(){return null}function Io(){0}function Ro(e,t){return null}function Oo(){return Lo().slots}function Mo(){return Lo().attrs}function Lo(){const e=Ci();return e.setupContext||(e.setupContext=Fi(e))}function Po(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function $o(e,t){const n=Po(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?m(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Fo(e,t){return e&&t?m(e)&&m(t)?e.concat(t):f({},Po(e),Po(t)):e||t}function Do(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Vo(e){const t=Ci();let n=e();return wi(),C(n)&&(n=n.catch((e=>{throw ki(t),e}))),[n,()=>ki(t)]}let Bo=!0;function Ho(e){const t=qo(e),n=e.proxy,r=e.ctx;Bo=!1,t.beforeCreate&&Uo(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:l,provide:a,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:E,render:T,renderTracked:k,renderTriggered:w,errorCaptured:N,serverPrefetch:A,expose:I,inheritAttrs:R,components:O,directives:M,filters:L}=t;if(u&&function(e,t,n=c){m(e)&&(e=Go(e));for(const n in e){const r=e[n];let o;o=x(r)?"default"in r?rs(r.from||n,r.default,!0):rs(r.from||n):rs(r),jt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(u,r,null),i)for(const e in i){const t=i[e];_(t)&&(r[e]=t.bind(n))}if(o){0;const t=o.call(n,n);0,x(t)&&(e.data=kt(t))}if(Bo=!0,s)for(const e in s){const t=s[e],o=_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):c;0;const i=!_(t)&&_(t.set)?t.set.bind(n):c,l=qi({get:o,set:i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(l)for(const e in l)jo(l[e],r,n,e);if(a){const e=_(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{ns(t,e[t])}))}function P(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&Uo(f,e,"c"),P(oo,d),P(so,p),P(io,h),P(co,g),P(Yr,v),P(Xr,y),P(ho,N),P(po,k),P(fo,w),P(lo,S),P(ao,E),P(uo,A),m(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===c&&(e.render=T),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),M&&(e.directives=M)}function Uo(e,t,n){vn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function jo(e,t,n,r){const o=r.includes(".")?wr(n,r):()=>n[r];if(b(e)){const n=t[e];_(n)&&Er(o,n)}else if(_(e))Er(o,e.bind(n));else if(x(e))if(m(e))e.forEach((e=>jo(e,t,n,r)));else{const r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Er(o,r,e)}else 0}function qo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((e=>Wo(l,e,i,!0))),Wo(l,t,i)):l=t,x(t)&&s.set(t,l),l}function Wo(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Wo(e,s,n,!0),o&&o.forEach((t=>Wo(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=zo[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const zo={data:Ko,props:Xo,emits:Xo,methods:Yo,computed:Yo,beforeCreate:Jo,created:Jo,beforeMount:Jo,mounted:Jo,beforeUpdate:Jo,updated:Jo,beforeDestroy:Jo,beforeUnmount:Jo,destroyed:Jo,unmounted:Jo,activated:Jo,deactivated:Jo,errorCaptured:Jo,serverPrefetch:Jo,components:Yo,directives:Yo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const r in t)n[r]=Jo(e[r],t[r]);return n},provide:Ko,inject:function(e,t){return Yo(Go(e),Go(t))}};function Ko(e,t){return t?e?function(){return f(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Go(e){if(m(e)){const t={};for(let n=0;n1)return n&&_(t)?t.call(r&&r.proxy):t}else 0}function os(){return!!(xi||jn||ts)}function ss(e,t,n,r){const[o,i]=e.propsOptions;let c,l=!1;if(t)for(let s in t){if(A(s))continue;const a=t[s];let u;o&&h(o,u=M(s))?i&&i.includes(u)?(c||(c={}))[u]=a:n[u]=a:Un(e.emitsOptions,s)||s in r&&a===r[s]||(r[s]=a,l=!0)}if(i){const t=Pt(n),r=c||s;for(let s=0;s{u=!0;const[n,r]=cs(e,t,!0);f(l,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!c&&!u)return x(e)&&r.set(e,i),i;if(m(c))for(let e=0;e-1,r[1]=n<0||e-1||h(r,"default"))&&a.push(t)}}}}const d=[l,a];return x(e)&&r.set(e,d),d}function ls(e){return"$"!==e[0]&&!A(e)}function as(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function us(e,t){return as(e)===as(t)}function fs(e,t){return m(t)?t.findIndex((t=>us(t,e))):_(t)&&us(t,e)?0:-1}const ds=e=>"_"===e[0]||"$stable"===e,ps=e=>m(e)?e.map(hi):[hi(e)],hs=(e,t,n)=>{if(t._n)return t;const r=Jn(((...e)=>ps(t(...e))),n);return r._c=!1,r},ms=(e,t,n)=>{const r=e._ctx;for(const n in e){if(ds(n))continue;const o=e[n];if(_(o))t[n]=hs(0,o,r);else if(null!=o){0;const e=ps(o);t[n]=()=>e}}},gs=(e,t)=>{const n=ps(t);e.slots.default=()=>n},vs=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Pt(t),B(t,"_",n)):ms(t,e.slots={})}else e.slots={},t&&gs(e,t);B(e.slots,ri,1)},ys=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,c=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(f(o,t),n||1!==e||delete o._):(i=!t.$stable,ms(t,o)),c=t}else t&&(gs(e,t),c={default:1});if(i)for(const e in o)ds(e)||null!=c[e]||delete o[e]};function _s(e,t,n,r,o=!1){if(m(e))return void e.forEach(((e,s)=>_s(e,t&&(m(t)?t[s]:t),n,r,o)));if(qr(r)&&!o)return;const i=4&r.shapeFlag?Di(r.component)||r.component.proxy:r.el,c=o?null:i,{i:l,r:a}=e;const u=t&&t.r,f=l.refs===s?l.refs={}:l.refs,p=l.setupState;if(null!=u&&u!==a&&(b(u)?(f[u]=null,h(p,u)&&(p[u]=null)):jt(u)&&(u.value=null)),_(a))gn(a,l,12,[c,f]);else{const t=b(a),r=jt(a);if(t||r){const s=()=>{if(e.f){const n=t?h(p,a)?p[a]:f[a]:a.value;o?m(n)&&d(n,i):m(n)?n.includes(i)||n.push(i):t?(f[a]=[i],h(p,a)&&(p[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else t?(f[a]=c,h(p,a)&&(p[a]=c)):r&&(a.value=c,e.k&&(f[e.k]=c))};c?(s.id=-1,Es(s,n)):s()}else 0}}let bs=!1;const Ss=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,xs=e=>8===e.nodeType;function Cs(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:c,insert:l,createComment:u}}=e,f=(n,r,c,a,u,_=!1)=>{const b=xs(n)&&"["===n.data,S=()=>m(n,r,c,a,u,b),{type:x,ref:C,shapeFlag:E,patchFlag:T}=r;let k=n.nodeType;r.el=n,-2===T&&(_=!1,r.dynamicChildren=null);let w=null;switch(x){case Hs:3!==k?""===r.children?(l(r.el=o(""),i(n),n),w=n):w=S():(n.data!==r.children&&(bs=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&un("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),n.data=r.children),w=s(n));break;case Us:y(n)?(w=s(n),v(r.el=n.content.firstChild,n,c)):w=8!==k||b?S():s(n);break;case js:if(b&&(k=(n=s(n)).nodeType),1===k||3===k){w=n;const e=!r.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:l,props:u,patchFlag:f,shapeFlag:d,dirs:h,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==f){h&&Ir(t,null,n,"created");let l,_=!1;if(y(e)){_=Is(o,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&m.beforeEnter(r),v(r,e,n),t.el=e=r}if(16&d&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,o,s,i),l=!1;for(;r;){bs=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!l&&(un("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),l=!0);const t=r;r=r.nextSibling,c(t)}}else 8&d&&e.textContent!==t.children&&(bs=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&un("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),e.textContent=t.children);if(u)if(g||!i||48&f)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!A(t)||"."===t[0])&&r(e,t,null,u[t],void 0,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,void 0,void 0,n);(l=u&&u.onVnodeBeforeMount)&&yi(l,n,t),h&&Ir(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||h||_)&&gr((()=>{l&&yi(l,n,t),_&&m.enter(e),h&&Ir(t,null,n,"mounted")}),o)}return e.nextSibling},p=(e,t,r,o,s,i,c)=>{c=c||!!t.dynamicChildren;const l=t.children,a=l.length;let u=!1;for(let t=0;t{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const f=i(e),d=p(s(e),t,f,n,r,o,c);return d&&xs(d)&&"]"===d.data?s(t.anchor=d):(bs=!0,l(t.anchor=u("]"),f,d),d)},m=(e,t,r,o,l,a)=>{if(bs=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&un("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":xs(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;c(n)}}const u=s(e),f=i(e);return c(e),n(null,t,f,u,r,o,Ss(f),l),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=s(e))&&xs(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},v=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&un("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),Mn(),void(t._vnode=e);bs=!1,f(t.firstChild,e,null,null,null),Mn(),t._vnode=e,bs&&console.error("Hydration completed but contains mismatches.")},f]}const Es=gr;function Ts(e){return ws(e)}function ks(e){return ws(e,Cs)}function ws(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(q().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);q().__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:l,createText:a,createComment:u,setText:f,setElementText:d,parentNode:p,nextSibling:m,setScopeId:g=c,insertStaticContent:v}=e,y=(e,t,n,r=null,o=null,s=null,i=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ti(e,t)&&(r=Y(e),W(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:f}=t;switch(a){case Hs:_(e,t,n,r);break;case Us:b(e,t,n,r);break;case js:null==e&&S(t,n,r,i);break;case Bs:R(e,t,n,r,o,s,i,c,l);break;default:1&f?C(e,t,n,r,o,s,i,c,l):6&f?O(e,t,n,r,o,s,i,c,l):(64&f||128&f)&&a.process(e,t,n,r,o,s,i,c,l,Z)}null!=u&&o&&_s(u,e&&e.ref,s,t||e,!t)},_=(e,t,r,o)=>{if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,r,o)=>{null==e?n(t.el=u(t.children||""),r,o):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),r(e),e=n;r(t)},C=(e,t,n,r,o,s,i,c,l)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?E(t,n,r,o,s,i,c,l):w(e,t,o,s,i,c,l)},E=(e,t,r,s,i,c,a,u)=>{let f,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(f=e.el=l(e.type,c,h&&h.is,h),8&m?d(f,e.children):16&m&&k(e.children,f,null,s,i,Ns(e,c),a,u),v&&Ir(e,null,s,"created"),T(f,e,e.scopeId,a,s),h){for(const t in h)"value"===t||A(t)||o(f,t,null,h[t],c,e.children,s,i,J);"value"in h&&o(f,"value",null,h.value,c),(p=h.onVnodeBeforeMount)&&yi(p,s,e)}v&&Ir(e,null,s,"beforeMount");const y=Is(i,g);y&&g.beforeEnter(f),n(f,t,r),((p=h&&h.onVnodeMounted)||y||v)&&Es((()=>{p&&yi(p,s,e),y&&g.enter(f),v&&Ir(e,null,s,"mounted")}),i)},T=(e,t,n,r,o)=>{if(n&&g(e,n),r)for(let t=0;t{for(let a=l;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||s,m=t.props||s;let g;if(n&&As(n,!1),(g=m.onVnodeBeforeUpdate)&&yi(g,n,t,e),p&&Ir(t,e,n,"beforeUpdate"),n&&As(n,!0),f?N(e.dynamicChildren,f,a,n,r,Ns(t,i),c):l||B(e,t,a,null,n,r,Ns(t,i),c,!1),u>0){if(16&u)I(a,t,h,m,n,r,i);else if(2&u&&h.class!==m.class&&o(a,"class",null,m.class,i),4&u&&o(a,"style",h.style,m.style,i),8&u){const s=t.dynamicProps;for(let t=0;t{g&&yi(g,n,t,e),p&&Ir(t,e,n,"updated")}),r)},N=(e,t,n,r,o,s,i)=>{for(let c=0;c{if(n!==r){if(n!==s)for(const s in n)A(s)||s in r||o(e,s,n[s],null,l,t.children,i,c,J);for(const s in r){if(A(s))continue;const a=r[s],u=n[s];a!==u&&"value"!==s&&o(e,s,u,a,l,t.children,i,c,J)}"value"in r&&o(e,"value",n.value,r.value,l)}},R=(e,t,r,o,s,i,c,l,u)=>{const f=t.el=e?e.el:a(""),d=t.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(f,r,o),n(d,r,o),k(t.children||[],r,d,s,i,c,l,u)):p>0&&64&p&&h&&e.dynamicChildren?(N(e.dynamicChildren,h,r,s,i,c,l),(null!=t.key||s&&t===s.subTree)&&Rs(e,t,!0)):B(e,t,r,d,s,i,c,l,u)},O=(e,t,n,r,o,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):L(t,n,r,o,s,i,l):$(e,t,l)},L=(e,t,n,r,o,s,i)=>{const c=e.component=Si(e,r,o);if(Kr(e)&&(c.ctx.renderer=Z),Oi(c),c.asyncDep){if(o&&o.registerDep(c,F),!e.el){const e=c.subTree=ci(Us);b(null,e,t,n)}}else F(c,e,t,n,o,s,i)},$=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:c,patchFlag:l}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!c||c&&c.$stable)||r!==i&&(r?!i||er(r,i,a):!!i);if(1024&l)return!0;if(16&l)return r?er(r,i,a):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;txn&&Sn.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,r,o,s,i)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:a}=e;{const n=Os(e);if(n)return t&&(t.el=a.el,D(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,f=t;0,As(e,!1),t?(t.el=a.el,D(e,t,i)):t=a,n&&V(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&yi(u,c,t,a),As(e,!0);const d=Yn(e);0;const h=e.subTree;e.subTree=d,y(h,d,p(h.el),Y(h),e,o,s),t.el=d.el,null===f&&tr(e,d.el),r&&Es(r,o),(u=t.props&&t.props.onVnodeUpdated)&&Es((()=>yi(u,c,t,a)),o)}else{let i;const{el:c,props:l}=t,{bm:a,m:u,parent:f}=e,d=qr(t);if(As(e,!1),a&&V(a),!d&&(i=l&&l.onVnodeBeforeMount)&&yi(i,f,t),As(e,!0),c&&te){const n=()=>{e.subTree=Yn(e),te(c,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=Yn(e);0,y(null,i,n,r,e,o,s),t.el=i.el}if(u&&Es(u,o),!d&&(i=l&&l.onVnodeMounted)){const e=t;Es((()=>yi(i,f,e)),o)}(256&t.shapeFlag||f&&qr(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Es(e.a,o),e.isMounted=!0,t=n=r=null}},a=e.effect=new _e(l,c,(()=>An(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.id=e.uid,As(e,!0),u()},D=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,c=Pt(o),[l]=e.propsOptions;let a=!1;if(!(r||i>0)||16&i){let r;ss(e,t,o,s)&&(a=!0);for(const s in c)t&&(h(t,s)||(r=P(s))!==s&&h(t,r))||(l?!n||void 0===n[s]&&void 0===n[r]||(o[s]=is(l,c,s,void 0,e,!0)):delete o[s]);if(s!==c)for(const e in s)t&&h(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r{const a=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void U(a,f,n,r,o,s,i,c,l);if(256&p)return void H(a,f,n,r,o,s,i,c,l)}8&h?(16&u&&J(a,o,s),f!==a&&d(n,f)):16&u?16&h?U(a,f,n,r,o,s,i,c,l):J(a,o,s,!0):(8&u&&d(n,""),16&h&&k(f,n,r,o,s,i,c,l))},H=(e,t,n,r,o,s,c,l,a)=>{t=t||i;const u=(e=e||i).length,f=t.length,d=Math.min(u,f);let p;for(p=0;pf?J(e,o,s,!0,!1,d):k(t,n,r,o,s,c,l,a,d)},U=(e,t,n,r,o,s,c,l,a)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const r=e[u],i=t[u]=a?mi(t[u]):hi(t[u]);if(!ti(r,i))break;y(r,i,n,null,o,s,c,l,a),u++}for(;u<=d&&u<=p;){const r=e[d],i=t[p]=a?mi(t[p]):hi(t[p]);if(!ti(r,i))break;y(r,i,n,null,o,s,c,l,a),d--,p--}if(u>d){if(u<=p){const e=p+1,i=ep)for(;u<=d;)W(e[u],o,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=a?mi(t[u]):hi(t[u]);null!=e.key&&g.set(e.key,u)}let v,_=0;const b=p-m+1;let S=!1,x=0;const C=new Array(b);for(u=0;u=b){W(r,o,s,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(v=m;v<=p;v++)if(0===C[v-m]&&ti(r,t[v])){i=v;break}void 0===i?W(r,o,s,!0):(C[i-m]=u+1,i>=x?x=i:S=!0,y(r,t[i],n,null,o,s,c,l,a),_++)}const E=S?function(e){const t=e.slice(),n=[0];let r,o,s,i,c;const l=e.length;for(r=0;r>1,e[n[c]]0&&(t[r]=n[s-1]),n[s]=r)}}s=n.length,i=n[s-1];for(;s-- >0;)n[s]=i,i=t[i];return n}(C):i;for(v=E.length-1,u=b-1;u>=0;u--){const e=m+u,i=t[e],d=e+1{const{el:i,type:c,transition:l,children:a,shapeFlag:u}=e;if(6&u)return void j(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void c.move(e,t,r,Z);if(c===Bs){n(i,t,r);for(let e=0;e{let s;for(;e&&e!==t;)s=m(e),n(e,r,o),e=s;n(t,r,o)})(e,t,r);if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(i),n(i,t,r),Es((()=>l.enter(i)),s);else{const{leave:e,delayLeave:o,afterLeave:s}=l,c=()=>n(i,t,r),a=()=>{e(i,(()=>{c(),s&&s()}))};o?o(i,c,a):a()}else n(i,t,r)},W=(e,t,n,r=!1,o=!1)=>{const{type:s,props:i,ref:c,children:l,dynamicChildren:a,shapeFlag:u,patchFlag:f,dirs:d}=e;if(null!=c&&_s(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&d,h=!qr(e);let m;if(h&&(m=i&&i.onVnodeBeforeUnmount)&&yi(m,t,e),6&u)G(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&Ir(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,Z,r):a&&(s!==Bs||f>0&&64&f)?J(a,t,n,!1,!0):(s===Bs&&384&f||!o&&16&u)&&J(l,t,n),r&&z(e)}(h&&(m=i&&i.onVnodeUnmounted)||p)&&Es((()=>{m&&yi(m,t,e),p&&Ir(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===Bs)return void K(n,o);if(t===js)return void x(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:r}=s,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),r(e),e=n;r(t)},G=(e,t,n)=>{const{bum:r,scope:o,update:s,subTree:i,um:c}=e;r&&V(r),o.stop(),s&&(s.active=!1,W(i,e,t,n)),c&&Es(c,t),Es((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,r=!1,o=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let X=!1;const Q=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,On(),Mn(),X=!1),t._vnode=e},Z={p:y,um:W,m:j,r:z,mt:L,mc:k,pc:B,pbc:N,n:Y,o:e};let ee,te;return t&&([ee,te]=t(Z)),{render:Q,hydrate:ee,createApp:es(Q,ee)}}function Ns({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function As({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Is(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rs(e,t,n=!1){const r=e.children,o=t.children;if(m(r)&&m(o))for(let e=0;ee&&(e.disabled||""===e.disabled),Ls=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ps=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,$s=(e,t)=>{const n=e&&e.to;if(b(n)){if(t){const e=t(n);return e}return null}return n};function Fs(e,t,n,{o:{insert:r},m:o},s=2){0===s&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:a,props:u}=e,f=2===s;if(f&&r(i,t,n),(!f||Ms(u))&&16&l)for(let e=0;e{16&y&&u(_,e,t,o,s,i,c,l)};v?g(n,a):f&&g(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=Ms(e.props),g=m?n:u,y=m?r:p;if("svg"===i||Ls(u)?i="svg":("mathml"===i||Ps(u))&&(i="mathml"),b?(d(e.dynamicChildren,b,g,o,s,i,c),Rs(e,t,!0)):l||f(e,t,g,y,o,s,i,c,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fs(t,n,r,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$s(t.props,h);e&&Fs(t,e,null,a,0)}else m&&Fs(t,u,p,a,1)}Vs(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:a,targetAnchor:u,target:f,props:d}=e;if(f&&s(u),i&&s(a),16&c){const e=i||!Ms(d);for(let r=0;r0?Ws||i:null,Ks(),Js>0&&Ws&&Ws.push(e),e}function Qs(e,t,n,r,o,s){return Xs(ii(e,t,n,r,o,s,!0))}function Zs(e,t,n,r,o){return Xs(ci(e,t,n,r,o,!0))}function ei(e){return!!e&&!0===e.__v_isVNode}function ti(e,t){return e.type===t.type&&e.key===t.key}function ni(e){Gs=e}const ri="__vInternal",oi=({key:e})=>null!=e?e:null,si=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?b(e)||jt(e)||_(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function ii(e,t=null,n=null,r=0,o=null,s=(e===Bs?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oi(t),ref:t&&si(t),scopeId:qn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:jn};return c?(gi(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=b(n)?8:16),Js>0&&!i&&Ws&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Ws.push(l),l}const ci=li;function li(e,t=null,n=null,r=0,o=null,s=!1){if(e&&e!==sr||(e=Us),ei(e)){const r=ui(e,t,!0);return n&&gi(r,n),Js>0&&!s&&Ws&&(6&r.shapeFlag?Ws[Ws.indexOf(e)]=r:Ws.push(r)),r.patchFlag|=-2,r}if(ji(e)&&(e=e.__vccOpts),t){t=ai(t);let{class:e,style:n}=t;e&&!b(e)&&(t.class=Q(e)),x(n)&&(Lt(n)&&!m(n)&&(n=f({},n)),t.style=K(n))}return ii(e,t,n,r,o,b(e)?1:ur(e)?128:(e=>e.__isTeleport)(e)?64:x(e)?4:_(e)?2:0,s,!0)}function ai(e){return e?Lt(e)||ri in e?f({},e):e:null}function ui(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,c=t?vi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&oi(c),ref:t&&t.ref?n&&o?m(o)?o.concat(si(t)):[o,si(t)]:si(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Bs?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ui(e.ssContent),ssFallback:e.ssFallback&&ui(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function fi(e=" ",t=0){return ci(Hs,null,e,t)}function di(e,t){const n=ci(js,null,e);return n.staticCount=t,n}function pi(e="",t=!1){return t?(zs(),Zs(Us,null,e)):ci(Us,null,e)}function hi(e){return null==e||"boolean"==typeof e?ci(Us):m(e)?ci(Bs,null,e.slice()):"object"==typeof e?mi(e):ci(Hs,null,String(e))}function mi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ui(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),gi(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||ri in t?3===r&&jn&&(1===jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jn}}else _(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),64&r?(n=16,t=[fi(t)]):n=8);e.children=t,e.shapeFlag|=n}function vi(...e){const t={};for(let n=0;nxi||jn;let Ei,Ti;{const e=q(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Ei=t("__VUE_INSTANCE_SETTERS__",(e=>xi=e)),Ti=t("__VUE_SSR_SETTERS__",(e=>Ri=e))}const ki=e=>{const t=xi;return Ei(e),e.scope.on(),()=>{e.scope.off(),Ei(t)}},wi=()=>{xi&&xi.scope.off(),Ei(null)};function Ni(e){return 4&e.vnode.shapeFlag}let Ai,Ii,Ri=!1;function Oi(e,t=!1){t&&Ti(t);const{props:n,children:r}=e.vnode,o=Ni(e);!function(e,t,n,r=!1){const o={},s={};B(s,ri,1),e.propsDefaults=Object.create(null),ss(e,t,o,s);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:wt(o):e.type.props?e.props=o:e.props=s,e.attrs=s}(e,n,o,t),vs(e,r);const s=o?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=$t(new Proxy(e.ctx,Co)),!1;const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Fi(e):null,o=ki(e);Ae();const s=gn(r,e,0,[e.props,n]);if(Ie(),o(),C(s)){if(s.then(wi,wi),t)return s.then((n=>{Mi(e,n,t)})).catch((t=>{yn(t,e,0)}));e.asyncDep=s}else Mi(e,s,t)}else $i(e,t)}(e,t):void 0;return t&&Ti(!1),s}function Mi(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=Qt(t)),$i(e,n)}function Li(e){Ai=e,Ii=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eo))}}const Pi=()=>!Ai;function $i(e,t,n){const r=e.type;if(!e.render){if(!t&&Ai&&!r.render){const t=r.template||qo(e).template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:i}=r,c=f(f({isCustomElement:n,delimiters:s},o),i);r.render=Ai(t,c)}}e.render=r.render||c,Ii&&Ii(e)}{const t=ki(e);Ae();try{Ho(e)}finally{Ie(),t()}}}function Fi(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,0,"$attrs"),t[n]}}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Di(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qt($t(e.exposed)),{get(t,n){return n in t?t[n]:n in So?So[n](e):void 0},has(e,t){return t in e||t in So}}))}const Vi=/(?:^|[-_])(\w)/g,Bi=e=>e.replace(Vi,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Hi(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function Ui(e,t,n=!1){let r=Hi(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Bi(r):n?"App":"Anonymous"}function ji(e){return _(e)&&"__vccOpts"in e}const qi=(e,t)=>Bt(e,0,Ri);function Wi(e,t,n=s){const r=Ci();const o=M(t),i=P(t),c=en(((s,c)=>{let l;return xr((()=>{const n=e[t];D(l,n)&&(l=n,c())})),{get(){return s(),n.get?n.get(l):l},set(e){const s=r.vnode.props;s&&(t in s||o in s||i in s)&&(`onUpdate:${t}`in s||`onUpdate:${o}`in s||`onUpdate:${i}`in s)||!D(e,l)||(l=e,c()),r.emit(`update:${t}`,n.set?n.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return c[Symbol.iterator]=()=>{let t=0;return{next(){return t<2?{value:t++?e[l]||{}:c,done:!1}:{done:!0}}}},c}function zi(e,t,n){const r=arguments.length;return 2===r?x(t)&&!m(t)?ei(t)?ci(e,null,[t]):ci(e,t):ci(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ei(n)&&(n=[n]),ci(e,t,n))}function Ki(){return void 0}function Gi(e,t,n,r){const o=n[r];if(o&&Ji(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function Ji(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Ws&&Ws.push(e),!0}const Yi="3.4.21",Xi=c,Qi=mn,Zi=Fn,ec=function e(t,n){var r,o;if(Fn=t,Fn)Fn.enabled=!0,Dn.forEach((({event:e,args:t})=>Fn.emit(e,...t))),Dn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Fn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vn=!0,Dn=[])}),3e3)}else Vn=!0,Dn=[]},tc={createComponentInstance:Si,setupComponent:Oi,renderComponentRoot:Yn,setCurrentRenderingInstance:Wn,isVNode:ei,normalizeVNode:hi},nc=null,rc=null,oc=null,sc="undefined"!=typeof document?document:null,ic=sc&&sc.createElement("template"),cc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?sc.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?sc.createElementNS("http://www.w3.org/1998/Math/MathML",e):sc.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>sc.createTextNode(e),createComment:e=>sc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{ic.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e;const o=ic.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},lc="transition",ac="animation",uc=Symbol("_vtc"),fc=(e,{slots:t})=>zi($r,gc(e),t);fc.displayName="Transition";const dc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pc=fc.props=f({},Pr,dc),hc=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},mc=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function gc(e){const t={};for(const n in e)n in dc||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(x(e))return[vc(e.enter),vc(e.leave)];{const t=vc(e);return[t,t]}}(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:b,onLeave:S,onLeaveCancelled:C,onBeforeAppear:E=y,onAppear:T=_,onAppearCancelled:k=b}=t,w=(e,t,n)=>{_c(e,t?u:c),_c(e,t?a:i),n&&n()},N=(e,t)=>{e._isLeaving=!1,_c(e,d),_c(e,h),_c(e,p),t&&t()},A=e=>(t,n)=>{const o=e?T:_,i=()=>w(t,e,n);hc(o,[t,i]),bc((()=>{_c(t,e?l:s),yc(t,e?u:c),mc(o)||xc(t,r,g,i)}))};return f(t,{onBeforeEnter(e){hc(y,[e]),yc(e,s),yc(e,i)},onBeforeAppear(e){hc(E,[e]),yc(e,l),yc(e,a)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>N(e,t);yc(e,d),kc(),yc(e,p),bc((()=>{e._isLeaving&&(_c(e,d),yc(e,h),mc(S)||xc(e,r,v,n))})),hc(S,[e,n])},onEnterCancelled(e){w(e,!1),hc(b,[e])},onAppearCancelled(e){w(e,!0),hc(k,[e])},onLeaveCancelled(e){N(e),hc(C,[e])}})}function vc(e){return U(e)}function yc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[uc]||(e[uc]=new Set)).add(t)}function _c(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[uc];n&&(n.delete(t),n.size||(e[uc]=void 0))}function bc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Sc=0;function xc(e,t,n,r){const o=e._endId=++Sc,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=Cc(e,t);if(!i)return r();const a=i+"end";let u=0;const f=()=>{e.removeEventListener(a,d),s()},d=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{u(n[e]||"").split(", "),o=r(`${lc}Delay`),s=r(`${lc}Duration`),i=Ec(o,s),c=r(`${ac}Delay`),l=r(`${ac}Duration`),a=Ec(c,l);let u=null,f=0,d=0;t===lc?i>0&&(u=lc,f=i,d=s.length):t===ac?a>0&&(u=ac,f=a,d=l.length):(f=Math.max(i,a),u=f>0?i>a?lc:ac:null,d=u?u===lc?s.length:l.length:0);return{type:u,timeout:f,propCount:d,hasTransform:u===lc&&/\b(transform|all)(,|$)/.test(r(`${lc}Property`).toString())}}function Ec(e,t){for(;e.lengthTc(t)+Tc(e[n]))))}function Tc(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function kc(){return document.body.offsetHeight}const wc=Symbol("_vod"),Nc=Symbol("_vsh"),Ac={beforeMount(e,{value:t},{transition:n}){e[wc]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ic(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ic(e,!0),r.enter(e)):r.leave(e,(()=>{Ic(e,!1)})):Ic(e,t))},beforeUnmount(e,{value:t}){Ic(e,t)}};function Ic(e,t){e.style.display=t?e[wc]:"none",e[Nc]=!t}const Rc=Symbol("");function Oc(e){const t=Ci();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Lc(e,n)))};const r=()=>{const r=e(t.proxy);Mc(t.subTree,r),n(r)};Sr(r),so((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ao((()=>e.disconnect()))}))}function Mc(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Mc(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Lc(e.el,t);else if(e.type===Bs)e.children.forEach((e=>Mc(e,t)));else if(e.type===js){let{el:n,anchor:r}=e;for(;n&&(Lc(n,t),n!==r);)n=n.nextSibling}}function Lc(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[Rc]=r}}const Pc=/(^|;)\s*display\s*:/;const $c=/\s*!important$/;function Fc(e,t,n){if(m(n))n.forEach((n=>Fc(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Vc[t];if(n)return n;let r=M(t);if("filter"!==r&&r in e)return Vc[t]=r;r=$(r);for(let n=0;n{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();vn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Kc(),n}(r,o);Hc(e,n,i,c)}else i&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,c),s[t]=void 0)}}const qc=/(?:Once|Passive|Capture)$/;let Wc=0;const zc=Promise.resolve(),Kc=()=>Wc||(zc.then((()=>Wc=0)),Wc=Date.now());const Gc=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123; +/*! #__NO_SIDE_EFFECTS__ */ +function Jc(e,t){const n=jr(e);class r extends Qc{constructor(e){super(n,e,t)}}return r.def=n,r} +/*! #__NO_SIDE_EFFECTS__ */const Yc=e=>Jc(e,Pl),Xc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Qc extends Xc{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Nn((()=>{this._connected||(Ll(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(o||(o=Object.create(null)))[M(e)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(M))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=M(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(P(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(P(e),t+""):t||this.removeAttribute(P(e))))}_update(){Ll(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ci(this._def,f({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),P(e)!==e&&t(P(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Qc){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Zc(e="$style"){{const t=Ci();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;const r=n[e];return r||s}}const el=new WeakMap,tl=new WeakMap,nl=Symbol("_moveCb"),rl=Symbol("_enterCb"),ol={name:"TransitionGroup",props:f({},pc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ci(),r=Mr();let o,s;return co((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[uc];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=Cc(r);return s.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(il),o.forEach(cl);const r=o.filter(ll);kc(),r.forEach((e=>{const n=e.el,r=n.style;yc(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[nl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[nl]=null,_c(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=Pt(e),c=gc(i);let l=i.tag||Bs;o=s,s=t.default?Ur(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>V(t,e):t};function ul(e){e.target.composing=!0}function fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dl=Symbol("_assign"),pl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[dl]=al(o);const s=r||o.props&&"number"===o.props.type;Hc(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=H(r)),e[dl](r)})),n&&Hc(e,"change",(()=>{e.value=e.value.trim()})),t||(Hc(e,"compositionstart",ul),Hc(e,"compositionend",fl),Hc(e,"change",fl))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e[dl]=al(s),e.composing)return;const i=null==t?"":t;if((o||"number"===e.type?H(e.value):e.value)!==i){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===i)return}e.value=i}}},hl={deep:!0,created(e,t,n){e[dl]=al(n),Hc(e,"change",(()=>{const t=e._modelValue,n=_l(e),r=e.checked,o=e[dl];if(m(t)){const e=le(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if(v(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(bl(e,r))}))},mounted:ml,beforeUpdate(e,t,n){e[dl]=al(n),ml(e,t,n)}};function ml(e,{value:t,oldValue:n},r){e._modelValue=t,m(t)?e.checked=le(t,r.props.value)>-1:v(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ce(t,bl(e,!0)))}const gl={created(e,{value:t},n){e.checked=ce(t,n.props.value),e[dl]=al(n),Hc(e,"change",(()=>{e[dl](_l(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[dl]=al(r),t!==n&&(e.checked=ce(t,r.props.value))}},vl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=v(t);Hc(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?H(_l(e)):_l(e)));e[dl](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Nn((()=>{e._assigning=!1}))})),e[dl]=al(r)},mounted(e,{value:t,modifiers:{number:n}}){yl(e,t,n)},beforeUpdate(e,t,n){e[dl]=al(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||yl(e,t,n)}};function yl(e,t,n){const r=e.multiple,o=m(t);if(!r||o||v(t)){for(let s=0,i=e.options.length;s-1}else i.selected=t.has(c);else if(ce(_l(i),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function _l(e){return"_value"in e?e._value:e.value}function bl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sl={created(e,t,n){Cl(e,t,n,null,"created")},mounted(e,t,n){Cl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Cl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Cl(e,t,n,r,"updated")}};function xl(e,t){switch(e){case"SELECT":return vl;case"TEXTAREA":return pl;default:switch(t){case"checkbox":return hl;case"radio":return gl;default:return pl}}}function Cl(e,t,n,r,o){const s=xl(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const El=["ctrl","shift","alt","meta"],Tl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>El.some((n=>e[`${n}Key`]&&!t.includes(n)))},kl=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=P(n.key);return t.some((e=>e===r||wl[e]===r))?e(n):void 0})},Al=f({patchProp:(e,t,n,r,o,s,i,c,l)=>{const f="svg"===o;"class"===t?function(e,t,n){const r=e[uc];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,f):"style"===t?function(e,t,n){const r=e.style,o=b(n);let s=!1;if(n&&!o){if(t)if(b(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fc(r,t,"")}else for(const e in t)null==n[e]&&Fc(r,e,"");for(const e in n)"display"===e&&(s=!0),Fc(r,e,n[e])}else if(o){if(t!==n){const e=r[Rc];e&&(n+=";"+e),r.cssText=n,s=Pc.test(n)}}else t&&e.removeAttribute("style");wc in e&&(e[wc]=s?r.display:"",e[Nc]&&(r.display="none"))}(e,n,r):a(t)?u(t)||jc(e,t,0,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Gc(t)&&_(n));if("spellcheck"===t||"draggable"===t||"translate"===t)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}if(Gc(t)&&b(n))return!1;return t in e}(e,t,r,f))?function(e,t,n,r,o,s,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,o,s),void(e[t]=null==n?"":n);const c=e.tagName;if("value"===t&&"PROGRESS"!==c&&!c.includes("-")){const r=null==n?"":n;return("OPTION"===c?e.getAttribute("value")||"":e.value)===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=ie(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r,s,i,c,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Bc,t.slice(6,t.length)):e.setAttributeNS(Bc,t,n);else{const r=se(t);null==n||r&&!ie(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,f))}},cc);let Il,Rl=!1;function Ol(){return Il||(Il=Ts(Al))}function Ml(){return Il=Rl?Il:ks(Al),Rl=!0,Il}const Ll=(...e)=>{Ol().render(...e)},Pl=(...e)=>{Ml().hydrate(...e)},$l=(...e)=>{const t=Ol().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Vl(e);if(!r)return;const o=t._component;_(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,Dl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Fl=(...e)=>{const t=Ml().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Vl(e);if(t)return n(t,!0,Dl(t))},t};function Dl(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Vl(e){if(b(e)){return document.querySelector(e)}return e}let Bl=!1;const Hl=()=>{Bl||(Bl=!0,pl.getSSRProps=({value:e})=>({value:e}),gl.getSSRProps=({value:e},t)=>{if(t.props&&ce(t.props.value,e))return{checked:!0}},hl.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sl.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=xl(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Ac.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Ul=Symbol(""),jl=Symbol(""),ql=Symbol(""),Wl=Symbol(""),zl=Symbol(""),Kl=Symbol(""),Gl=Symbol(""),Jl=Symbol(""),Yl=Symbol(""),Xl=Symbol(""),Ql=Symbol(""),Zl=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),ra=Symbol(""),oa=Symbol(""),sa=Symbol(""),ia=Symbol(""),ca=Symbol(""),la=Symbol(""),aa=Symbol(""),ua=Symbol(""),fa=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),_a=Symbol(""),ba=Symbol(""),Sa=Symbol(""),xa=Symbol(""),Ca=Symbol(""),Ea=Symbol(""),Ta=Symbol(""),ka=Symbol(""),wa={[Ul]:"Fragment",[jl]:"Teleport",[ql]:"Suspense",[Wl]:"KeepAlive",[zl]:"BaseTransition",[Kl]:"openBlock",[Gl]:"createBlock",[Jl]:"createElementBlock",[Yl]:"createVNode",[Xl]:"createElementVNode",[Ql]:"createCommentVNode",[Zl]:"createTextVNode",[ea]:"createStaticVNode",[ta]:"resolveComponent",[na]:"resolveDynamicComponent",[ra]:"resolveDirective",[oa]:"resolveFilter",[sa]:"withDirectives",[ia]:"renderList",[ca]:"renderSlot",[la]:"createSlots",[aa]:"toDisplayString",[ua]:"mergeProps",[fa]:"normalizeClass",[da]:"normalizeStyle",[pa]:"normalizeProps",[ha]:"guardReactiveProps",[ma]:"toHandlers",[ga]:"camelize",[va]:"capitalize",[ya]:"toHandlerKey",[_a]:"setBlockTracking",[ba]:"pushScopeId",[Sa]:"popScopeId",[xa]:"withCtx",[Ca]:"unref",[Ea]:"isRef",[Ta]:"withMemo",[ka]:"isMemoSame"};const Na={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Aa(e,t,n,r,o,s,i,c=!1,l=!1,a=!1,u=Na){return e&&(c?(e.helper(Kl),e.helper(Va(e.inSSR,a))):e.helper(Da(e.inSSR,a)),i&&e.helper(sa)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function Ia(e,t=Na){return{type:17,loc:t,elements:e}}function Ra(e,t=Na){return{type:15,loc:t,properties:e}}function Oa(e,t){return{type:16,loc:Na,key:b(e)?Ma(e,!0):e,value:t}}function Ma(e,t=!1,n=Na,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function La(e,t=Na){return{type:8,loc:t,children:e}}function Pa(e,t=[],n=Na){return{type:14,loc:n,callee:e,arguments:t}}function $a(e,t=void 0,n=!1,r=!1,o=Na){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function Fa(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Na}}function Da(e,t){return e||t?Yl:Xl}function Va(e,t){return e||t?Gl:Jl}function Ba(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Da(r,e.isComponent)),t(Kl),t(Va(r,e.isComponent)))}const Ha=new Uint8Array([123,123]),Ua=new Uint8Array([125,125]);function ja(e){return e>=97&&e<=122||e>=65&&e<=90}function qa(e){return 32===e||10===e||9===e||12===e||13===e}function Wa(e){return 47===e||62===e||qa(e)}function za(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function tu(e){switch(e){case"Teleport":case"teleport":return jl;case"Suspense":case"suspense":return ql;case"KeepAlive":case"keep-alive":return Wl;case"BaseTransition":case"base-transition":return zl}}const nu=/^\d|[^\$\w]/,ru=e=>!nu.test(e),ou=/[A-Za-z_$\xA0-\uFFFF]/,su=/[\.\?\w$\xA0-\uFFFF]/,iu=/\s+[.[]\s*|\s*[.[]\s+/g,cu=e=>{e=e.trim().replace(iu,(e=>e.trim()));let t=0,n=[],r=0,o=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===r))}return n}function _u(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const bu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Su={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isCustomElement:l,onError:Xa,onWarn:Qa,comments:!1,prefixIdentifiers:!1};let xu=Su,Cu=null,Eu="",Tu=null,ku=null,wu="",Nu=-1,Au=-1,Iu=0,Ru=!1,Ou=null;const Mu=[],Lu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ha,this.delimiterClose=Ua,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ha,this.delimiterClose=Ua}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Wa(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||qa(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ka.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Mu,{onerr:ef,ontext(e,t){Vu(Fu(e,t),e,t)},ontextentity(e,t,n){Vu(e,t,n)},oninterpolation(e,t){if(Ru)return Vu(Fu(e,t),e,t);let n=e+Lu.delimiterOpen.length,r=t-Lu.delimiterClose.length;for(;qa(Eu.charCodeAt(n));)n++;for(;qa(Eu.charCodeAt(r-1));)r--;let o=Fu(n,r);o.includes("&")&&(o=xu.decodeEntities(o,!1)),Ju({type:5,content:Zu(o,!1,Yu(n,r)),loc:Yu(e,t)})},onopentagname(e,t){const n=Fu(e,t);Tu={type:1,tag:n,ns:xu.getNamespace(n,Mu[0],xu.ns),tagType:0,props:[],children:[],loc:Yu(e-1,t),codegenNode:void 0}},onopentagend(e){Du(e)},onclosetag(e,t){const n=Fu(e,t);if(!xu.isVoidTag(n)){let r=!1;for(let e=0;e0&&ef(24,Mu[0].loc.start.offset);for(let n=0;n<=e;n++){Bu(Mu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&ef(2,t)},onattribend(e,t){if(Tu&&ku){if(Xu(ku.loc,t),0!==e)if(wu.includes("&")&&(wu=xu.decodeEntities(wu,!0)),6===ku.type)"class"===ku.name&&(wu=Gu(wu).trim()),1!==e||wu||ef(13,t),ku.value={type:2,content:wu,loc:1===e?Yu(Nu,Au):Yu(Nu-1,Au+1)},Lu.inSFCRoot&&"template"===Tu.tag&&"lang"===ku.name&&wu&&"html"!==wu&&Lu.enterRCDATA(za("{const o=t.start.offset+n;return Zu(e,!1,Yu(o,o+e.length),0,r?1:0)},c={source:i(s.trim(),n.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace($u,"").trim();const a=o.indexOf(l),u=l.match(Pu);if(u){l=l.replace(Pu,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+l.length),c.key=i(e,t,!0)),u[2]){const r=u[2].trim();r&&(c.index=i(r,n.indexOf(r,c.key?t+e.length:a+l.length),!0))}}l&&(c.value=i(l,a,!0));return c}(ku.exp));let t=-1;"bind"===ku.name&&(t=ku.modifiers.indexOf("sync"))>-1&&Ya("COMPILER_V_BIND_SYNC",xu,ku.loc,ku.rawName)&&(ku.name="model",ku.modifiers.splice(t,1))}7===ku.type&&"pre"===ku.name||Tu.props.push(ku)}wu="",Nu=Au=-1},oncomment(e,t){xu.comments&&Ju({type:3,content:Fu(e,t),loc:Yu(e-4,t+3)})},onend(){const e=Eu.length;for(let t=0;t64&&r<91)||tu(e)||(null==(n=xu.isBuiltInComponent)?void 0:n.call(xu,e))||xu.isNativeTag&&!xu.isNativeTag(e))return!0;var r;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ya("COMPILER_INLINE_TEMPLATE",xu,n.loc)&&e.children.length&&(n.value={type:2,content:Fu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Hu(e,t){let n=e;for(;Eu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Uu=new Set(["if","else","else-if","for","slot"]);function ju({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),s++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=ff(e);if((!n||512===n||1===n)&&af(o,t)>=2){const n=uf(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,of(o,t),e&&t.scopes.vSlot--}else if(11===o.type)of(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e1)for(let o=0;on&&(w.childIndex--,w.onNodeRemoved()):(w.currentNode=null,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:c,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){b(e)&&(e=Ma(e)),w.hoists.push(e);const t=Ma(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Na}}(w.cached++,e,t)}};return w.filters=new Set,w}function pf(e,t){const n=df(e,t);hf(e,n),t.hoistStatic&&nf(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(rf(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Ba(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;W[64];0,e.codegenNode=Aa(t,n(Ul),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function hf(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(du))return;const s=[];for(let i=0;i`${wa[e]}: _${wa[e]}`;function yf(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${wa[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:i,deindent:c,newline:l,scopeId:a,ssr:u}=n,f=Array.from(e.helpers),d=f.length>0,p=!s&&"module"!==r;!function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:i,runtimeGlobalName:c,ssrRuntimeModuleName:l}=t,a=c,u=Array.from(e.helpers);if(u.length>0&&(o(`const _Vue = ${a}\n`,-1),e.hoists.length)){o(`const { ${[Yl,Xl,Ql,Zl,ea].filter((e=>u.includes(e))).map(vf).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:i}=t;r();for(let o=0;o0)&&l()),e.directives.length&&(_f(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),_f(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),u||o("return "),e.codegenNode?xf(e.codegenNode,n):o("null"),p&&(c(),o("}")),c(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function _f(e,t,{helper:n,push:r,newline:o,isTS:s}){const i=n("filter"===t?oa:"component"===t?ta:ra);for(let n=0;n3||!1;t.push("["),n&&t.indent(),Sf(e,t,n),n&&t.deindent(),t.push("]")}function Sf(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,l,a]),t),n(")"),f&&n(")");u&&(n(", "),xf(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:o}=t,s=b(e.callee)?e.callee:r(e.callee);o&&n(gf);n(s+"(",-2,e),Sf(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const c=i.length>1||!1;n(c?"{":"{ "),c&&r();for(let e=0;e "),(l||c)&&(n("{"),r());i?(l&&n("return "),m(i)?bf(i,t):xf(i,t)):c&&xf(c,t);(l||c)&&(o(),n("}"));a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!ru(n.content);e&&i("("),Cf(n,t),e&&i(")")}else i("("),xf(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),xf(r,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===o.type;u||t.indentLevel++;xf(o,t),u||t.indentLevel--;s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(_a)}(-1),`),i());n(`_cache[${e.index}] = `),xf(e.value,t),e.isVNode&&(n(","),i(),n(`${r(_a)}(1),`),i(),n(`_cache[${e.index}]`),s());n(")")}(e,t);break;case 21:Sf(e.body,t,!0,!1)}}function Cf(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Ef(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Za(28,t.loc)),t.exp=Ma("true",!1,r)}0;if("if"===t.name){const o=wf(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-- >=-1;){const i=o[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Za(30,e.loc)),n.removeNode();const o=wf(e,t);0,i.branches.push(o);const s=r&&r(i,o,!1);hf(o,n),s&&s(),n.currentNode=null}else n.onError(Za(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,r)=>{const o=n.parent.children;let s=o.indexOf(e),i=0;for(;s-- >=0;){const e=o[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(r)e.codegenNode=Nf(t,i,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Nf(t,i+e.branches.length-1,n)}}}))));function wf(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!lu(e,"for")?e.children:[e],userKey:au(e,"key"),isTemplateIf:n}}function Nf(e,t,n){return e.condition?Fa(e.condition,Af(e,t,n),Pa(n.helper(Ql),['""',"true"])):Af(e,t,n)}function Af(e,t,n){const{helper:r}=n,o=Oa("key",Ma(`${t}`,!1,Na,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return vu(e,o,n),e}{let t=64;W[64];return Aa(n,r(Ul),Ra([o]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===Ta?c.arguments[1].returns:c;return 13===t.type&&Ba(t,n),vu(t,o,n),e}var c}const If=mf("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(Za(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Za(32,t.loc));Rf(o,n);const{addIdentifiers:s,removeIdentifiers:i,scopes:c}=n,{source:l,value:a,key:u,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:a,keyAlias:u,objectIndexAlias:f,parseResult:o,children:pu(e)?e.children:[e]};n.replaceNode(d),c.vFor++;const p=r&&r(d);return()=>{c.vFor--,p&&p()}}(e,t,n,(t=>{const s=Pa(r(ia),[t.source]),i=pu(e),c=lu(e,"memo"),l=au(e,"key"),a=l&&(6===l.type?Ma(l.value.content,!0):l.exp),u=l?Oa("key",a):null,f=4===t.source.type&&t.source.constType>0,d=f?64:l?128:256;return t.codegenNode=Aa(n,r(Ul),void 0,s,d+"",void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:d}=t;const p=1!==d.length||1!==d[0].type,h=hu(e)?e:i&&1===e.children.length&&hu(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,i&&u&&vu(l,u,n)):p?l=Aa(n,r(Ul),u?Ra([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,i&&u&&vu(l,u,n),l.isBlock!==!f&&(l.isBlock?(o(Kl),o(Va(n.inSSR,l.isComponent))):o(Da(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r(Kl),r(Va(n.inSSR,l.isComponent))):r(Da(n.inSSR,l.isComponent))),c){const e=$a(Of(t.parseResult,[Ma("_cached")]));e.body={type:21,body:[La(["const _memo = (",c.exp,")"]),La(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(ka)}(_cached, _memo)) return _cached`]),La(["const _item = ",l]),Ma("_item.memo = _memo"),Ma("return _item")],loc:Na},s.arguments.push(e,Ma("_cache"),Ma(String(n.cached++)))}else s.arguments.push($a(Of(t.parseResult),l,!0))}}))}));function Rf(e,t){e.finalized||(e.finalized=!0)}function Of({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ma("_".repeat(t+1),!1)))}([e,t,n,...r])}const Mf=Ma("undefined",!1),Lf=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=lu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Pf=(e,t,n,r)=>$a(e,n,!1,!0,n.length?n[0].loc:r);function $f(e,t,n=Pf){t.helper(xa);const{children:r,loc:o}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=lu(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!eu(e)&&(c=!0),s.push(Oa(e||Ma("default",!0),n(t,void 0,r,o)))}let a=!1,u=!1;const f=[],d=new Set;let p=0;for(let e=0;e{const s=n(e,void 0,r,o);return t.compatConfig&&(s.isNonScopedSlot=!0),Oa("default",s)};a?f.length&&f.some((e=>Vf(e)))&&(u?t.onError(Za(39,f[0].loc)):s.push(e(void 0,f))):s.push(e(void 0,r))}const h=c?2:Df(e.children)?3:1;let m=Ra(s.concat(Oa("_",Ma(h+"",!1))),o);return i.length&&(m=Pa(t.helper(la),[m,Ia(i)])),{slots:m,hasDynamicSlots:c}}function Ff(e,t,n){const r=[Oa("name",e),Oa("fn",t)];return null!=n&&r.push(Oa("key",Ma(String(n),!0))),Ra(r)}function Df(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let s=o?function(e,t,n=!1){let{tag:r}=e;const o=Wf(r),s=au(e,"is");if(s)if(o||Ja("COMPILER_IS_ON_ELEMENT",t)){const e=6===s.type?s.value&&Ma(s.value.content,!0):s.exp;if(e)return Pa(t.helper(na),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const i=tu(r)||t.isBuiltInComponent(r);if(i)return n||t.helper(i),i;return t.helper(ta),t.components.add(r),_u(r,"component")}(e,t):`"${n}"`;const i=x(s)&&s.callee===na;let c,l,a,u,f,d,p=0,h=i||s===jl||s===ql||!o&&("svg"===n||"foreignObject"===n);if(r.length>0){const n=Uf(e,t,void 0,o,i);c=n.props,p=n.patchFlag,f=n.dynamicPropNames;const r=n.directives;d=r&&r.length?Ia(r.map((e=>function(e,t){const n=[],r=Bf.get(e);r?n.push(t.helperString(r)):(t.helper(ra),t.directives.add(e.name),n.push(_u(e.name,"directive")));const{loc:o}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ma("true",!1,o);n.push(Ra(e.modifiers.map((e=>Oa(e,t))),o))}return Ia(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){s===Wl&&(h=!0,p|=1024);if(o&&s!==jl&&s!==Wl){const{slots:n,hasDynamicSlots:r}=$f(e,t);l=n,r&&(p|=1024)}else if(1===e.children.length&&s!==jl){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===sf(n,t)&&(p|=1),l=o||2===r?n:e.children}else l=e.children}0!==p&&(a=String(p),f&&f.length&&(u=function(e){let t="[";for(let n=0,r=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,_=!1,b=!1,x=!1;const C=[],E=e=>{u.length&&(f.push(Ra(jf(u),c)),u=[]),e&&f.push(e)},T=({key:e,value:n})=>{if(eu(e)){const s=e.content,i=a(s);if(!i||r&&!o||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||A(s)||(_=!0),i&&A(s)&&(x=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&sf(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||C.includes(s)||C.push(s),!r||"class"!==s&&"style"!==s||C.includes(s)||C.push(s)}else b=!0};for(let o=0;o0&&u.push(Oa(Ma("ref_for",!0),Ma("true")))),"is"===n&&(Wf(i)||o&&o.content.startsWith("vue:")||Ja("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Oa(Ma(n,!0,r),Ma(o?o.content:"",s,o?o.loc:e)))}else{const{name:n,arg:o,exp:a,loc:g,modifiers:v}=l,y="bind"===n,_="on"===n;if("slot"===n){r||t.onError(Za(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&uu(o,"is")&&(Wf(i)||Ja("COMPILER_IS_ON_ELEMENT",t)))continue;if(_&&s)continue;if((y&&uu(o,"key")||_&&p&&uu(o,"vue:before-update"))&&(h=!0),y&&uu(o,"ref")&&t.scopes.vFor>0&&u.push(Oa(Ma("ref_for",!0),Ma("true"))),!o&&(y||_)){if(b=!0,a)if(y){if(E(),Ja("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(a);continue}f.push(a)}else E({type:14,loc:g,callee:t.helper(ma),arguments:r?[a]:[a,"true"]});else t.onError(Za(y?34:35,g));continue}y&&v.includes("prop")&&(m|=32);const x=t.directiveTransforms[n];if(x){const{props:n,needRuntime:r}=x(l,e,t);!s&&n.forEach(T),_&&o&&!eu(o)?E(Ra(n,c)):u.push(...n),r&&(d.push(l),S(r)&&Bf.set(l,r))}else I(n)||(d.push(l),p&&(h=!0))}}let k;if(f.length?(E(),k=f.length>1?Pa(t.helper(ua),f,c):f[0]):u.length&&(k=Ra(jf(u),c)),b?m|=16:(v&&!r&&(m|=2),y&&!r&&(m|=4),C.length&&(m|=8),_&&(m|=32)),h||0!==m&&32!==m||!(g||x||d.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{if(hu(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=function(e,t){let n,r='"default"';const o=[];for(let t=0;t0){const{props:r,directives:s}=Uf(e,t,o,!1,!1);n=r,s.length&&t.onError(Za(36,s[0].loc))}return{slotName:r,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=$a([],n,!1,!1,r),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Pa(t.helper(ca),i,r)}};const Kf=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Gf=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:i}=e;let c;if(e.exp||s.length||n.onError(Za(35,o)),4===i.type)if(i.isStatic){let e=i.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);c=Ma(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?F(M(e)):`on:${e}`,!0,i.loc)}else c=La([`${n.helperString(ya)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(ya)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=cu(l.content),t=!(e||Kf.test(l.content)),n=l.content.includes(";");0,(t||a&&e)&&(l=La([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Oa(c,l||Ma("() => {}",!1,o))]};return r&&(u=r(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Jf=(e,t,n)=>{const{modifiers:r,loc:o}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Za(52,s.loc)),{props:[Oa(s,Ma("",!0,o))]};const t=M(s.content);i=e.exp=Ma(t,!1,s.loc)}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(4===s.type?s.isStatic?s.content=M(s.content):s.content=`${n.helperString(ga)}(${s.content})`:(s.children.unshift(`${n.helperString(ga)}(`),s.children.push(")"))),n.inSSR||(r.includes("prop")&&Yf(s,"."),r.includes("attr")&&Yf(s,"^")),{props:[Oa(s,i)]}},Yf=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Xf=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&lu(e,"once",!0)){if(Qf.has(e)||t.inVOnce||t.inSSR)return;return Qf.add(e),t.inVOnce=!0,t.helper(_a),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},ed=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Za(41,e.loc)),td();const s=r.loc.source,i=4===r.type?r.content:s,c=n.bindingMetadata[s];if("props"===c||"props-aliased"===c)return n.onError(Za(44,r.loc)),td();if(!i.trim()||!cu(i))return n.onError(Za(42,r.loc)),td();const l=o||Ma("modelValue",!0),a=o?eu(o)?`onUpdate:${M(o.content)}`:La(['"onUpdate:" + ',o]):"onUpdate:modelValue";let u;u=La([`${n.isTS?"($event: any)":"$event"} => ((`,r,") = $event)"]);const f=[Oa(l,e.exp),Oa(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(ru(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?eu(o)?`${o.content}Modifiers`:La([o,' + "Modifiers"']):"modelModifiers";f.push(Oa(n,Ma(`{ ${t} }`,!1,e.loc,2)))}return td(f)};function td(e=[]){return{props:e}}const nd=/[\w).+\-_$\]]/,rd=(e,t)=>{Ja("COMPILER_FILTERS",t)&&(5===e.type&&od(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&od(e.exp,t)})))};function od(e,t){if(4===e.type)sd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&nd.test(e)||(u=!0)}}else void 0===i?(h=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(h,s).trim()),h=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==h&&g(),m.length){for(s=0;s{if(1===e.type){const n=lu(e,"memo");if(!n||cd.has(e))return;return cd.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Ba(r,t),e.codegenNode=Pa(t.helper(Ta),[n.exp,$a(void 0,r),"_cache",String(t.cached++)]))}}};function ad(e,t={}){const n=t.onError||Xa,r="module"===t.mode;!0===t.prefixIdentifiers?n(Za(47)):r&&n(Za(48));t.cacheHandlers&&n(Za(49)),t.scopeId&&!r&&n(Za(50));const o=f({},t,{prefixIdentifiers:!1}),s=b(e)?tf(e,o):e,[i,c]=[[Zf,kf,ld,If,rd,zf,Hf,Lf,Xf],{on:Gf,bind:Jf,model:ed}];return pf(s,f({},o,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:f({},c,t.directiveTransforms||{})})),yf(s,o)}const ud=Symbol(""),fd=Symbol(""),dd=Symbol(""),pd=Symbol(""),hd=Symbol(""),md=Symbol(""),gd=Symbol(""),vd=Symbol(""),yd=Symbol(""),_d=Symbol("");var bd;let Sd;bd={[ud]:"vModelRadio",[fd]:"vModelCheckbox",[dd]:"vModelText",[pd]:"vModelSelect",[hd]:"vModelDynamic",[md]:"withModifiers",[gd]:"withKeys",[vd]:"vShow",[yd]:"Transition",[_d]:"TransitionGroup"},Object.getOwnPropertySymbols(bd).forEach((e=>{wa[e]=bd[e]}));const xd={parseMode:"html",isVoidTag:re,isNativeTag:e=>ee(e)||te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Sd||(Sd=document.createElement("div")),t?(Sd.innerHTML=`
`,Sd.children[0].getAttribute("foo")):(Sd.innerHTML=e,Sd.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?yd:"TransitionGroup"===e||"transition-group"===e?_d:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},Cd=(e,t)=>{const n=X(e);return Ma(JSON.stringify(n),!1,t,3)};function Ed(e,t){return Za(e,t)}const Td=o("passive,once,capture"),kd=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),wd=o("left,right"),Nd=o("onkeyup,onkeydown,onkeypress",!0),Ad=(e,t)=>eu(e)&&"onclick"===e.content.toLowerCase()?Ma(t,!0):4!==e.type?La(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Id=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Rd=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ma("style",!0,t.loc),exp:Cd(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Od={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Ed(53,o)),t.children.length&&(n.onError(Ed(54,o)),t.children.length=0),{props:[Oa(Ma("innerHTML",!0,o),r||Ma("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Ed(55,o)),t.children.length&&(n.onError(Ed(56,o)),t.children.length=0),{props:[Oa(Ma("textContent",!0),r?sf(r,n)>0?r:Pa(n.helperString(aa),[r],o):Ma("",!0))]}},model:(e,t,n)=>{const r=ed(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Ed(58,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||s){let i=dd,c=!1;if("input"===o||s){const r=au(t,"type");if(r){if(7===r.type)i=hd;else if(r.value)switch(r.value.content){case"radio":i=ud;break;case"checkbox":i=fd;break;case"file":c=!0,n.onError(Ed(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=hd)}else"select"===o&&(i=pd);c||(r.needRuntime=n.helper(i))}else n.onError(Ed(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Gf(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],s=[],i=[];for(let r=0;r{const{exp:r,loc:o}=e;return r||n.onError(Ed(61,o)),{props:[],needRuntime:n.helper(vd)}}};const Md=new WeakMap;function Ld(e,t){if(!b(e)){if(!e.nodeType)return c;e=e.innerHTML}const n=e,o=function(e){let t=Md.get(null!=e?e:s);return t||(t=Object.create(null),Md.set(null!=e?e:s,t)),t}(t),i=o[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const l=f({hoistStatic:!0,onError:void 0,onWarn:c},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return ad(e,f({},xd,t,{nodeTransforms:[Id,...Rd,...t.nodeTransforms||[]],directiveTransforms:f({},Od,t.directiveTransforms||{}),transformHoist:null}))}(e,l);const u=new Function("Vue",a)(r);return u._rc=!0,o[n]=u}Li(Ld)}}]); \ No newline at end of file diff --git a/modules/backend/assets/ui/js/index.js b/modules/backend/assets/ui/js/index.js index cf4f3cad81..505c4f78b1 100644 --- a/modules/backend/assets/ui/js/index.js +++ b/modules/backend/assets/ui/js/index.js @@ -1,7 +1,6 @@ import * as Vue from 'vue'; +import { Control, ControlHandler } from '@wintercms/snowboard-controls'; import BackendAjaxHandler from './ajax/Handler'; -import BackendUiEventHandler from './ui/EventHandler'; -import BackendUiWidgetHandler from './ui/WidgetHandler'; if (window.Snowboard === undefined) { throw new Error('Snowboard must be loaded in order to use the Backend UI.'); @@ -9,8 +8,8 @@ if (window.Snowboard === undefined) { ((Snowboard) => { Snowboard.addPlugin('backend.ajax.handler', BackendAjaxHandler); - Snowboard.addPlugin('backend.ui.eventHandler', BackendUiEventHandler); - Snowboard.addPlugin('backend.ui.widgetHandler', BackendUiWidgetHandler); + Snowboard.addPlugin('backend.ui.controls', ControlHandler); + Snowboard.addAbstract('WinterControl', Control); // Add the pre-filter immediately Snowboard['backend.ajax.handler']().addPrefilter(); diff --git a/modules/backend/assets/ui/js/ui/EventHandler.js b/modules/backend/assets/ui/js/ui/EventHandler.js deleted file mode 100644 index 1bc70cd084..0000000000 --- a/modules/backend/assets/ui/js/ui/EventHandler.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Widget event handler. - * - * Extends a widget with event handling functionality, allowing for the quick definition of events - * and listening for events on a specific instance of a widget. - * - * This is a complement to Snowboard's global events - these events will still fire in order to - * allow external code to listen and handle events. Local events can cancel the global event (and - * further local events) by returning `false` from the callback. - * - * @copyright 2022 Winter. - * @author Ben Thomson - */ -export default class EventHandler extends Snowboard.PluginBase { - /** - * Constructor. - * - * @param {PluginBase} instance - * @param {String} eventPrefix - */ - construct(instance, eventPrefix) { - if (instance instanceof Snowboard.PluginBase === false) { - throw new Error('Event handling can only be applied to Snowboard classes.'); - } - if (!eventPrefix) { - throw new Error('Event prefix is required.'); - } - this.instance = instance; - this.eventPrefix = eventPrefix; - this.events = []; - } - - /** - * Registers a listener for a widget's event. - * - * @param {String} event - * @param {Function} callback - */ - on(event, callback) { - this.events.push({ - event, - callback, - }); - } - - /** - * Deregisters a listener for a widget's event. - * - * @param {String} event - * @param {Function} callback - */ - off(event, callback) { - this.events = this.events.filter((registeredEvent) => registeredEvent.event !== event || registeredEvent.callback !== callback); - } - - /** - * Registers a listener for a widget's event that will only fire once. - * - * @param {String} event - * @param {Function} callback - */ - once(event, callback) { - const length = this.events.push({ - event, - callback: (...parameters) => { - callback(...parameters); - this.events.splice(length - 1, 1); - }, - }); - } - - /** - * Fires an event on the widget. - * - * Local events are fired first, then a global event is fired afterwards. - * - * @param {String} eventName - * @param {...any} parameters - */ - fire(eventName, ...parameters) { - // Fire local events first - const events = this.events.filter((registeredEvent) => registeredEvent.event === eventName); - let cancelled = false; - events.forEach((event) => { - if (cancelled) { - return; - } - if (event.callback(...parameters) === false) { - cancelled = true; - } - }); - - if (!cancelled) { - this.snowboard.globalEvent(`${this.eventPrefix}.${eventName}`, ...parameters); - } - } - - /** - * Fires a promise event on the widget. - * - * Local events are fired first, then a global event is fired afterwards. - * - * @param {String} eventName - * @param {...any} parameters - */ - firePromise(eventName, ...parameters) { - const events = this.events.filter((registeredEvent) => registeredEvent.event === eventName); - const promises = events.filter((event) => event !== null, events.map((event) => event.callback(...parameters))); - - Promise.all(promises).then( - () => { - this.snowboard.globalPromiseEvent(`${this.eventPrefix}.${eventName}`, ...parameters); - }, - ); - } -} diff --git a/modules/backend/assets/ui/js/ui/WidgetHandler.js b/modules/backend/assets/ui/js/ui/WidgetHandler.js deleted file mode 100644 index f332b55fb4..0000000000 --- a/modules/backend/assets/ui/js/ui/WidgetHandler.js +++ /dev/null @@ -1,181 +0,0 @@ -/** - * Backend widget handler. - * - * Handles the creation and disposal of widgets in the Backend. Widgets should include this as - * a dependency in order to be loaded and initialised after the handler, in order to correctly - * register. - * - * @copyright 2022 Winter. - * @author Ben Thomson - */ -export default class WidgetHandler extends Snowboard.Singleton { - /** - * Constructor. - */ - construct() { - this.registeredWidgets = []; - this.elements = []; - this.events = { - mutate: (mutations) => this.onMutation(mutations), - }; - this.observer = null; - } - - /** - * Listeners. - * - * @returns {Object} - */ - listens() { - return { - ready: 'onReady', - render: 'onRender', - ajaxUpdate: 'onAjaxUpdate', - }; - } - - /** - * Registers a widget as a given data control. - * - * Registering a widget will allow any element that contains a "data-control" attribute matching - * the control name to be initialized with the given widget. - * - * You may optionally provide a callback that will be fired when an instance of the widget is - * initialized - the callback will be provided the element and the widget instance as parameters. - * - * @param {String} control - * @param {Snowboard.PluginBase} widget - * @param {Function} callback - */ - register(control, widget, callback) { - this.registeredWidgets.push({ - control, - widget, - callback, - }); - } - - /** - * Unregisters a data control. - * - * @param {String} control - */ - unregister(control) { - this.registeredWidgets = this.registeredWidgets.filter((widget) => widget.control !== control); - } - - /** - * Ready handler. - * - * Initializes widgets within the entire document. - */ - onReady() { - this.initializeWidgets(document.body); - - // Register a DOM observer and watch for any removed nodes - if (!this.observer) { - this.observer = new MutationObserver(this.events.mutate); - this.observer.observe(document.body, { - childList: true, - subtree: true, - }); - } - } - - /** - * Render handler. - * - * Initializes widgets within the entire document. - */ - onRender() { - this.initializeWidgets(document.body); - } - - /** - * AJAX update handler. - * - * Initializes widgets inside an update element from an AJAX response. - * - * @param {HTMLElement} element - */ - onAjaxUpdate(element) { - this.initializeWidgets(element); - } - - /** - * Initializes all widgets within an element. - * - * If an element contains a "data-control" attribute matching a registered widget, the widget - * is initialized and attached to the element as a "widget" property. - * - * Only one widget may be initialized to a particular element. - * - * @param {HTMLElement} element - */ - initializeWidgets(element) { - this.registeredWidgets.forEach((widget) => { - const instances = element.querySelectorAll(`[data-control="${widget.control}"]:not([data-widget-initialized])`); - - if (instances.length) { - instances.forEach((instance) => { - // Prevent double-widget initialization - if (instance.dataset.widgetInitialized) { - return; - } - - const widgetInstance = this.snowboard[widget.widget](instance); - this.elements.push({ - element: instance, - instance: widgetInstance, - }); - instance.dataset.widgetInitialized = true; - this.snowboard.globalEvent('backend.widget.initialized', instance, widgetInstance); - - if (typeof widget.callback === 'function') { - widget.callback(widgetInstance, instance); - } - }); - } - }); - } - - /** - * Returns a widget that is attached to the given element, if any. - * - * @param {HTMLElement} element - * @returns {Snowboard.PluginBase|null} - */ - getWidget(element) { - const found = this.elements.find((widget) => widget.element === element); - - if (found) { - return found.instance; - } - - return null; - } - - /** - * Callback for mutation events. - * - * We're only tracking removed nodes, to ensure that those widgets are disposed of. - * - * @param {MutationRecord[]} mutations - */ - onMutation(mutations) { - const removedNodes = mutations.filter((mutation) => mutation.removedNodes.length).map((mutation) => Array.from(mutation.removedNodes)).flat(); - if (!removedNodes.length) { - return; - } - - removedNodes.forEach((node) => { - const widgets = this.elements.filter((widget) => node.contains(widget.element)); - if (widgets.length) { - widgets.forEach((widget) => { - widget.instance.destruct(); - this.elements = this.elements.filter((element) => element !== widget); - }); - } - }); - } -} diff --git a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js index 5fd8bf6d6c..91e2d4f5ad 100644 --- a/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js +++ b/modules/backend/formwidgets/colorpicker/assets/js/dist/colorpicker.js @@ -1,3 +1 @@ -(self.webpackChunk_wintercms_wn_backend_module=self.webpackChunk_wintercms_wn_backend_module||[]).push([[728],{562:function(t){ -/*! Pickr 1.8.2 MIT | https://github.com/Simonwep/pickr */ -self,t.exports=(()=>{"use strict";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:()=>E});var o={};function r(t,e,o,r,i={}){e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(o)||(o=[o]);for(const n of e)for(const e of o)n[t](e,r,{capture:!1,...i});return Array.prototype.slice.call(arguments,1)}t.r(o),t.d(o,{adjustableInputNumbers:()=>p,createElementFromString:()=>s,createFromTemplate:()=>a,eventPath:()=>c,off:()=>n,on:()=>i,resolveElement:()=>l});const i=r.bind(null,"addEventListener"),n=r.bind(null,"removeEventListener");function s(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function a(t){const e=(t,e)=>{const o=t.getAttribute(e);return t.removeAttribute(e),o},o=(t,r={})=>{const i=e(t,":obj"),n=e(t,":ref"),s=i?r[i]={}:r;n&&(r[n]=t);for(const r of Array.from(t.children)){const t=e(r,":arr"),i=o(r,t?{}:s);t&&(s[t]||(s[t]=[])).push(Object.keys(i).length?i:r)}return r};return o(s(t))}function c(t){let e=t.path||t.composedPath&&t.composedPath();if(e)return e;let o=t.target.parentElement;for(e=[t.target,o];o=o.parentElement;)e.push(o);return e.push(document,window),e}function l(t){return t instanceof Element?t:"string"==typeof t?t.split(/>>/g).reduce(((t,e,o,r)=>(t=t.querySelector(e),ot)){function o(o){const r=[.001,.01,.1][Number(o.shiftKey||2*o.ctrlKey)]*(o.deltaY<0?1:-1);let i=0,n=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,((t,o)=>o<=n&&o+t.length>=n?(n=o,e(Number(t),r,i)):(i++,t))),t.focus(),t.setSelectionRange(n,n),o.preventDefault(),t.dispatchEvent(new Event("input"))}i(t,"focus",(()=>i(window,"wheel",o,{passive:!1}))),i(t,"blur",(()=>n(window,"wheel",o)))}const{min:h,max:u,floor:d,round:g}=Math;function f(t,e,o){e/=100,o/=100;const r=d(t=t/360*6),i=t-r,n=o*(1-e),s=o*(1-i*e),a=o*(1-(1-i)*e),c=r%6;return[255*[o,s,n,n,a,o][c],255*[a,o,o,s,n,n][c],255*[n,n,a,o,o,s][c]]}function m(t,e,o){const r=(2-(e/=100))*(o/=100)/2;return 0!==r&&(e=1===r?0:r<.5?e*o/(2*r):e*o/(2-2*r)),[t,100*e,100*r]}function v(t,e,o){const r=h(t/=255,e/=255,o/=255),i=u(t,e,o),n=i-r;let s,a;if(0===n)s=a=0;else{a=n/i;const r=((i-t)/6+n/2)/n,c=((i-e)/6+n/2)/n,l=((i-o)/6+n/2)/n;t===i?s=l-c:e===i?s=1/3+r-l:o===i&&(s=2/3+c-r),s<0?s+=1:s>1&&(s-=1)}return[360*s,100*a,100*i]}function b(t,e,o,r){return e/=100,o/=100,[...v(255*(1-h(1,(t/=100)*(1-(r/=100))+r)),255*(1-h(1,e*(1-r)+r)),255*(1-h(1,o*(1-r)+r)))]}function k(t,e,o){e/=100;const r=2*(e*=(o/=100)<.5?o:1-o)/(o+e)*100,i=100*(o+e);return[t,isNaN(r)?0:r,i]}function w(t){return v(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function y(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e){if(!(r=e[i].exec(t)))continue;const n=t=>!!r[2]==("number"==typeof t);switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{const[,,,t,e,s,a]=o(r);if(t>255||e>255||s>255||a<0||a>1||!n(a))break t;return{values:[...v(t,e,s),a],a:a,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{const[,,,t,e,s,a]=o(r);if(t>360||e>100||s>100||a<0||a>1||!n(a))break t;return{values:[...k(t,e,s),a],a:a,type:i}}case"hsva":{const[,,,t,e,s,a]=o(r);if(t>360||e>100||s>100||a<0||a>1||!n(a))break t;return{values:[t,e,s,a],a:a,type:i}}}}return{values:null,type:null}}function _(t=0,e=0,o=0,r=1){const i=(t,e)=>(o=-1)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),n={h:t,s:e,v:o,a:r,toHSVA(){const t=[n.h,n.s,n.v,n.a];return t.toString=i(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toHSLA(){const t=[...m(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${n.a})`)),t},toRGBA(){const t=[...f(n.h,n.s,n.v),n.a];return t.toString=i(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${n.a})`)),t},toCMYK(){const t=function(t,e,o){const r=f(t,e,o),i=r[0]/255,n=r[1]/255,s=r[2]/255,a=h(1-i,1-n,1-s);return[100*(1===a?0:(1-i-a)/(1-a)),100*(1===a?0:(1-n-a)/(1-a)),100*(1===a?0:(1-s-a)/(1-a)),100*a]}(n.h,n.s,n.v);return t.toString=i(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return f(t,e,o).map((t=>g(t).toString(16).padStart(2,"0")))}(n.h,n.s,n.v),e=n.a>=1?"":Number((255*n.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>_(n.h,n.s,n.v,n.a)};return n}const C=t=>Math.max(Math.min(t,1),0);function x(t){const e={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},t),_keyboard(t){const{options:o}=e,{type:r,key:i}=t;if(document.activeElement===o.wrapper){const{lock:o}=e.options,n="ArrowUp"===i,s="ArrowRight"===i,a="ArrowDown"===i,c="ArrowLeft"===i;if("keydown"===r&&(n||s||a||c)){let r=0,i=0;"v"===o?r=n||s?1:-1:"h"===o?r=n||s?-1:1:(i=n?-1:a?1:0,r=c?-1:s?1:0),e.update(C(e.cache.x+.01*r),C(e.cache.y+.01*i)),t.preventDefault()}else i.startsWith("Arrow")&&(e.options.onstop(),t.preventDefault())}},_tapstart(t){i(document,["mouseup","touchend","touchcancel"],e._tapstop),i(document,["mousemove","touchmove"],e._tapmove),t.cancelable&&t.preventDefault(),e._tapmove(t)},_tapmove(t){const{options:o,cache:r}=e,{lock:i,element:n,wrapper:s}=o,a=s.getBoundingClientRect();let c=0,l=0;if(t){const e=t&&t.touches&&t.touches[0];c=t?(e||t).clientX:0,l=t?(e||t).clientY:0,ca.left+a.width&&(c=a.left+a.width),la.top+a.height&&(l=a.top+a.height),c-=a.left,l-=a.top}else r&&(c=r.x*a.width,l=r.y*a.height);"h"!==i&&(n.style.left=`calc(${c/a.width*100}% - ${n.offsetWidth/2}px)`),"v"!==i&&(n.style.top=`calc(${l/a.height*100}% - ${n.offsetHeight/2}px)`),e.cache={x:c/a.width,y:l/a.height};const p=C(c/a.width),h=C(l/a.height);switch(i){case"v":return o.onchange(p);case"h":return o.onchange(h);default:return o.onchange(p,h)}},_tapstop(){e.options.onstop(),n(document,["mouseup","touchend","touchcancel"],e._tapstop),n(document,["mousemove","touchmove"],e._tapmove)},trigger(){e._tapmove()},update(t=0,o=0){const{left:r,top:i,width:n,height:s}=e.options.wrapper.getBoundingClientRect();"h"===e.options.lock&&(o=t),e._tapmove({clientX:r+n*t,clientY:i+s*o})},destroy(){const{options:t,_tapstart:o,_keyboard:r}=e;n(document,["keydown","keyup"],r),n([t.wrapper,t.element],"mousedown",o),n([t.wrapper,t.element],"touchstart",o,{passive:!1})}},{options:o,_tapstart:r,_keyboard:s}=e;return i([o.wrapper,o.element],"mousedown",r),i([o.wrapper,o.element],"touchstart",r,{passive:!1}),i(document,["keydown","keyup"],s),e}function A(t={}){t=Object.assign({onchange:()=>0,className:"",elements:[]},t);const e=i(t.elements,"click",(e=>{t.elements.forEach((o=>o.classList[e.target===o?"add":"remove"](t.className))),t.onchange(e),e.stopPropagation()}));return{destroy:()=>n(...e)}}const S={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8},H=(t,e,o)=>{const{container:r,margin:i,position:n,variantFlipOrder:s,positionFlipOrder:a}={container:document.documentElement.getBoundingClientRect(),...S,...o},{left:c,top:l}=e.style;e.style.left="0",e.style.top="0";const p=t.getBoundingClientRect(),h=e.getBoundingClientRect(),u={t:p.top-h.height-i,b:p.bottom+i,r:p.right+i,l:p.left-h.width-i},d={vs:p.left,vm:p.left+p.width/2+-h.width/2,ve:p.left+p.width-h.width,hs:p.top,hm:p.bottom-p.height/2-h.height/2,he:p.bottom-h.height},[g,f="middle"]=n.split("-"),m=a[g],v=s[f],{top:b,left:k,bottom:w,right:y}=r;for(const t of m){const o="t"===t||"b"===t,r=u[t],[i,n]=o?["top","left"]:["left","top"],[s,a]=o?[h.height,h.width]:[h.width,h.height],[c,l]=o?[w,y]:[y,w],[p,g]=o?[b,k]:[k,b];if(!(rc))for(const s of v){const c=d[(o?"v":"h")+s];if(!(cl))return e.style[n]=c-h[n]+"px",e.style[i]=r-h[i]+"px",t+s}}return e.style.left=c,e.style.top=l,null};function V(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}class E{constructor(t){V(this,"_initializingActive",!0),V(this,"_recalc",!0),V(this,"_nanopop",null),V(this,"_root",null),V(this,"_color",_()),V(this,"_lastColor",_()),V(this,"_swatchColors",[]),V(this,"_setupAnimationFrame",null),V(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=t=Object.assign({...E.DEFAULT_OPTIONS},t);const{swatches:e,components:o,theme:r,sliders:i,lockOpacity:n,padding:s}=t;["nano","monolith"].includes(r)&&!i&&(t.sliders="h"),o.interaction||(o.interaction={});const{preview:a,opacity:c,hue:l,palette:p}=o;o.opacity=!n&&c,o.palette=p||a||c||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),e&&e.length&&e.forEach((t=>this.addSwatch(t)));const{button:h,app:u}=this._root;this._nanopop=((t,e,o)=>{const r="object"!=typeof t||t instanceof HTMLElement?{reference:t,popper:e,...o}:t;return{update(t=r){const{reference:e,popper:o}=Object.assign(r,t);if(!o||!e)throw new Error("Popper- or reference-element missing.");return H(e,o,r)}}})(h,u,{margin:s}),h.setAttribute("role","button"),h.setAttribute("aria-label",this._t("btn:toggle"));const d=this;this._setupAnimationFrame=requestAnimationFrame((function e(){if(!u.offsetWidth)return requestAnimationFrame(e);d.setColor(t.default),d._rePositioningPicker(),t.defaultRepresentation&&(d._representation=t.defaultRepresentation,d.setColorRepresentation(d._representation)),t.showAlways&&d.show(),d._initializingActive=!1,d._emit("init")}))}_preBuild(){const{options:t}=this;for(const e of["el","container"])t[e]=l(t[e]);this._root=(t=>{const{components:e,useAsButton:o,inline:r,appClass:i,theme:n,lockOpacity:s}=t.options,c=t=>t?"":'style="display:none" hidden',l=e=>t._t(e),p=a(`\n
\n\n ${o?"":''}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:x({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:x({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:x({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:A({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=y(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||E.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=_(...e),n=s(`'}\n\n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),h=p.interaction;return h.options.find((t=>!t.hidden&&!t.classList.add("active"))),h.type=()=>h.options.find((t=>t.classList.contains("active"))),p})(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}_finalBuild(){const t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){const o=t.el.parentElement;t.el.nextSibling?o.insertBefore(e.app,t.el.nextSibling):o.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const t=this,e=this.options.components,o=(t.options.sliders||"v").repeat(2),[r,i]=o.match(/^[vh]+$/g)?o:[],n=()=>this._color||(this._color=this._lastColor.clone()),s={palette:_({element:t._root.palette.picker,wrapper:t._root.palette.palette,onstop:()=>t._emit("changestop","slider",t),onchange(o,r){if(!e.palette)return;const i=n(),{_root:s,options:a}=t,{lastColor:c,currentColor:l}=s.preview;t._recalc&&(i.s=100*o,i.v=100-100*r,i.v<0&&(i.v=0),t._updateOutput("slider"));const p=i.toRGBA().toString(0);this.element.style.background=p,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${i.a}), transparent),\n linear-gradient(to left, hsla(${i.h}, 100%, 50%, ${i.a}), rgba(255, 255, 255, ${i.a}))\n `,a.comparison?a.useAsButton||t._lastColor||c.style.setProperty("--pcr-color",p):(s.button.style.setProperty("--pcr-color",p),s.button.classList.remove("clear"));const h=i.toHEXA().toString();for(const{el:e,color:o}of t._swatchColors)e.classList[h===o.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",p)}}),hue:_({lock:"v"===i?"h":"v",element:t._root.hue.picker,wrapper:t._root.hue.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.hue||!e.palette)return;const r=n();t._recalc&&(r.h=360*o),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,s.palette.trigger()}}),opacity:_({lock:"v"===r?"h":"v",element:t._root.opacity.picker,wrapper:t._root.opacity.slider,onstop:()=>t._emit("changestop","slider",t),onchange(o){if(!e.opacity||!e.palette)return;const r=n();t._recalc&&(r.a=Math.round(100*o)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,s.palette.trigger()}}),selectable:x({elements:t._root.interaction.options,className:"active",onchange(e){t._representation=e.target.getAttribute("data-type").toUpperCase(),t._recalc&&t._updateOutput("swatch")}})};this._components=s}_bindEvents(){const{_root:t,options:e}=this,o=[i(t.interaction.clear,"click",(()=>this._clearColor())),i([t.interaction.cancel,t.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),i(t.interaction.save,"click",(()=>{!this.applyColor()&&!e.showAlways&&this.hide()})),i(t.interaction.result,["keyup","input"],(t=>{this.setColor(t.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),t.stopImmediatePropagation()})),i(t.interaction.result,["focus","blur"],(t=>{this._recalc="blur"===t.type,this._recalc&&this._updateOutput(null)})),i([t.palette.palette,t.palette.picker,t.hue.slider,t.hue.picker,t.opacity.slider,t.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!e.showAlways){const r=e.closeWithKey;o.push(i(t.button,"click",(()=>this.isOpen()?this.hide():this.show())),i(document,"keyup",(t=>this.isOpen()&&(t.key===r||t.code===r)&&this.hide())),i(document,["touchstart","mousedown"],(e=>{this.isOpen()&&!c(e).some((e=>e===t.app||e===t.button))&&this.hide()}),{capture:!0}))}if(e.adjustableNumbers){const e={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};p(t.interaction.result,((t,o,r)=>{const i=e[this.getColorRepresentation().toLowerCase()];if(i){const e=i[r],n=t+(e>=100?1e3*o:o);return n<=0?0:Number((n{r.isOpen()&&(e.closeOnScroll&&r.hide(),null===t?(t=setTimeout((()=>t=null),100),requestAnimationFrame((function e(){r._rePositioningPicker(),null!==t&&requestAnimationFrame(e)}))):(clearTimeout(t),t=setTimeout((()=>t=null),100)))}),{capture:!0}))}this._eventBindings=o}_rePositioningPicker(){const{options:t}=this;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position})){const t=this._root.app,e=t.getBoundingClientRect();t.style.top=(window.innerHeight-e.height)/2+"px",t.style.left=(window.innerWidth-e.width)/2+"px"}}_updateOutput(t){const{_root:e,_color:o,options:r}=this;if(e.interaction.type()){const t=`to${e.interaction.type().getAttribute("data-type")}`;e.interaction.result.value="function"==typeof o[t]?o[t]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",o,t,this)}_clearColor(t=!1){const{_root:e,options:o}=this;o.useAsButton||e.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),o.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(t){const{values:e,type:o,a:r}=function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let r;t:for(const i in e)if(r=e[i].exec(t))switch(i){case"cmyk":{const[,t,e,n,s]=o(r);if(t>100||e>100||n>100||s>100)break t;return{values:b(t,e,n,s),type:i}}case"rgba":{let[,t,,e,,n,,,s]=o(r);if(t="%"===r[2]?t/100*255:t,e="%"===r[4]?e/100*255:e,n="%"===r[6]?n/100*255:n,s="%"===r[9]?s/100:s,t>255||e>255||n>255||s<0||s>1)break t;return{values:[...v(t,e,n),s],a:s,type:i}}case"hexa":{let[,t]=r;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...w(e),o],a:o,type:i}}case"hsla":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[...k(t,e,n),s],a:s,type:i}}case"hsva":{let[,t,e,n,,s]=o(r);if(s="%"===r[6]?s/100:s,t>360||e>100||n>100||s<0||s>1)break t;return{values:[t,e,n,s],a:s,type:i}}}return{values:null,type:null}}(t),{lockOpacity:i}=this.options,n=void 0!==r&&1!==r;return e&&3===e.length&&(e[3]=void 0),{values:!e||i&&n?null:e,type:o}}_t(t){return this.options.i18n[t]||S.I18N_DEFAULTS[t]}_emit(t,...e){this._eventListener[t].forEach((t=>t(...e,this)))}on(t,e){return this._eventListener[t].push(e),this}off(t,e){const o=this._eventListener[t]||[],r=o.indexOf(e);return~r&&o.splice(r,1),this}addSwatch(t){const{values:e}=this._parseLocalColor(t);if(e){const{_swatchColors:t,_root:o}=this,r=y(...e),n=s(`