@aevantec/litevue 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/litevue-devtools.iife.js +1 -1
- package/dist/litevue-devtools.mjs +1 -1
- package/dist/litevue-devtools.umd.js +1 -1
- package/dist/litevue-plugins.dev.iife.js +67 -125
- package/dist/litevue-plugins.dev.mjs +67 -124
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -1
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.dev.iife.js +122 -159
- package/dist/litevue.dev.mjs +122 -158
- package/dist/litevue.iife.js +1 -1
- package/dist/litevue.mjs +1 -1
- package/dist/litevue.umd.js +1 -1
- package/dist/plugins/collapse.iife.js +1 -1
- package/dist/plugins/collapse.mjs +1 -1
- package/dist/plugins/collapse.umd.js +1 -1
- package/dist/plugins/focus.iife.js +1 -1
- package/dist/plugins/focus.mjs +1 -1
- package/dist/plugins/focus.umd.js +1 -1
- package/dist/plugins/intersect.iife.js +1 -1
- package/dist/plugins/intersect.umd.js +1 -1
- package/dist/plugins/mask.iife.js +1 -1
- package/dist/plugins/mask.mjs +1 -1
- package/dist/plugins/mask.umd.js +1 -1
- package/dist/plugins/media.dev.iife.js +5 -39
- package/dist/plugins/media.dev.mjs +5 -38
- package/dist/plugins/media.iife.js +1 -1
- package/dist/plugins/media.mjs +1 -1
- package/dist/plugins/media.umd.js +1 -1
- package/dist/plugins/morph.dev.iife.js +41 -61
- package/dist/plugins/morph.dev.mjs +41 -60
- package/dist/plugins/morph.iife.js +1 -1
- package/dist/plugins/morph.mjs +1 -1
- package/dist/plugins/morph.umd.js +1 -1
- package/dist/plugins/navigate.dev.iife.js +24 -26
- package/dist/plugins/navigate.dev.mjs +24 -25
- package/dist/plugins/navigate.iife.js +1 -1
- package/dist/plugins/navigate.mjs +1 -1
- package/dist/plugins/navigate.umd.js +1 -1
- package/dist/plugins/persist.dev.iife.js +2 -10
- package/dist/plugins/persist.dev.mjs +2 -9
- package/dist/plugins/persist.iife.js +1 -1
- package/dist/plugins/persist.mjs +1 -1
- package/dist/plugins/persist.umd.js +1 -1
- package/dist/plugins/popover.iife.js +1 -1
- package/dist/plugins/popover.mjs +1 -1
- package/dist/plugins/popover.umd.js +1 -1
- package/dist/plugins/resize.iife.js +1 -1
- package/dist/plugins/resize.umd.js +1 -1
- package/dist/plugins/transition.iife.js +1 -1
- package/dist/plugins/transition.mjs +1 -1
- package/dist/plugins/transition.umd.js +1 -1
- package/dist/types/app.d.mts +5 -6
- package/dist/types/app.d.ts +5 -6
- package/dist/types/block.d.mts +0 -4
- package/dist/types/block.d.ts +0 -4
- package/dist/types/context.d.mts +1 -6
- package/dist/types/context.d.ts +1 -6
- package/dist/types/devtools-panel/chrome.d.mts +5 -7
- package/dist/types/devtools-panel/chrome.d.ts +5 -7
- package/dist/types/devtools-panel/menu.d.mts +10 -0
- package/dist/types/devtools-panel/menu.d.ts +10 -0
- package/dist/types/devtools-panel/plugins.d.mts +0 -4
- package/dist/types/devtools-panel/plugins.d.ts +0 -4
- package/dist/types/devtools-panel/styles.d.mts +3 -15
- package/dist/types/devtools-panel/styles.d.ts +3 -15
- package/dist/types/devtools-panel/values.d.mts +1 -20
- package/dist/types/devtools-panel/values.d.ts +1 -20
- package/dist/types/devtools.d.mts +0 -7
- package/dist/types/devtools.d.ts +0 -7
- package/dist/types/directives/on.d.mts +0 -1
- package/dist/types/directives/on.d.ts +0 -1
- package/dist/types/directives/show.d.mts +1 -0
- package/dist/types/directives/show.d.ts +1 -0
- package/dist/types/errors.d.mts +1 -8
- package/dist/types/errors.d.ts +1 -8
- package/dist/types/eval.d.mts +0 -3
- package/dist/types/eval.d.ts +0 -3
- package/dist/types/lazy.d.mts +0 -10
- package/dist/types/lazy.d.ts +0 -10
- package/dist/types/magics.d.mts +0 -9
- package/dist/types/magics.d.ts +0 -9
- package/dist/types/ownership.d.mts +0 -19
- package/dist/types/ownership.d.ts +0 -19
- package/dist/types/plugins/media/index.d.mts +0 -5
- package/dist/types/plugins/media/index.d.ts +0 -5
- package/dist/types/plugins/morph/index.d.mts +0 -8
- package/dist/types/plugins/morph/index.d.ts +0 -8
- package/dist/types/scheduler.d.mts +0 -5
- package/dist/types/scheduler.d.ts +0 -5
- package/dist/types/store.d.mts +5 -1
- package/dist/types/store.d.ts +5 -1
- package/dist/types/utils.d.mts +0 -5
- package/dist/types/utils.d.ts +0 -5
- package/dist/types/warn.d.mts +0 -12
- package/dist/types/warn.d.ts +0 -12
- package/package.json +3 -3
package/dist/litevue.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Date]"===h(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,_=m(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=m(e=>e.replace(y,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,S=/:([^]+)/,O=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(O,"").split(k).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function T(e,t){return e.findIndex(e=>j(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,B();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&A(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var W=!0,V=0,z=[];function B(){z.push(W),W=!1}function D(){const e=z.pop();W=void 0===e||e}function K(){V++}function F(){for(V--;!V&&H.length;)H.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var H=[];function U(e,t,n){K();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&H.push(s.scheduler)))}F()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,i){const o=Z.get(e);if(!o)return;let l=[];if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(o.get(n)),t){case"add":c(e)?v(n)&&l.push(o.get("length")):l.push(o.get(G));break;case"delete":c(e)||l.push(o.get(G))}K();for(const c of l)c&&U(c,4);F()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ge(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ge)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){B(),K();const n=ge(this)[t].apply(this,e);return F(),D(),n}}),e}function se(e){f(e)||(e=String(e));const t=ge(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?i&&v(t)?l:l.value:p(l)?s?function(e){return ve(e,!0,le,null,fe)}(l):he(l):l)}},ie=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=ge(r),n=ge(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const i=c(e)&&v(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===ge(s)&&(i?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},oe=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new ie,le=new oe,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function de(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return me(e)?e:ve(e,!1,ce,null,ae)}function ve(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=de(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}var _e=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ge(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||ye(e,4),t=e,W&&$&&(t=ge(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof _e?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ye(e,t=4,n,s){const r=(e=ge(e)).dep;r&&U(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Se=new Set,Oe=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Te=(e,...t)=>{je[e].forEach(e=>e(...t))},Ae=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Te("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Te("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Se,plugins:Oe,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){}Re.length||console.error(e)},Me=new WeakSet,Ce=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,Be=Promise.resolve(),De=e=>Be.then(e),Ke=e=>(e.i=Ve++,e),Fe=e=>{e.i??Ke(e),ze.add(e),We||(We=!0,De(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Te("flush")},He=0,Ue=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Je=e=>(t,n,s)=>{const i="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let o,c=!1;const l=e.effect(()=>{const e=i(),t=o;if(o=e,c?w(e,t):s?.immediate){B();try{n(e,t)}finally{D()}}c=!0});return()=>{Ce(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),(n!==i||p(n))&&Ye(e,s,n,i);else{for(const t in n)Ye(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||Ye(e,t,null,i[t])}i="[object Object]"===h(n)?{...n}:n,s||(e.__bound=i)})},Ye=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=et(n),i=et(s);for(const e in r)nt(t,e,r[e]);for(const e in i)null==r[e]&&nt(t,e,"");"_vod"in e&&(("display"in r||"display"in i)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t)):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},et=e=>u(e=x(e))?E(e):e||{},tt=/\s*!important$/,nt=(e,t,n)=>{c(n)?n.forEach(n=>nt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):tt.test(n)?e.setProperty(b(t),n.replace(tt,""),"important"):e[t]=n},st=Object.create(null),rt=0,it=e=>e.replace(/^return\(([^]*)\)$/,"$1"),ot=(e,t,n,s)=>ct(e,`return(${t})`,n,s),ct=(e,t,n,s)=>{let r=st[t];r||(++rt>1e3&&(st=Object.create(null),rt=1),r=st[t]=lt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){Ie(i,{phase:"expression",expression:s?.expression??it(t),source:s?.source,el:s?.el??n,scope:e})}},lt=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??it(e),source:s?.source,el:s?.el??t}),n}},at=Object.create(null),ut=0,ft=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,pt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,dt=["ctrl","shift","alt","meta"],ht={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)=>dt.some(n=>e[`${n}Key`]&&!t[n])},vt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},mt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,gt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const i=/\bawait\b/.test(n)?"async ":"";let o,c=pt.test(n)||ft.test(n)?t(`(e => (${n})(e))`):(e=>{const t=at[e];if(void 0!==t)return t;++ut>1e3&&(at=Object.create(null),ut=1);try{return new Function(`return (${e})`),at[e]=!0}catch{return at[e]=!1}})(n)?t(`(${i}$event => (${n}))`):t(`(${i}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return De(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(o),o=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!mt.test(e)||e in vt);c=s=>{if(!r.outside||!e.contains(s.target)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||vt[t]===e))return}for(const e in r){const t=ht[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&l.removeEventListener(a,c,r),t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,{...r,once:!1}),()=>{clearTimeout(o),l.removeEventListener(a,c,r)}},_t=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=yt(t())})},yt=e=>null==e?"":c(e)||p(e)&&(e.toString===d||!a(e.toString))?JSON.stringify(e,null,2):String(e),bt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},wt=e=>"_value"in e?e._value:e.value,xt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},$t=e=>{e.target.composing=!0},kt=e=>{const t=e.target;t.composing&&(t.composing=!1,St(t,"input"))},St=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Ot=new WeakMap,Et=e=>{const t=Pe;return Pe=e,t},Lt=(e,t=Pe)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},jt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;jt(n),n=e}},Tt={bind:Xe,on:gt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{e._vsh=!t(),e.style.display=e._vsh?"none":e._vod})},text:_t,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===i,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,d=[],h=(t,n)=>d.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,g=!1;if("SELECT"===e.tagName){const t=e;h("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(wt(e)));o(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=wt(r);if(s)r.selected=c(e)&&T(e,i)>-1;else if(j(wt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===i)h("change",v=()=>{const t=n(),s=e.checked;if(c(t)){const n=wt(e),r=T(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(xt(e,s))}),m=()=>{const t=n();c(t)?e.checked=T(t,wt(e))>-1:e.checked=j(t,xt(e,!0))};else if("radio"===i)h("change",v=()=>o(wt(e))),m=()=>{e.checked=j(n(),wt(e))};else{g=!0;const t=e=>p(l?e.trim():e);v=()=>o(t(e.value));let s,i=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;i=t=>{clearTimeout(s),s=setTimeout(o,e,t)},d.push(()=>clearTimeout(s))}}h("compositionstart",$t),h("compositionend",kt),h(u?"change":"input",()=>{e.composing||i(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===i&&!e.checked||v()}const _=s(m);if(!g){const t=new MutationObserver(()=>_());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),d.push(()=>t.disconnect())}return()=>d.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const i=Ft;return De(()=>{if(!r)return;const o=Et(e);try{Ht(i,()=>s(()=>ct(t.scope,n,e,{source:"v-effect",el:e})))}finally{Et(o)}}),()=>{r=!1}}},At=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const i=[{exp:t.trim()||"0",el:e}];let o,c;for(;(o=e.nextElementSibling)&&(c=null,""===bt(o,"v-else")||null!=(c=bt(o,"v-else-if")));)o.remove(),i.push({exp:null==c?c:c.trim()||"0",el:o});const l=e.nextSibling;let a;e.remove(),Et(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=d,t=a.el,r(Ot.get(t)||[],e),a.remove(),a=void 0)};let p;const d=()=>Ce(p);return p=n.effect(()=>{for(let e=0;e<i.length;e++){const{exp:t,el:r}=i[e];if(!t||ot(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new on(r,n),a.insert(t,s),Lt(d,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),Lt(d,s),l},Nt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Pt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Rt=/^\(|\)$/g,It=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Mt=(e,t,n)=>{const s=t.match(Nt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const o=()=>i.parentNode;Et(i);const l=s[2].trim();let a,f,d,h,v=s[1].trim().replace(Rt,"").trim(),m=!1,g="key",_=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");_&&(e.removeAttribute(g),"key"===g&&(_=JSON.stringify(_))),(h=v.match(Pt))&&(v=v.replace(Pt,"").trim(),f=h[1].trim(),h[2]&&(d=h[2].trim())),(h=v.match(It))&&(a=h[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,i)=>{const o={};a?a.forEach((e,t)=>o[e]=s?.[m?t:e]):o[v]=s,i?(f&&(o[f]=i),d&&(o[d]=r)):f&&(o[f]=r);const c=_?ot(Object.setPrototypeOf(o,n.scope),_,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},k=(t,s)=>{const r=new on(e,sn(n,t.data));return r.key=t.key,r.insert(o(),s),r};return n.effect(()=>{const t=ot(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(e=>{const t=new Map,n=[];if(c(e)||u(e))for(let s=0;s<e.length;s++)n.push($(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push($(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push($(t,e[r],s++,r))}return[n,t]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:i;let a;null==c?a=k(r,l):(a=y[c],Object.assign(a.ctx.scope,r.data),c!==n&&(a.end||a.el).nextSibling!==l&&a.insert(o(),l)),e[n]=t=a}y=e}else y=b.map(e=>k(e,i)),x=!0}),r},Ct=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=ge(t);let i;return s(()=>{const s=n();t[s]=e,i&&s!==i&&r[i]===e&&delete t[i],i=s}),()=>{r[i]===e&&delete t[i]}},Wt=["visible","idle","interaction"],Vt=["[v-scope]",...Wt.map(e=>`[v-scope\\.${e}]`)].join(","),zt=["pointerdown","keydown","focusin"],Bt=(e,t,s,i)=>{const o=Wt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!o)return!1;const c=`v-scope.${o}`,l=((e,t,s)=>{let r=!1;const i=()=>{r||(r=!0,o(),s())};let o=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&i()});t.observe(e),o=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(i):setTimeout(i);o=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of zt)e.addEventListener(t,i);o=()=>{for(const t of zt)e.removeEventListener(t,i)}}return()=>{r=!0,o()}})(e,o,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,i))});return t.cleanups.push(l),Lt(()=>{r(t.cleanups,l),l()}),!0},Dt=/^(?:v-|:|@)/,Kt=/\.([\w-]+)/g,Ft=!1,qt=(e,t,n)=>{e.cleanups.push(t),Lt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ht=(e,t)=>{const n=Ft;Ft=e;try{t()}finally{Ft=n}},Ut=(e,t,n)=>Ht(n,()=>Jt(e,t)),Jt=(e,t)=>{const n=Et(e);try{return Zt(e,t)}finally{Et(n)}},Zt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Gt(n,t);if(n.hasAttribute("v-pre"))return;if(Bt(n,t,Ut,Ft))return;let s;if(bt(n,"v-cloak"),null!=(s=bt(n,"v-if")))return At(n,s,t);if(s=bt(n,"v-for"))return Mt(n,s,t);const r=bt(n,"v-name");let i;if(s=bt(n,"v-teleport")){const e=Yt(s,n,"v-teleport");if(e){i=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),qt(t,()=>{jt(n),n.remove()},s)}}if((s=bt(n,"v-scope"))||""===s){const e=(s?ot(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=sn(t,e),n.__ctx=t;const i=Ae(n,t.scope,s||void 0,r||void 0);qt(t,()=>{i(),delete n.__ctx}),e.$template&&en(n,e.$template)}const o=Ft;null!=bt(n,"v-once")&&(Ft=!0),(s=bt(n,"ref"))&&Xt(n,Ct,`"${s}"`,t),Gt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Dt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Qt(n,e,l,t));for(const[e,l]of c)Qt(n,e,l,t);return Ft=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&!(e.parentNode instanceof HTMLScriptElement)){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Xt(e,_t,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Gt(e,t)},Gt=(e,t)=>{let n=e.firstChild;for(;n;)n=Jt(n,t)||n.nextSibling},Qt=(e,t,n,s)=>{let r,i,c;const l=t;if(":"===(t=t.replace(Kt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,i=t.slice(1);else if("@"===t[0])r=gt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=o(Tt,n)?Tt[n]:o(s.dirs,n)?s.dirs[n]:void 0,i=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===i&&(r=Ct),Xt(e,r,n,s,i,c,l),e.removeAttribute(l))},Xt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},a=t=>Ie(t,{phase:"handler",source:o,el:e,expression:n,scope:s.scope}),u=t=>{const r=ot(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=Et(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{Et(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(p){return void Ie(p,{phase:"directive",source:o,el:e,expression:n})}f&&qt(s,f)},Yt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},en=(e,t)=>{if("#"===t[0]){const n=Yt(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},tn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ft){const t=()=>Ht(!0,e);return Fe(t),t}const n=Ke(C(e,{scheduler:()=>Fe(n),lazy:!0}));return t.effects.push(n),Lt(()=>{Ce(n),r(t.effects,n)}),n(),n}};return t},nn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),sn=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),nn(s,"$refs",Object.create(n.$refs));const r=he(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return nn(s,"$watch",Je(i)),nn(s,"$id",Ue()),rn(r,s),i},rn=(e,t=e)=>{for(const n of Object.keys(t)){const s=Object.getOwnPropertyDescriptor(t,n).value;"function"==typeof s&&(e[n]=s.bind(e))}},on=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=tn(t),Jt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Lt(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),jt(n),n!==this.end);)n=t}else e.removeChild(this.template),jt(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ce),this.ctx.cleanups.splice(0).forEach(e=>e())}},cn=he(Object.create(null)),ln=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),an=e=>{const t=tn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),rn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(ln(n)+"([^]+?)"+ln(s),"g")}nn(t.scope,"$s",yt),nn(t.scope,"$nextTick",De),nn(t.scope,"$refs",Object.create(null)),nn(t.scope,"$store",cn),nn(t.scope,"$watch",Je(t)),nn(t.scope,"$id",Ue()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const i=[],o=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Se.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!o.has(e)){o.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Vt)?[e]:[...e.querySelectorAll(Vt)].filter(e=>!e.matches(`:where(${Vt}) *`)),n.length||(n=[e]),t.walk??=Jt,t.dispose??=jt;for(const i of n){const e=i.getAttribute("v-name"),n=new on(i,t,!0);i.__ctx??=n.ctx,Ne.scopes.has(i)||i.matches(Vt)||n.ctx.cleanups.push(Ae(i,n.ctx.scope,void 0,e||void 0)),s.push(n),Lt(()=>r(s,n),i),n.ctx.cleanups.push(()=>delete i.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Ce),i.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),o.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():r.push(t)}s=r}};return a},un=document.currentScript;return un&&un.hasAttribute("init")&&an().mount(),e.computed=function(e,t,s=!1){let r,i;const o=a(e);return o?(r=e,i=n):(r=e.get,i=e.set),new _e(r,i,o||!i,s)},e.createApp=an,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Se.clear(),Oe.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=De,e.reactive=he,e.store=(e,t)=>(void 0!==t&&(cn[e]=t,"function"==typeof cn[e].init&&cn[e].init(),((e,t)=>{Le()||(ke.set(e,t),Te("store:register",e,t))})(e,cn[e])),cn[e]),e.watchEffect=e=>{const t=C(e,{scheduler:()=>Fe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Ce(t),n}return()=>Ce(t)},e}({});
|
|
1
|
+
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Date]"===d(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_=/-(\w)/g,g=m(e=>e.replace(_,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=m(e=>e.replace(y,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>j(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)C(e.deps[t],e);e.deps.length=e._depsLength}}function C(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function M(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&T(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var W=!0,V=0,z=[];function D(){z.push(W),W=!1}function F(){const e=z.pop();W=void 0===e||e}function B(){V++}function K(){for(V--;!V&&U.length;)U.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&C(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var U=[];function H(e,t,n){B();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&U.push(s.scheduler)))}K()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,o){const i=Z.get(e);if(!i)return;let l=[];if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":c(e)?v(n)&&l.push(i.get("length")):l.push(i.get(G));break;case"delete":c(e)||l.push(i.get(G))}B();for(const c of l)c&&H(c,4);K()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),B();const n=_e(this)[t].apply(this,e);return K(),F(),n}}),e}function se(e){f(e)||(e=String(e));const t=_e(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?o&&v(t)?l:l.value:p(l)?s?function(e){return ve(e,!0,le,null,fe)}(l):de(l):l)}},oe=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=_e(r),n=_e(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const o=c(e)&&v(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===_e(s)&&(o?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},ie=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new oe,le=new ie,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function he(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function de(e){return me(e)?e:ve(e,!1,ce,null,ae)}function ve(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=he(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}var ge=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=_e(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||ye(e,4),t=e,W&&$&&(t=_e(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof ge?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ye(e,t=4,n,s){const r=(e=_e(e)).dep;r&&H(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Oe=new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Te=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){console.error(e,n)}Re.length||console.error(e)},Ce=new WeakSet,Me=e=>{Ce.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,De=Promise.resolve(),Fe=e=>De.then(e),Be=e=>(e.i=Ve++,e),Ke=e=>{e.i??Be(e),ze.add(e),We||(We=!0,Fe(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Ce.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Ae("flush")},Ue=0,He=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ue}`)},Je=e=>(t,n,s)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?w(e,t):s?.immediate){D();try{n(e,t)}finally{F(),i=o()}}c=!0});return()=>{Me(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?et:tt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||tt(e,s,null,o[s])}o=Ye(n),!s&&o?.style&&(o.style=Ye(o.style)),s||(e.__bound=o)})},Ye=e=>p(e)?{...nt(e)}:e,et=(e,t,n,s)=>{(n!==s||p(n)||"value"===t)&&tt(e,t,n,s)},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),o=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in o)null==r[e]&&rt(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},nt=e=>u(e=x(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{c(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(b(t),n.replace(st,""),"important"):e[t]=n},ot=Object.create(null),it=0,ct=e=>e.replace(/^return\(([^]*)\)$/,"$1"),lt=(e,t,n,s)=>at(e,`return(${t})`,n,s),at=(e,t,n,s)=>{let r=ot[t];r||(++it>1e3&&(ot=Object.create(null),it=1),r=ot[t]=ut(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ie(o,{phase:"expression",expression:s?.expression??ct(t),source:s?.source,el:s?.el??n,scope:e})}},ut=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??ct(e),source:s?.source,el:s?.el??t}),n}},ft=Object.create(null),pt=0,ht=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,dt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,vt=["ctrl","shift","alt","meta"],mt={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)=>vt.some(n=>e[`${n}Key`]&&!t[n])},_t={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},gt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,yt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=dt.test(n)||ht.test(n)?t(`(e => (${i})(e))`):(e=>{const t=ft[e];if(void 0!==t)return t;++pt>1e3&&(ft=Object.create(null),pt=1);try{return new Function(`return (${e})`),ft[e]=!0}catch{return ft[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Fe(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!gt.test(e)||e in _t);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||_t[t]===e))return}for(const e in r){const t=mt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},bt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=wt(t())})},wt=e=>null==e?"":c(e)||p(e)&&(e.toString===h||!a(e.toString))?JSON.stringify(e,null,2):String(e),xt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},$t=e=>"_value"in e?e._value:e.value,kt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},Ot=e=>{e.target.composing=!0},St=e=>{const t=e.target;t.composing&&(t.composing=!1,Et(t,"input"))},Et=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Lt=new WeakMap,jt=e=>{const t=Pe;return Pe=e,t},At=(e,t=Pe)=>{if(!t)return;const n=Lt.get(t);n?n.push(e):Lt.set(t,[e])},Tt=e=>{const t=Lt.get(e);if(t){Lt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Nt={bind:Xe,on:yt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:bt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,_=!1;if("SELECT"===e.tagName){const t=e;d("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p($t(e)));i(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=$t(r);if(s)r.selected=c(e)&&A(e,o)>-1;else if(j($t(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",v=()=>{const t=n(),s=e.checked;if(c(t)){const n=$t(e),r=A(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(kt(e,s))}),m=()=>{const t=n();c(t)?e.checked=A(t,$t(e))>-1:e.checked=j(t,kt(e,!0))};else if("radio"===o)d("change",v=()=>i($t(e))),m=()=>{e.checked=j(n(),$t(e))};else{_=!0;const t=e=>p(l?e.trim():e);v=()=>i(t(e.value));let s,o=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(i,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",Ot),d("compositionend",St),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||v()}const g=s(m);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ut;return Fe(()=>{if(!r)return;const i=jt(e);try{Jt(o,()=>s(()=>at(t.scope,n,e,{source:"v-effect",el:e})))}finally{jt(i)}}),()=>{r=!1}}},Pt=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===xt(i,"v-else")||null!=(c=xt(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),jt(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=h,t=a.el,r(Lt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{Me(p),r(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:r}=o[e];if(!t||lt(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new an(r,n),a.insert(t,s),At(h,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),At(h,s),l},Rt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,It=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Ct=/^\(|\)$/g,Mt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Wt=(e,t,n)=>{const s=t.match(Rt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;jt(o);const l=s[2].trim();let a,f,h,d,v=s[1].trim().replace(Ct,"").trim(),m=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=v.match(It))&&(v=v.replace(It,"").trim(),f=d[1].trim(),d[2]&&(h=d[2].trim())),(d=v.match(Mt))&&(a=d[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s?.[m?t:e]):i[v]=s,null!=o?(f&&(i[f]=o),h&&(i[h]=r)):f&&(i[f]=r);const c=g?lt(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new an(e,on(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=lt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=new Map,s=[];try{if(c(t)||u(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(p(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ie(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==c)a=k(r,l);else{a=y[c],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;c!==n&&e!==l&&a.insert(i(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},Vt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=_e(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},zt=["visible","idle","interaction"],Dt=["[v-scope]",...zt.map(e=>`[v-scope\\.${e}]`)].join(","),Ft=["pointerdown","keydown","focusin"],Bt=(e,t,s,o)=>{const i=zt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,t,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ft)e.addEventListener(t,o);i=()=>{for(const t of Ft)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,o))});return t.cleanups.push(l),At(()=>{r(t.cleanups,l),l()}),!0},Kt=/^(?:v-|:|@)/,qt=/\.([\w-]+)/g,Ut=!1,Ht=(e,t,n)=>{e.cleanups.push(t),At(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Jt=(e,t)=>{const n=Ut;Ut=e;try{t()}finally{Ut=n}},Zt=(e,t,n)=>Jt(n,()=>Gt(e,t)),Gt=(e,t)=>{const n=jt(e);try{return Qt(e,t)}finally{jt(n)}},Qt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Xt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=xt(n,"v-if")))return Pt(n,r,t);if(r=xt(n,"v-for"))return Wt(n,r,t);if(Bt(n,t,Zt,Ut))return;xt(n,"v-cloak");const o=xt(n,"v-name");let i;if(r=xt(n,"v-teleport")){const e=tn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ie(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Ht(t,()=>{Tt(n),n.remove()},o)}}if((r=xt(n,"v-scope"))||""===r){const e=(r?lt(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=on(t,e),n.__ctx=t;const s=Te(n,t.scope,r||void 0,o||void 0);Ht(t,()=>{s(),delete n.__ctx}),e.$template&&nn(n,e.$template)}const c=Ut;null!=xt(n,"v-once")&&(Ut=!0),(r=xt(n,"ref"))&&en(n,Vt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Xt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])Kt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):Yt(n,e,s,t));for(const[e,s]of l)Yt(n,e,s,t);return Ut=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),en(e,bt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Xt(e,t)},Xt=(e,t)=>{let n=e.firstChild;for(;n;)n=Gt(n,t)||n.nextSibling},Yt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(qt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=yt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(Nt,n)?Nt[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Vt),en(e,r,n,s,o,c,l),e.removeAttribute(l))},en=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ie(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=lt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=jt(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{jt(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ie(p,{phase:"directive",source:i,el:e,expression:n})}f&&Ht(s,()=>{try{f()}catch(p){Ie(p,{phase:"teardown",source:i,el:e,expression:n})}})},tn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},nn=(e,t)=>{if("#"===t[0]){const n=tn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(e.ownerDocument.importNode(n.content,!0))}e.innerHTML=t},sn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:de({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ut){const t=()=>Jt(!0,e);return Ke(t),t}const n=Be(M(e,{scheduler:()=>Ke(n),lazy:!0}));return t.effects.push(n),At(()=>{Me(n),r(t.effects,n)}),n(),n}};return t},rn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),on=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),rn(r,"$refs",Object.create(s.$refs));const o=de(new Proxy(r,{set:(e,t,n,r)=>r!==o||i(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:o};return rn(r,"$watch",Je(c)),rn(r,"$id",He()),n||cn(o,r),c},cn=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},ln=e=>{e.ctx.blocks.forEach(ln),e.ctx.effects.splice(0).forEach(Me)},an=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.ownerDocument.importNode(e.content,!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=sn(t),Gt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,At(()=>this.discard(),this.el))}remove(){this.parentCtx&&(r(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};ln(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Me),this.ctx.cleanups.splice(0).forEach(e=>e())}},un=de(Object.create(null)),fn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),pn=e=>e&&(e.__r||e.hasAttribute("v-pre")||pn(e.parentElement)),hn=e=>{const t=sn();if("function"==typeof e&&(e=e()),e&&(t.scope=de(e),cn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(fn(n)+"([^]+?)"+fn(s),"g")}rn(t.scope,"$s",wt),rn(t.scope,"$nextTick",Fe),rn(t.scope,"$refs",Object.create(null)),rn(t.scope,"$store",un),rn(t.scope,"$watch",Je(t)),rn(t.scope,"$id",He()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const o=[],i=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Dt)?[e]:[...e.querySelectorAll(Dt)].filter(e=>!e.matches(`:where(${Dt}) *`)),n.length||(n=[e]),n=n.filter(e=>!pn(e)),t.walk??=Gt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new an(o,t,!0);i.host=n,o.__ctx??=i.ctx,Ne.scopes.has(o)||o.matches(Dt)||i.ctx.cleanups.push(Te(o,i.ctx.scope,void 0,e||void 0)),s.push(i),At(()=>(r(s,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Me),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():r.push(t)}s=r}};return a},dn=document.currentScript;return dn&&dn.hasAttribute("init")&&hn().mount(),e.computed=function(e,t,s=!1){let r,o;const i=a(e);return i?(r=e,o=n):(r=e.get,o=e.set),new ge(r,o,i||!o,s)},e.createApp=hn,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=Fe,e.reactive=de,e.store=(e,t)=>(void 0!==t&&(un[e]=t,"function"==typeof un[e].init&&un[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,un[e])),un[e]),e.watchEffect=e=>{const t=M(e,{scheduler:()=>Ke(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Me(t),n}return()=>Me(t)},e}({});
|
package/dist/litevue.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Date]"===d(e),l=e=>"function"==typeof e,a=e=>"string"==typeof e,u=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),h=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},m=/-(\w)/g,g=/* @__PURE__ */v(e=>e.replace(m,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=/* @__PURE__ */v(e=>e.replace(_,"-$1").toLowerCase()),b=(e,t)=>!Object.is(e,t);function w(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?O(s):w(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||f(e))return e}var x,$=/;(?![^(]*\))/g,k=/:([^]+)/,S=/\/\*[^]*?\*\//g;function O(e){const t={};return e.replace(S,"").split($).forEach(e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function E(e){let t="";if(a(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=E(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function L(e,t){if(e===t)return!0;let n=c(e),s=c(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=u(e),s=u(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=L(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!L(e[n],t[n]))return!1}}return String(e)===String(t)}function j(e,t){return e.findIndex(e=>L(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var A=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,z();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(N(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),B()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=M,t=x;try{return M=!0,x=this,this._runnings++,P(this),this.fn()}finally{R(this),this._runnings--,x=t,M=e}}stop(){this.active&&(P(this),R(this),this.onStop&&this.onStop(),this.active=!1)}};function N(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function R(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)I(e.deps[t],e);e.deps.length=e._depsLength}}function I(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,s){e.effect instanceof A&&(e=e.effect.fn);const r=new A(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var M=!0,W=0,V=[];function z(){V.push(M),M=!1}function B(){const e=V.pop();M=void 0===e||e}function K(){W++}function D(){for(W--;!W&&q.length;)q.shift()()}function F(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&I(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var q=[];function H(e,t,n){K();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&q.push(s.scheduler)))}D()}var U=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},J=/* @__PURE__ */new WeakMap,Z=Symbol("");function G(e,t,n){if(M&&x){let t=J.get(e);t||J.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=U(()=>t.delete(n))),F(x,s)}}function Q(e,t,n,s,r,i){const c=J.get(e);if(!c)return;let l=[];if("length"===n&&o(e)){const e=Number(s);c.forEach((t,n)=>{("length"===n||!u(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(c.get(n)),t){case"add":o(e)?h(n)&&l.push(c.get("length")):l.push(c.get(Z));break;case"delete":o(e)||l.push(c.get(Z))}K();for(const o of l)o&&H(o,4);D()}var X=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),Y=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(u)),ee=/* @__PURE__ */te();function te(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=me(this);for(let t=0,r=this.length;t<r;t++)G(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(me)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){z(),K();const n=me(this)[t].apply(this,e);return D(),B(),n}}),e}function ne(e){u(e)||(e=String(e));const t=me(this);return G(t,0,e),t.hasOwnProperty(e)}var se=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?fe:ue:r?ae:le).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(ee,t))return Reflect.get(ee,t,n);if("hasOwnProperty"===t)return ne}const l=Reflect.get(e,t,n);return(u(t)?Y.has(t):X(t))?l:(s||G(e,0,t),r?l:be(l)?c&&h(t)?l:l.value:f(l)?s?function(e){return he(e,!0,ce,null,ue)}(l):de(l):l)}},re=class extends se{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ve(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ve(n)||(r=me(r),n=me(n)),!o(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const c=o(e)&&h(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===me(s)&&(c?b(n,r)&&Q(e,"set",t,n):Q(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Q(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return u(t)&&Y.has(t)||G(e,0,t),n}ownKeys(e){return G(e,0,o(e)?"length":Z),Reflect.ownKeys(e)}},ie=class extends se{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},oe=/* @__PURE__ */new re,ce=/* @__PURE__ */new ie,le=/* @__PURE__ */new WeakMap,ae=/* @__PURE__ */new WeakMap,ue=/* @__PURE__ */new WeakMap,fe=/* @__PURE__ */new WeakMap;function pe(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function de(e){return ve(e)?e:he(e,!1,oe,null,le)}function he(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=pe(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function ve(e){return!(!e||!e.__v_isReadonly)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}var ge=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new A(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=me(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||ye(e,4),t=e,M&&x&&(t=me(t),F(x,null!=(n=t.dep)?n:t.dep=U(()=>t.dep=void 0,t instanceof ge?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function _e(e,n,s=!1){let r,i;const o=l(e);return o?(r=e,i=t):(r=e.get,i=e.set),new ge(r,i,o||!i,s)}function ye(e,t=4,n,s){const r=(e=me(e)).dep;r&&H(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=/* @__PURE__ */new Map,xe=/* @__PURE__ */new Map,$e=/* @__PURE__ */new Map,ke=/* @__PURE__ */new Map,Se=/* @__PURE__ */new Set,Oe=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Te=(e,...t)=>{je[e].forEach(e=>e(...t))},Ae=(e,n,s,r)=>Le()?t:(we.set(e,n),s&&xe.set(e,s),r&&$e.set(e,r),Te("scope:mount",e,n),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Te("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Se,plugins:Oe,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}},Pe=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Se.clear(),Oe.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Re,Ie=[],Ce=(e,t)=>{for(const s of[...Ie])try{s(e,t)}catch(n){}Ie.length||console.error(e)},Me=/* @__PURE__ */new WeakSet,We=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},Ve=!1,ze=0,Be=/* @__PURE__ */new Set,Ke=Promise.resolve(),De=e=>Ke.then(e),Fe=e=>(e.i=ze++,e),qe=e=>{e.i??Fe(e),Be.add(e),Ve||(Ve=!0,De(He))},He=()=>{const e=/* @__PURE__ */new Map;for(;Be.size;)for(const n of[...Be].sort((e,t)=>e.i-t.i)){if(Be.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ce(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ce(t,{phase:"effect"})}}Ve=!1,je.flush.size&&!Le()&&Te("flush")},Ue=0,Je=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ue}`)},Ze=e=>(t,n,r)=>{const i="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let o,c=!1;const l=e.effect(()=>{const e=i(),t=o;if(o=e,c?b(e,t):r?.immediate){z();try{n(e,t)}finally{B()}}c=!0});return()=>{We(l),s(e.effects,l)}},Ge=/^(spellcheck|draggable|translate|form|list|type)$/,Qe=/^(img|video|canvas|source)(width|height)$/,Xe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),(n!==i||f(n))&&et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null,i[t])}i="[object Object]"===d(n)?{...n}:n,s||(e.__bound=i)})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",E(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=tt(n),i=tt(s);for(const e in r)st(t,e,r[e]);for(const e in i)null==r[e]&&st(t,e,"");"_vod"in e&&(("display"in r||"display"in i)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ge.test(t)||Qe.test(e.localName+t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Xe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t)):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=e=>a(e=w(e))?O(e):e||{},nt=/\s*!important$/,st=(e,t,n)=>{o(n)?n.forEach(n=>st(e,t,n)):t.startsWith("--")?e.setProperty(t,n):nt.test(n)?e.setProperty(y(t),n.replace(nt,""),"important"):e[t]=n},rt=Object.create(null),it=0,ot=e=>e.replace(/^return\(([^]*)\)$/,"$1"),ct=(e,t,n,s)=>lt(e,`return(${t})`,n,s),lt=(e,t,n,s)=>{let r=rt[t];r||(++it>1e3&&(rt=Object.create(null),it=1),r=rt[t]=at(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){Ce(i,{phase:"expression",expression:s?.expression??ot(t),source:s?.source,el:s?.el??n,scope:e})}},at=(e,n,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ce(r,{phase:"compile",expression:s?.expression??ot(e),source:s?.source,el:s?.el??n}),t}},ut=Object.create(null),ft=0,pt=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,dt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ht=["ctrl","shift","alt","meta"],vt={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)=>ht.some(n=>e[`${n}Key`]&&!t[n])},mt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},gt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,_t=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const i=/\bawait\b/.test(n)?"async ":"";let o,c=dt.test(n)||pt.test(n)?t(`(e => (${n})(e))`):(e=>{const t=ut[e];if(void 0!==t)return t;++ft>1e3&&(ut=Object.create(null),ft=1);try{return new Function(`return (${e})`),ut[e]=!0}catch{return ut[e]=!1}})(n)?t(`(${i}$event => (${n}))`):t(`(${i}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return De(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(o),o=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!gt.test(e)||e in mt);c=s=>{if(!r.outside||!e.contains(s.target)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=y(s.key||"");if(!n.some(t=>t===e||mt[t]===e))return}for(const e in r){const t=vt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&l.removeEventListener(a,c,r),t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,{...r,once:!1}),()=>{clearTimeout(o),l.removeEventListener(a,c,r)}},yt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=bt(t())})},bt=e=>null==e?"":o(e)||f(e)&&(e.toString===p||!l(e.toString))?JSON.stringify(e,null,2):String(e),wt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},xt=e=>"_value"in e?e._value:e.value,$t=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},kt=e=>{e.target.composing=!0},St=e=>{const t=e.target;t.composing&&(t.composing=!1,Ot(t,"input"))},Ot=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Et=/* @__PURE__ */new WeakMap,Lt=e=>{const t=Re;return Re=e,t},jt=(e,t=Re)=>{if(!t)return;const n=Et.get(t);n?n.push(e):Et.set(t,[e])},Tt=e=>{const t=Et.get(e);if(t){Et.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},At={bind:Ye,on:_t,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{e._vsh=!t(),e.style.display=e._vsh?"none":e._vod})},text:yt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===i,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,d=[],h=(t,n)=>d.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,g=!1;if("SELECT"===e.tagName){const t=e;h("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(xt(e)));c(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=xt(r);if(s)r.selected=o(e)&&j(e,i)>-1;else if(L(xt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===i)h("change",v=()=>{const t=n(),s=e.checked;if(o(t)){const n=xt(e),r=j(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c($t(e,s))}),m=()=>{const t=n();o(t)?e.checked=j(t,xt(e))>-1:e.checked=L(t,$t(e,!0))};else if("radio"===i)h("change",v=()=>c(xt(e))),m=()=>{e.checked=L(n(),xt(e))};else{g=!0;const t=e=>p(l?e.trim():e);v=()=>c(t(e.value));let s,i=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;i=t=>{clearTimeout(s),s=setTimeout(c,e,t)},d.push(()=>clearTimeout(s))}}h("compositionstart",kt),h("compositionend",St),h(u?"change":"input",()=>{e.composing||i(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===i&&!e.checked||v()}const _=s(m);if(!g){const t=new MutationObserver(()=>_());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),d.push(()=>t.disconnect())}return()=>d.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const i=qt;return De(()=>{if(!r)return;const o=Lt(e);try{Ut(i,()=>s(()=>lt(t.scope,n,e,{source:"v-effect",el:e})))}finally{Lt(o)}}),()=>{r=!1}}},Nt=(e,t,n)=>{const r=new Comment("v-if");e.before(r);const i=[{exp:t.trim()||"0",el:e}];let o,c;for(;(o=e.nextElementSibling)&&(c=null,""===wt(o,"v-else")||null!=(c=wt(o,"v-else-if")));)o.remove(),i.push({exp:null==c?c:c.trim()||"0",el:o});const l=e.nextSibling;let a;e.remove(),Lt(r);let u=-1;const f=()=>{var e,t;a&&(r.parentNode||a.el.before(r),e=d,t=a.el,s(Et.get(t)||[],e),a.remove(),a=void 0)};let p;const d=()=>We(p);return p=n.effect(()=>{for(let e=0;e<i.length;e++){const{exp:t,el:s}=i[e];if(!t||ct(n.scope,t,s,{source:"v-if",el:s})){if(e!==u){f();const t=r.parentNode;a=new cn(s,n),a.insert(t,r),jt(d,a.el),a.el.parentNode===t&&r.remove(),u=e}return}}u=-1,f()}),jt(d,r),l},Pt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Rt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,It=/^\(|\)$/g,Ct=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Mt=(e,t,n)=>{const s=t.match(Pt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;Lt(i);const l=s[2].trim();let u,p,d,h,v=s[1].trim().replace(It,"").trim(),m=!1,g="key",_=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");_&&(e.removeAttribute(g),"key"===g&&(_=JSON.stringify(_))),(h=v.match(Rt))&&(v=v.replace(Rt,"").trim(),p=h[1].trim(),h[2]&&(d=h[2].trim())),(h=v.match(Ct))&&(u=h[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s?.[m?t:e]):o[v]=s,i?(p&&(o[p]=i),d&&(o[d]=r)):p&&(o[p]=r);const c=_?ct(Object.setPrototypeOf(o,n.scope),_,e,{source:":key",el:e}):r;return t.set(c,r),{data:o,key:c}},k=(t,s)=>{const r=new cn(e,rn(n,t.data));return r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=ct(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e)||a(e))for(let s=0;s<e.length;s++)n.push($(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push($(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push($(t,e[r],s++,r))}return[n,t]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],o=s.get(r.key);s.delete(r.key);const l=t?t.el:i;let a;null==o?a=k(r,l):(a=y[o],Object.assign(a.ctx.scope,r.data),o!==n&&(a.end||a.el).nextSibling!==l&&a.insert(c(),l)),e[n]=t=a}y=e}else y=b.map(e=>k(e,i)),x=!0}),r},Wt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=me(t);let i;return s(()=>{const s=n();t[s]=e,i&&s!==i&&r[i]===e&&delete t[i],i=s}),()=>{r[i]===e&&delete t[i]}},Vt=["visible","idle","interaction"],zt=["[v-scope]",...Vt.map(e=>`[v-scope\\.${e}]`)].join(","),Bt=["pointerdown","keydown","focusin"],Kt=(e,n,r,i)=>{const o=Vt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!o)return!1;const c=`v-scope.${o}`,l=((e,n,s)=>{let r=!1;const i=()=>{r||(r=!0,o(),s())};let o=t;if("visible"===n&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&i()});t.observe(e),o=()=>t.disconnect()}else if("interaction"!==n){const e=window.requestIdleCallback,t=e?e(i):setTimeout(i);o=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Bt)e.addEventListener(t,i);o=()=>{for(const t of Bt)e.removeEventListener(t,i)}}return()=>{r=!0,o()}})(e,o,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),r(e,n,i))});return n.cleanups.push(l),jt(()=>{s(n.cleanups,l),l()}),!0},Dt=/^(?:v-|:|@)/,Ft=/\.([\w-]+)/g,qt=!1,Ht=(e,t,n)=>{e.cleanups.push(t),jt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ut=(e,t)=>{const n=qt;qt=e;try{t()}finally{qt=n}},Jt=(e,t,n)=>Ut(n,()=>Zt(e,t)),Zt=(e,t)=>{const n=Lt(e);try{return Gt(e,t)}finally{Lt(n)}},Gt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Qt(n,t);if(n.hasAttribute("v-pre"))return;if(Kt(n,t,Jt,qt))return;let s;if(wt(n,"v-cloak"),null!=(s=wt(n,"v-if")))return Nt(n,s,t);if(s=wt(n,"v-for"))return Mt(n,s,t);const r=wt(n,"v-name");let i;if(s=wt(n,"v-teleport")){const e=en(s,n,"v-teleport");if(e){i=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),Ht(t,()=>{Tt(n),n.remove()},s)}}if((s=wt(n,"v-scope"))||""===s){const e=(s?ct(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=rn(t,e),n.__ctx=t;const i=Ae(n,t.scope,s||void 0,r||void 0);Ht(t,()=>{i(),delete n.__ctx}),e.$template&&tn(n,e.$template)}const o=qt;null!=wt(n,"v-once")&&(qt=!0),(s=wt(n,"ref"))&&Yt(n,Wt,`"${s}"`,t),Qt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Dt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Xt(n,e,l,t));for(const[e,l]of c)Xt(n,e,l,t);return qt=o,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&!(e.parentNode instanceof HTMLScriptElement)){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Yt(e,yt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Qt(e,t)},Qt=(e,t)=>{let n=e.firstChild;for(;n;)n=Zt(n,t)||n.nextSibling},Xt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(Ft,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Ye,o=t.slice(1);else if("@"===t[0])r=_t,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(At,n)?At[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===o&&(r=Wt),Yt(e,r,n,s,o,c,l),e.removeAttribute(l))},Yt=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},a=t=>Ce(t,{phase:"handler",source:o,el:e,expression:n,scope:s.scope}),u=t=>{const r=ct(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=Lt(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{Lt(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(p){return void Ce(p,{phase:"directive",source:o,el:e,expression:n})}f&&Ht(s,f)},en=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ce(s,{phase:"directive",source:n,el:t,expression:e})}},tn=(e,t)=>{if("#"===t[0]){const n=en(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},nn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:de({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(qt){const t=()=>Ut(!0,e);return qe(t),t}const n=Fe(C(e,{scheduler:()=>qe(n),lazy:!0}));return t.effects.push(n),jt(()=>{We(n),s(t.effects,n)}),n(),n}};return t},sn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rn=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),sn(s,"$refs",Object.create(n.$refs));const r=de(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return sn(s,"$watch",Ze(o)),sn(s,"$id",Je()),on(r,s),o},on=(e,t=e)=>{for(const n of Object.keys(t)){const s=Object.getOwnPropertyDescriptor(t,n).value;"function"==typeof s&&(e[n]=s.bind(e))}},cn=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=nn(t),Zt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,jt(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(We),this.ctx.cleanups.splice(0).forEach(e=>e())}},ln=de(Object.create(null)),an=(e,t)=>(void 0!==t&&(ln[e]=t,"function"==typeof ln[e].init&&ln[e].init(),((e,t)=>{Le()||(ke.set(e,t),Te("store:register",e,t))})(e,ln[e])),ln[e]),un=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),fn=e=>{const t=nn();if("function"==typeof e&&(e=e()),e&&(t.scope=de(e),on(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(un(n)+"([^]+?)"+un(s),"g")}sn(t.scope,"$s",bt),sn(t.scope,"$nextTick",De),sn(t.scope,"$refs",Object.create(null)),sn(t.scope,"$store",ln),sn(t.scope,"$watch",Ze(t)),sn(t.scope,"$id",Je()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let r=[];const i=[],o=/* @__PURE__ */new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Se.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ie.push(n),()=>{const e=Ie.indexOf(n);e>-1&&Ie.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!o.has(e)){o.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(zt)?[e]:[...e.querySelectorAll(zt)].filter(e=>!e.matches(`:where(${zt}) *`)),n.length||(n=[e]),t.walk??=Zt,t.dispose??=Tt;for(const i of n){const e=i.getAttribute("v-name"),n=new cn(i,t,!0);i.__ctx??=n.ctx,Ne.scopes.has(i)||i.matches(zt)||n.ctx.cleanups.push(Ae(i,n.ctx.scope,void 0,e||void 0)),r.push(n),jt(()=>s(r,n),i),n.ctx.cleanups.push(()=>delete i.__ctx)}return this},unmount(e){if(null==e)return r.forEach(e=>e.teardown()),r=[],t.effects.splice(0).forEach(We),i.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ce(t,{phase:"teardown",source:"plugin"})}}),o.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const s=[];for(const t of r){const e=t.template;n.contains(e)?t.teardown():s.push(t)}r=s}};return a},pn=e=>{const t=C(e,{scheduler:()=>qe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw We(t),n}return()=>We(t)},dn=document.currentScript;dn&&dn.hasAttribute("init")&&fn().mount();export{_e as computed,fn as createApp,Ne as devtools,Pe as disableDevtools,De as nextTick,de as reactive,an as store,pn as watchEffect};
|
|
1
|
+
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,o=(e,t)=>r.call(e,t),i=Array.isArray,c=e=>"[object Date]"===h(e),l=e=>"function"==typeof e,a=e=>"string"==typeof e,u=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,_=/* @__PURE__ */m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),g=/\B([A-Z])/g,y=/* @__PURE__ */m(e=>e.replace(g,"-$1").toLowerCase()),b=(e,t)=>!Object.is(e,t);function w(e){if(i(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?S(s):w(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||f(e))return e}var x,$=/;(?![^(]*\))/g,k=/:([^]+)/,O=/\/\*[^]*?\*\//g;function S(e){const t={};return e.replace(O,"").split($).forEach(e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function E(e){let t="";if(a(e))t=e;else if(i(e))for(let n=0;n<e.length;n++){const s=E(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function L(e,t){if(e===t)return!0;let n=c(e),s=c(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=u(e),s=u(t),n||s)return e===t;if(n=i(e),s=i(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=L(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!L(e[n],t[n]))return!1}}return String(e)===String(t)}function j(e,t){return e.findIndex(e=>L(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,z();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(T(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=M,t=x;try{return M=!0,x=this,this._runnings++,P(this),this.fn()}finally{R(this),this._runnings--,x=t,M=e}}stop(){this.active&&(P(this),R(this),this.onStop&&this.onStop(),this.active=!1)}};function T(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function R(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)I(e.deps[t],e);e.deps.length=e._depsLength}}function I(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,s){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&A(r,s.scope)),s&&s.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var M=!0,W=0,V=[];function z(){V.push(M),M=!1}function D(){const e=V.pop();M=void 0===e||e}function F(){W++}function B(){for(W--;!W&&q.length;)q.shift()()}function K(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&I(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var q=[];function U(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&q.push(s.scheduler)))}B()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},J=/* @__PURE__ */new WeakMap,Z=Symbol("");function G(e,t,n){if(M&&x){let t=J.get(e);t||J.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),K(x,s)}}function Q(e,t,n,s,r,o){const c=J.get(e);if(!c)return;let l=[];if("length"===n&&i(e)){const e=Number(s);c.forEach((t,n)=>{("length"===n||!u(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(c.get(n)),t){case"add":i(e)?d(n)&&l.push(c.get("length")):l.push(c.get(Z));break;case"delete":i(e)||l.push(c.get(Z))}F();for(const i of l)i&&U(i,4);B()}var X=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),Y=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(u)),ee=/* @__PURE__ */te();function te(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ve(this);for(let t=0,r=this.length;t<r;t++)G(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ve)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){z(),F();const n=ve(this)[t].apply(this,e);return B(),D(),n}}),e}function ne(e){u(e)||(e=String(e));const t=ve(this);return G(t,0,e),t.hasOwnProperty(e)}var se=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?fe:ue:r?ae:le).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=i(e);if(!s){if(c&&o(ee,t))return Reflect.get(ee,t,n);if("hasOwnProperty"===t)return ne}const l=Reflect.get(e,t,n);return(u(t)?Y.has(t):X(t))?l:(s||G(e,0,t),r?l:be(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return de(e,!0,ce,null,ue)}(l):he(l):l)}},re=class extends se{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=ve(r),n=ve(n)),!i(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const c=i(e)&&d(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===ve(s)&&(c?b(n,r)&&Q(e,"set",t,n):Q(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Q(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return u(t)&&Y.has(t)||G(e,0,t),n}ownKeys(e){return G(e,0,i(e)?"length":Z),Reflect.ownKeys(e)}},oe=class extends se{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ie=/* @__PURE__ */new re,ce=/* @__PURE__ */new oe,le=/* @__PURE__ */new WeakMap,ae=/* @__PURE__ */new WeakMap,ue=/* @__PURE__ */new WeakMap,fe=/* @__PURE__ */new WeakMap;function pe(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return me(e)?e:de(e,!1,ie,null,le)}function de(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=pe(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}var _e=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ve(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||ye(e,4),t=e,M&&x&&(t=ve(t),K(x,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof _e?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ge(e,n,s=!1){let r,o;const i=l(e);return i?(r=e,o=t):(r=e.get,o=e.set),new _e(r,o,i||!o,s)}function ye(e,t=4,n,s){const r=(e=ve(e)).dep;r&&U(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=/* @__PURE__ */new Map,xe=/* @__PURE__ */new Map,$e=/* @__PURE__ */new Map,ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Ne=(e,n,s,r)=>Le()?t:(we.set(e,n),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,n),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Te={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}},Pe=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Te&&delete window.__LITE_VUE__};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Te);var Re,Ie=[],Ce=(e,t)=>{for(const s of[...Ie])try{s(e,t)}catch(n){console.error(e,n)}Ie.length||console.error(e)},Me=/* @__PURE__ */new WeakSet,We=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},Ve=!1,ze=0,De=/* @__PURE__ */new Set,Fe=Promise.resolve(),Be=e=>Fe.then(e),Ke=e=>(e.i=ze++,e),qe=e=>{e.i??Ke(e),De.add(e),Ve||(Ve=!0,Be(Ue))},Ue=()=>{const e=/* @__PURE__ */new Map;for(;De.size;)for(const n of[...De].sort((e,t)=>e.i-t.i)){if(De.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ce(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ce(t,{phase:"effect"})}}Ve=!1,je.flush.size&&!Le()&&Ae("flush")},He=0,Je=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Ze=e=>(t,n,r)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?b(e,t):r?.immediate){z();try{n(e,t)}finally{D(),i=o()}}c=!0});return()=>{We(l),s(e.effects,l)}},Ge=/^(spellcheck|draggable|translate|form|list|type)$/,Qe=/^(img|video|canvas|source)(width|height)$/,Xe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),tt(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?tt:nt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||nt(e,s,null,o[s])}o=et(n),!s&&o?.style&&(o.style=et(o.style)),s||(e.__bound=o)})},et=e=>f(e)?{...st(e)}:e,tt=(e,t,n,s)=>{(n!==s||f(n)||"value"===t)&&nt(e,t,n,s)},nt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",E(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=st(n),o=st(s);for(const e in r)ot(t,e,r[e]);for(const e in o)null==r[e]&&ot(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ge.test(t)||Qe.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Xe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},st=e=>a(e=w(e))?S(e):e||{},rt=/\s*!important$/,ot=(e,t,n)=>{i(n)?n.forEach(n=>ot(e,t,n)):t.startsWith("--")?e.setProperty(t,n):rt.test(n)?e.setProperty(y(t),n.replace(rt,""),"important"):e[t]=n},it=Object.create(null),ct=0,lt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),at=(e,t,n,s)=>ut(e,`return(${t})`,n,s),ut=(e,t,n,s)=>{let r=it[t];r||(++ct>1e3&&(it=Object.create(null),ct=1),r=it[t]=ft(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ce(o,{phase:"expression",expression:s?.expression??lt(t),source:s?.source,el:s?.el??n,scope:e})}},ft=(e,n,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ce(r,{phase:"compile",expression:s?.expression??lt(e),source:s?.source,el:s?.el??n}),t}},pt=Object.create(null),ht=0,dt=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,mt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,vt=["ctrl","shift","alt","meta"],_t={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)=>vt.some(n=>e[`${n}Key`]&&!t[n])},gt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},yt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,bt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=mt.test(n)||dt.test(n)?t(`(e => (${i})(e))`):(e=>{const t=pt[e];if(void 0!==t)return t;++ht>1e3&&(pt=Object.create(null),ht=1);try{return new Function(`return (${e})`),pt[e]=!0}catch{return pt[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Be(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!yt.test(e)||e in gt);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=y(s.key||"");if(!n.some(t=>t===e||gt[t]===e))return}for(const e in r){const t=_t[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},wt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=xt(t())})},xt=e=>null==e?"":i(e)||f(e)&&(e.toString===p||!l(e.toString))?JSON.stringify(e,null,2):String(e),$t=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},kt=e=>"_value"in e?e._value:e.value,Ot=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},St=e=>{e.target.composing=!0},Et=e=>{const t=e.target;t.composing&&(t.composing=!1,Lt(t,"input"))},Lt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},jt=/* @__PURE__ */new WeakMap,At=e=>{const t=Re;return Re=e,t},Nt=(e,t=Re)=>{if(!t)return;const n=jt.get(t);n?n.push(e):jt.set(t,[e])},Tt=e=>{const t=jt.get(e);if(t){jt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Pt={bind:Ye,on:bt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:wt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let m,v,_=!1;if("SELECT"===e.tagName){const t=e;d("change",m=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(kt(e)));c(t.multiple?e:e[0])}),v=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=kt(r);if(s)r.selected=i(e)&&j(e,o)>-1;else if(L(kt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",m=()=>{const t=n(),s=e.checked;if(i(t)){const n=kt(e),r=j(t,n),o=-1!==r;if(s&&!o)c(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),c(e)}}else c(Ot(e,s))}),v=()=>{const t=n();i(t)?e.checked=j(t,kt(e))>-1:e.checked=L(t,Ot(e,!0))};else if("radio"===o)d("change",m=()=>c(kt(e))),v=()=>{e.checked=L(n(),kt(e))};else{_=!0;const t=e=>p(l?e.trim():e);m=()=>c(t(e.value));let s,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(c,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",St),d("compositionend",Et),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),v=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||m()}const g=s(v);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ht;return Be(()=>{if(!r)return;const i=At(e);try{Zt(o,()=>s(()=>ut(t.scope,n,e,{source:"v-effect",el:e})))}finally{At(i)}}),()=>{r=!1}}},Rt=(e,t,n)=>{const r=new Comment("v-if");e.before(r);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===$t(i,"v-else")||null!=(c=$t(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),At(r);let u=-1;const f=()=>{var e,t;a&&(r.parentNode||a.el.before(r),e=h,t=a.el,s(jt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{We(p),s(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:s}=o[e];if(!t||at(n.scope,t,s,{source:"v-if",el:s})){if(e!==u){f();const t=r.parentNode;a=new un(s,n),a.insert(t,r),Nt(h,a.el),a.el.parentNode===t&&r.remove(),u=e}return}}u=-1,f()}),Nt(h,r),l},It=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ct=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Mt=/^\(|\)$/g,Wt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Vt=(e,t,n)=>{const s=t.match(It);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const c=()=>o.parentNode;At(o);const l=s[2].trim();let u,p,h,d,m=s[1].trim().replace(Mt,"").trim(),v=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=m.match(Ct))&&(m=m.replace(Ct,"").trim(),p=d[1].trim(),d[2]&&(h=d[2].trim())),(d=m.match(Wt))&&(u=d[1].split(",").map(e=>e.trim()),v="["===m[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};u?u.forEach((e,t)=>i[e]=s?.[v?t:e]):i[m]=s,null!=o?(p&&(i[p]=o),h&&(i[h]=r)):p&&(i[p]=r);const c=g?at(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new un(e,cn(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=at(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=/* @__PURE__ */new Map,s=[];try{if(i(t)||a(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(f(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ce(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],/* @__PURE__ */new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],i=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==i)a=k(r,l);else{a=y[i],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;i!==n&&e!==l&&a.insert(c(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},zt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=ve(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},Dt=["visible","idle","interaction"],Ft=["[v-scope]",...Dt.map(e=>`[v-scope\\.${e}]`)].join(","),Bt=["pointerdown","keydown","focusin"],Kt=(e,n,r,o)=>{const i=Dt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,n,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=t;if("visible"===n&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==n){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Bt)e.addEventListener(t,o);i=()=>{for(const t of Bt)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),r(e,n,o))});return n.cleanups.push(l),Nt(()=>{s(n.cleanups,l),l()}),!0},qt=/^(?:v-|:|@)/,Ut=/\.([\w-]+)/g,Ht=!1,Jt=(e,t,n)=>{e.cleanups.push(t),Nt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Zt=(e,t)=>{const n=Ht;Ht=e;try{t()}finally{Ht=n}},Gt=(e,t,n)=>Zt(n,()=>Qt(e,t)),Qt=(e,t)=>{const n=At(e);try{return Xt(e,t)}finally{At(n)}},Xt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Yt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=$t(n,"v-if")))return Rt(n,r,t);if(r=$t(n,"v-for"))return Vt(n,r,t);if(Kt(n,t,Gt,Ht))return;$t(n,"v-cloak");const o=$t(n,"v-name");let i;if(r=$t(n,"v-teleport")){const e=nn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ce(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Jt(t,()=>{Tt(n),n.remove()},o)}}if((r=$t(n,"v-scope"))||""===r){const e=(r?at(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=cn(t,e),n.__ctx=t;const s=Ne(n,t.scope,r||void 0,o||void 0);Jt(t,()=>{s(),delete n.__ctx}),e.$template&&sn(n,e.$template)}const c=Ht;null!=$t(n,"v-once")&&(Ht=!0),(r=$t(n,"ref"))&&tn(n,zt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Yt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])qt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):en(n,e,s,t));for(const[e,s]of l)en(n,e,s,t);return Ht=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),tn(e,wt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Yt(e,t)},Yt=(e,t)=>{let n=e.firstChild;for(;n;)n=Qt(n,t)||n.nextSibling},en=(e,t,n,s)=>{let r,i,c;const l=t;if(":"===(t=t.replace(Ut,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=bt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=o(Pt,n)?Pt[n]:o(s.dirs,n)?s.dirs[n]:void 0,i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=zt),tn(e,r,n,s,i,c,l),e.removeAttribute(l))},tn=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ce(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=at(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=At(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{At(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ce(p,{phase:"directive",source:i,el:e,expression:n})}f&&Jt(s,()=>{try{f()}catch(p){Ce(p,{phase:"teardown",source:i,el:e,expression:n})}})},nn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ce(s,{phase:"directive",source:n,el:t,expression:e})}},sn=(e,t)=>{if("#"===t[0]){const n=nn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(e.ownerDocument.importNode(n.content,!0))}e.innerHTML=t},rn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ht){const t=()=>Zt(!0,e);return qe(t),t}const n=Ke(C(e,{scheduler:()=>qe(n),lazy:!0}));return t.effects.push(n),Nt(()=>{We(n),s(t.effects,n)}),n(),n}};return t},on=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cn=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),on(r,"$refs",Object.create(s.$refs));const i=he(new Proxy(r,{set:(e,t,n,r)=>r!==i||o(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:i};return on(r,"$watch",Ze(c)),on(r,"$id",Je()),n||ln(i,r),c},ln=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},an=e=>{e.ctx.blocks.forEach(an),e.ctx.effects.splice(0).forEach(We)},un=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.ownerDocument.importNode(e.content,!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=rn(t),Qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Nt(()=>this.discard(),this.el))}remove(){this.parentCtx&&(s(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};an(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(We),this.ctx.cleanups.splice(0).forEach(e=>e())}},fn=he(Object.create(null)),pn=(e,t)=>(void 0!==t&&(fn[e]=t,"function"==typeof fn[e].init&&fn[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,fn[e])),fn[e]),hn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),dn=e=>e&&(e.__r||e.hasAttribute("v-pre")||dn(e.parentElement)),mn=e=>{const t=rn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),ln(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(hn(n)+"([^]+?)"+hn(s),"g")}on(t.scope,"$s",xt),on(t.scope,"$nextTick",Be),on(t.scope,"$refs",Object.create(null)),on(t.scope,"$store",fn),on(t.scope,"$watch",Ze(t)),on(t.scope,"$id",Je()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let r=[];const o=[],i=/* @__PURE__ */new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ie.push(n),()=>{const e=Ie.indexOf(n);e>-1&&Ie.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Ft)?[e]:[...e.querySelectorAll(Ft)].filter(e=>!e.matches(`:where(${Ft}) *`)),n.length||(n=[e]),n=n.filter(e=>!dn(e)),t.walk??=Qt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new un(o,t,!0);i.host=n,o.__ctx??=i.ctx,Te.scopes.has(o)||o.matches(Ft)||i.ctx.cleanups.push(Ne(o,i.ctx.scope,void 0,e||void 0)),r.push(i),Nt(()=>(s(r,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return r.forEach(e=>e.teardown()),r=[],t.effects.splice(0).forEach(We),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ce(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const s=[];for(const t of r){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():s.push(t)}r=s}};return a},vn=e=>{const t=C(e,{scheduler:()=>qe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw We(t),n}return()=>We(t)},_n=document.currentScript;_n&&_n.hasAttribute("init")&&mn().mount();export{ge as computed,mn as createApp,Te as devtools,Pe as disableDevtools,Be as nextTick,he as reactive,pn as store,vn as watchEffect};
|
package/dist/litevue.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Date]"===h(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=m(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=m(e=>e.replace(_,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,S=/:([^]+)/,O=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(O,"").split(k).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function T(e,t){return e.findIndex(e=>j(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,B();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&A(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var W=!0,V=0,z=[];function B(){z.push(W),W=!1}function D(){const e=z.pop();W=void 0===e||e}function K(){V++}function F(){for(V--;!V&&H.length;)H.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var H=[];function U(e,t,n){K();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&H.push(s.scheduler)))}F()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,o){const i=Z.get(e);if(!i)return;let l=[];if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":c(e)?v(n)&&l.push(i.get("length")):l.push(i.get(G));break;case"delete":c(e)||l.push(i.get(G))}K();for(const c of l)c&&U(c,4);F()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ge(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ge)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){B(),K();const n=ge(this)[t].apply(this,e);return F(),D(),n}}),e}function se(e){f(e)||(e=String(e));const t=ge(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?o&&v(t)?l:l.value:p(l)?s?function(e){return ve(e,!0,le,null,fe)}(l):he(l):l)}},oe=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=ge(r),n=ge(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const o=c(e)&&v(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ge(s)&&(o?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},ie=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new oe,le=new ie,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function de(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return me(e)?e:ve(e,!1,ce,null,ae)}function ve(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=de(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}var ye=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>_e(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ge(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||_e(e,4),t=e,W&&$&&(t=ge(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof ye?t:void 0))),e.effect._dirtyLevel>=2&&_e(e,2),e._value}set value(e){this._setter(e)}};function _e(e,t=4,n,s){const r=(e=ge(e)).dep;r&&U(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Se=new Set,Oe=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Te=(e,...t)=>{je[e].forEach(e=>e(...t))},Ae=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Te("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Te("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Se,plugins:Oe,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){}Re.length||console.error(e)},Me=new WeakSet,Ce=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,Be=Promise.resolve(),De=e=>Be.then(e),Ke=e=>(e.i=Ve++,e),Fe=e=>{e.i??Ke(e),ze.add(e),We||(We=!0,De(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Te("flush")},He=0,Ue=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Je=e=>(t,n,s)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?w(e,t):s?.immediate){B();try{n(e,t)}finally{D()}}c=!0});return()=>{Ce(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),(n!==o||p(n))&&Ye(e,s,n,o);else{for(const t in n)Ye(e,t,n[t],o&&o[t]);for(const t in o)n&&t in n||Ye(e,t,null,o[t])}o="[object Object]"===h(n)?{...n}:n,s||(e.__bound=o)})},Ye=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=et(n),o=et(s);for(const e in r)nt(t,e,r[e]);for(const e in o)null==r[e]&&nt(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t)):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},et=e=>u(e=x(e))?E(e):e||{},tt=/\s*!important$/,nt=(e,t,n)=>{c(n)?n.forEach(n=>nt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):tt.test(n)?e.setProperty(b(t),n.replace(tt,""),"important"):e[t]=n},st=Object.create(null),rt=0,ot=e=>e.replace(/^return\(([^]*)\)$/,"$1"),it=(e,t,n,s)=>ct(e,`return(${t})`,n,s),ct=(e,t,n,s)=>{let r=st[t];r||(++rt>1e3&&(st=Object.create(null),rt=1),r=st[t]=lt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ie(o,{phase:"expression",expression:s?.expression??ot(t),source:s?.source,el:s?.el??n,scope:e})}},lt=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??ot(e),source:s?.source,el:s?.el??t}),n}},at=Object.create(null),ut=0,ft=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,pt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,dt=["ctrl","shift","alt","meta"],ht={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)=>dt.some(n=>e[`${n}Key`]&&!t[n])},vt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},mt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,gt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"";let i,c=pt.test(n)||ft.test(n)?t(`(e => (${n})(e))`):(e=>{const t=at[e];if(void 0!==t)return t;++ut>1e3&&(at=Object.create(null),ut=1);try{return new Function(`return (${e})`),at[e]=!0}catch{return at[e]=!1}})(n)?t(`(${o}$event => (${n}))`):t(`(${o}$event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return De(()=>{e&&c()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>c();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=c;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(i),i=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!mt.test(e)||e in vt);c=s=>{if(!r.outside||!e.contains(s.target)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||vt[t]===e))return}for(const e in r){const t=ht[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&l.removeEventListener(a,c,r),t(s)}}}const l=r?.window?window:r?.document||r?.outside?document:e,a=s;return l.addEventListener(a,c,{...r,once:!1}),()=>{clearTimeout(i),l.removeEventListener(a,c,r)}},yt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=_t(t())})},_t=e=>null==e?"":c(e)||p(e)&&(e.toString===d||!a(e.toString))?JSON.stringify(e,null,2):String(e),bt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},wt=e=>"_value"in e?e._value:e.value,xt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},$t=e=>{e.target.composing=!0},kt=e=>{const t=e.target;t.composing&&(t.composing=!1,St(t,"input"))},St=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Ot=new WeakMap,Et=e=>{const t=Pe;return Pe=e,t},Lt=(e,t=Pe)=>{if(!t)return;const n=Ot.get(t);n?n.push(e):Ot.set(t,[e])},jt=e=>{const t=Ot.get(e);if(t){Ot.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;jt(n),n=e}},Tt={bind:Xe,on:gt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{e._vsh=!t(),e.style.display=e._vsh?"none":e._vod})},text:yt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,d=[],h=(t,n)=>d.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,g=!1;if("SELECT"===e.tagName){const t=e;h("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(wt(e)));i(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=wt(r);if(s)r.selected=c(e)&&T(e,o)>-1;else if(j(wt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)h("change",v=()=>{const t=n(),s=e.checked;if(c(t)){const n=wt(e),r=T(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(xt(e,s))}),m=()=>{const t=n();c(t)?e.checked=T(t,wt(e))>-1:e.checked=j(t,xt(e,!0))};else if("radio"===o)h("change",v=()=>i(wt(e))),m=()=>{e.checked=j(n(),wt(e))};else{g=!0;const t=e=>p(l?e.trim():e);v=()=>i(t(e.value));let s,o=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(i,e,t)},d.push(()=>clearTimeout(s))}}h("compositionstart",$t),h("compositionend",kt),h(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||v()}const y=s(m);if(!g){const t=new MutationObserver(()=>y());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),d.push(()=>t.disconnect())}return()=>d.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ft;return De(()=>{if(!r)return;const i=Et(e);try{Ht(o,()=>s(()=>ct(t.scope,n,e,{source:"v-effect",el:e})))}finally{Et(i)}}),()=>{r=!1}}},At=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===bt(i,"v-else")||null!=(c=bt(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),Et(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=d,t=a.el,r(Ot.get(t)||[],e),a.remove(),a=void 0)};let p;const d=()=>Ce(p);return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:r}=o[e];if(!t||it(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new on(r,n),a.insert(t,s),Lt(d,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),Lt(d,s),l},Nt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Pt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Rt=/^\(|\)$/g,It=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Mt=(e,t,n)=>{const s=t.match(Nt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;Et(o);const l=s[2].trim();let a,f,d,h,v=s[1].trim().replace(Rt,"").trim(),m=!1,g="key",y=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");y&&(e.removeAttribute(g),"key"===g&&(y=JSON.stringify(y))),(h=v.match(Pt))&&(v=v.replace(Pt,"").trim(),f=h[1].trim(),h[2]&&(d=h[2].trim())),(h=v.match(It))&&(a=h[1].split(",").map(e=>e.trim()),m="["===v[0]);let _,b,w,x=!1;const $=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s?.[m?t:e]):i[v]=s,o?(f&&(i[f]=o),d&&(i[d]=r)):f&&(i[f]=r);const c=y?it(Object.setPrototypeOf(i,n.scope),y,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new on(e,sn(n,t.data));return r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=it(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(e=>{const t=new Map,n=[];if(c(e)||u(e))for(let s=0;s<e.length;s++)n.push($(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push($(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push($(t,e[r],s++,r))}return[n,t]})(t),x){for(let r=0;r<_.length;r++){const e=_[r].key;w.has(e)&&s.get(e)===r||_[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;null==c?a=k(r,l):(a=_[c],Object.assign(a.ctx.scope,r.data),c!==n&&(a.end||a.el).nextSibling!==l&&a.insert(i(),l)),e[n]=t=a}_=e}else _=b.map(e=>k(e,o)),x=!0}),r},Ct=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=ge(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},Wt=["visible","idle","interaction"],Vt=["[v-scope]",...Wt.map(e=>`[v-scope\\.${e}]`)].join(","),zt=["pointerdown","keydown","focusin"],Bt=(e,t,s,o)=>{const i=Wt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,t,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&o()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of zt)e.addEventListener(t,o);i=()=>{for(const t of zt)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,o))});return t.cleanups.push(l),Lt(()=>{r(t.cleanups,l),l()}),!0},Dt=/^(?:v-|:|@)/,Kt=/\.([\w-]+)/g,Ft=!1,qt=(e,t,n)=>{e.cleanups.push(t),Lt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Ht=(e,t)=>{const n=Ft;Ft=e;try{t()}finally{Ft=n}},Ut=(e,t,n)=>Ht(n,()=>Jt(e,t)),Jt=(e,t)=>{const n=Et(e);try{return Zt(e,t)}finally{Et(n)}},Zt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Gt(n,t);if(n.hasAttribute("v-pre"))return;if(Bt(n,t,Ut,Ft))return;let s;if(bt(n,"v-cloak"),null!=(s=bt(n,"v-if")))return At(n,s,t);if(s=bt(n,"v-for"))return Mt(n,s,t);const r=bt(n,"v-name");let o;if(s=bt(n,"v-teleport")){const e=Yt(s,n,"v-teleport");if(e){o=n.nextSibling;const s=n.__marker=new Text("");n.before(s),e.appendChild(n),qt(t,()=>{jt(n),n.remove()},s)}}if((s=bt(n,"v-scope"))||""===s){const e=(s?it(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=sn(t,e),n.__ctx=t;const o=Ae(n,t.scope,s||void 0,r||void 0);qt(t,()=>{o(),delete n.__ctx}),e.$template&&en(n,e.$template)}const i=Ft;null!=bt(n,"v-once")&&(Ft=!0),(s=bt(n,"ref"))&&Xt(n,Ct,`"${s}"`,t),Gt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Dt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Qt(n,e,l,t));for(const[e,l]of c)Qt(n,e,l,t);return Ft=i,o}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&!(e.parentNode instanceof HTMLScriptElement)){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),Xt(e,yt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Gt(e,t)},Gt=(e,t)=>{let n=e.firstChild;for(;n;)n=Jt(n,t)||n.nextSibling},Qt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(Kt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=gt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(Tt,n)?Tt[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Ct),Xt(e,r,n,s,o,c,l),e.removeAttribute(l))},Xt=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c},a=t=>Ie(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=it(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=Et(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{Et(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ie(p,{phase:"directive",source:i,el:e,expression:n})}f&&qt(s,f)},Yt=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},en=(e,t)=>{if("#"===t[0]){const n=Yt(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},tn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ft){const t=()=>Ht(!0,e);return Fe(t),t}const n=Ke(C(e,{scheduler:()=>Fe(n),lazy:!0}));return t.effects.push(n),Lt(()=>{Ce(n),r(t.effects,n)}),n(),n}};return t},nn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),sn=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),nn(s,"$refs",Object.create(n.$refs));const r=he(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return nn(s,"$watch",Je(o)),nn(s,"$id",Ue()),rn(r,s),o},rn=(e,t=e)=>{for(const n of Object.keys(t)){const s=Object.getOwnPropertyDescriptor(t,n).value;"function"==typeof s&&(e[n]=s.bind(e))}},on=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=tn(t),Jt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Lt(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),jt(n),n!==this.end);)n=t}else e.removeChild(this.template),jt(this.template);this.template.__marker?.remove(),this.teardown()},t=[];let n=this.start||this.template;for(;n;){const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ce),this.ctx.cleanups.splice(0).forEach(e=>e())}},cn=he(Object.create(null)),ln=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),an=e=>{const t=tn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),rn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(ln(n)+"([^]+?)"+ln(s),"g")}nn(t.scope,"$s",_t),nn(t.scope,"$nextTick",De),nn(t.scope,"$refs",Object.create(null)),nn(t.scope,"$store",cn),nn(t.scope,"$watch",Je(t)),nn(t.scope,"$id",Ue()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const o=[],i=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Se.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Vt)?[e]:[...e.querySelectorAll(Vt)].filter(e=>!e.matches(`:where(${Vt}) *`)),n.length||(n=[e]),t.walk??=Jt,t.dispose??=jt;for(const o of n){const e=o.getAttribute("v-name"),n=new on(o,t,!0);o.__ctx??=n.ctx,Ne.scopes.has(o)||o.matches(Vt)||n.ctx.cleanups.push(Ae(o,n.ctx.scope,void 0,e||void 0)),s.push(n),Lt(()=>r(s,n),o),n.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Ce),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)?t.teardown():r.push(t)}s=r}};return a},un=document.currentScript;un&&un.hasAttribute("init")&&an().mount(),e.computed=function(e,t,s=!1){let r,o;const i=a(e);return i?(r=e,o=n):(r=e.get,o=e.set),new ye(r,o,i||!o,s)},e.createApp=an,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Se.clear(),Oe.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=De,e.reactive=he,e.store=(e,t)=>(void 0!==t&&(cn[e]=t,"function"==typeof cn[e].init&&cn[e].init(),((e,t)=>{Le()||(ke.set(e,t),Te("store:register",e,t))})(e,cn[e])),cn[e]),e.watchEffect=e=>{const t=C(e,{scheduler:()=>Fe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Ce(t),n}return()=>Ce(t)}});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Date]"===h(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_=/-(\w)/g,g=v(e=>e.replace(_,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=v(e=>e.replace(y,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>j(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)C(e.deps[t],e);e.deps.length=e._depsLength}}function C(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function M(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&T(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var W=!0,V=0,z=[];function D(){z.push(W),W=!1}function F(){const e=z.pop();W=void 0===e||e}function B(){V++}function K(){for(V--;!V&&U.length;)U.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&C(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var U=[];function H(e,t,n){B();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&U.push(s.scheduler)))}K()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,o){const i=Z.get(e);if(!i)return;let l=[];if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":c(e)?m(n)&&l.push(i.get("length")):l.push(i.get(G));break;case"delete":c(e)||l.push(i.get(G))}B();for(const c of l)c&&H(c,4);K()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),B();const n=_e(this)[t].apply(this,e);return K(),F(),n}}),e}function se(e){f(e)||(e=String(e));const t=_e(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?o&&m(t)?l:l.value:p(l)?s?function(e){return me(e,!0,le,null,fe)}(l):he(l):l)}},oe=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ve(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ve(n)||(r=_e(r),n=_e(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const o=c(e)&&m(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===_e(s)&&(o?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},ie=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new oe,le=new ie,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function de(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return ve(e)?e:me(e,!1,ce,null,ae)}function me(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=de(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function ve(e){return!(!e||!e.__v_isReadonly)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}var ge=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=_e(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||ye(e,4),t=e,W&&$&&(t=_e(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof ge?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ye(e,t=4,n,s){const r=(e=_e(e)).dep;r&&H(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Oe=new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Te=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){console.error(e,n)}Re.length||console.error(e)},Ce=new WeakSet,Me=e=>{Ce.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,De=Promise.resolve(),Fe=e=>De.then(e),Be=e=>(e.i=Ve++,e),Ke=e=>{e.i??Be(e),ze.add(e),We||(We=!0,Fe(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Ce.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Ae("flush")},Ue=0,He=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ue}`)},Je=e=>(t,n,s)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?w(e,t):s?.immediate){D();try{n(e,t)}finally{F(),i=o()}}c=!0});return()=>{Me(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?et:tt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||tt(e,s,null,o[s])}o=Ye(n),!s&&o?.style&&(o.style=Ye(o.style)),s||(e.__bound=o)})},Ye=e=>p(e)?{...nt(e)}:e,et=(e,t,n,s)=>{(n!==s||p(n)||"value"===t)&&tt(e,t,n,s)},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),o=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in o)null==r[e]&&rt(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},nt=e=>u(e=x(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{c(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(b(t),n.replace(st,""),"important"):e[t]=n},ot=Object.create(null),it=0,ct=e=>e.replace(/^return\(([^]*)\)$/,"$1"),lt=(e,t,n,s)=>at(e,`return(${t})`,n,s),at=(e,t,n,s)=>{let r=ot[t];r||(++it>1e3&&(ot=Object.create(null),it=1),r=ot[t]=ut(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ie(o,{phase:"expression",expression:s?.expression??ct(t),source:s?.source,el:s?.el??n,scope:e})}},ut=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??ct(e),source:s?.source,el:s?.el??t}),n}},ft=Object.create(null),pt=0,dt=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,ht=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,mt=["ctrl","shift","alt","meta"],vt={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)=>mt.some(n=>e[`${n}Key`]&&!t[n])},_t={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},gt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,yt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=ht.test(n)||dt.test(n)?t(`(e => (${i})(e))`):(e=>{const t=ft[e];if(void 0!==t)return t;++pt>1e3&&(ft=Object.create(null),pt=1);try{return new Function(`return (${e})`),ft[e]=!0}catch{return ft[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Fe(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!gt.test(e)||e in _t);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||_t[t]===e))return}for(const e in r){const t=vt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},bt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=wt(t())})},wt=e=>null==e?"":c(e)||p(e)&&(e.toString===d||!a(e.toString))?JSON.stringify(e,null,2):String(e),xt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},$t=e=>"_value"in e?e._value:e.value,kt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},Ot=e=>{e.target.composing=!0},St=e=>{const t=e.target;t.composing&&(t.composing=!1,Et(t,"input"))},Et=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Lt=new WeakMap,jt=e=>{const t=Pe;return Pe=e,t},At=(e,t=Pe)=>{if(!t)return;const n=Lt.get(t);n?n.push(e):Lt.set(t,[e])},Tt=e=>{const t=Lt.get(e);if(t){Lt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Nt={bind:Xe,on:yt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:bt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,d=[],h=(t,n)=>d.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let m,v,_=!1;if("SELECT"===e.tagName){const t=e;h("change",m=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p($t(e)));i(t.multiple?e:e[0])}),v=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=$t(r);if(s)r.selected=c(e)&&A(e,o)>-1;else if(j($t(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)h("change",m=()=>{const t=n(),s=e.checked;if(c(t)){const n=$t(e),r=A(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(kt(e,s))}),v=()=>{const t=n();c(t)?e.checked=A(t,$t(e))>-1:e.checked=j(t,kt(e,!0))};else if("radio"===o)h("change",m=()=>i($t(e))),v=()=>{e.checked=j(n(),$t(e))};else{_=!0;const t=e=>p(l?e.trim():e);m=()=>i(t(e.value));let s,o=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(i,e,t)},d.push(()=>clearTimeout(s))}}h("compositionstart",Ot),h("compositionend",St),h(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),v=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||m()}const g=s(v);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),d.push(()=>t.disconnect())}return()=>d.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ut;return Fe(()=>{if(!r)return;const i=jt(e);try{Jt(o,()=>s(()=>at(t.scope,n,e,{source:"v-effect",el:e})))}finally{jt(i)}}),()=>{r=!1}}},Pt=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===xt(i,"v-else")||null!=(c=xt(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),jt(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=d,t=a.el,r(Lt.get(t)||[],e),a.remove(),a=void 0)};let p;const d=()=>{Me(p),r(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:r}=o[e];if(!t||lt(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new an(r,n),a.insert(t,s),At(d,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),At(d,s),l},Rt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,It=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Ct=/^\(|\)$/g,Mt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Wt=(e,t,n)=>{const s=t.match(Rt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;jt(o);const l=s[2].trim();let a,f,d,h,m=s[1].trim().replace(Ct,"").trim(),v=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(h=m.match(It))&&(m=m.replace(It,"").trim(),f=h[1].trim(),h[2]&&(d=h[2].trim())),(h=m.match(Mt))&&(a=h[1].split(",").map(e=>e.trim()),v="["===m[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s?.[v?t:e]):i[m]=s,null!=o?(f&&(i[f]=o),d&&(i[d]=r)):f&&(i[f]=r);const c=g?lt(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new an(e,on(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=lt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=new Map,s=[];try{if(c(t)||u(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(p(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ie(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==c)a=k(r,l);else{a=y[c],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;c!==n&&e!==l&&a.insert(i(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},Vt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=_e(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},zt=["visible","idle","interaction"],Dt=["[v-scope]",...zt.map(e=>`[v-scope\\.${e}]`)].join(","),Ft=["pointerdown","keydown","focusin"],Bt=(e,t,s,o)=>{const i=zt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,t,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ft)e.addEventListener(t,o);i=()=>{for(const t of Ft)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,o))});return t.cleanups.push(l),At(()=>{r(t.cleanups,l),l()}),!0},Kt=/^(?:v-|:|@)/,qt=/\.([\w-]+)/g,Ut=!1,Ht=(e,t,n)=>{e.cleanups.push(t),At(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Jt=(e,t)=>{const n=Ut;Ut=e;try{t()}finally{Ut=n}},Zt=(e,t,n)=>Jt(n,()=>Gt(e,t)),Gt=(e,t)=>{const n=jt(e);try{return Qt(e,t)}finally{jt(n)}},Qt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Xt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=xt(n,"v-if")))return Pt(n,r,t);if(r=xt(n,"v-for"))return Wt(n,r,t);if(Bt(n,t,Zt,Ut))return;xt(n,"v-cloak");const o=xt(n,"v-name");let i;if(r=xt(n,"v-teleport")){const e=tn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ie(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Ht(t,()=>{Tt(n),n.remove()},o)}}if((r=xt(n,"v-scope"))||""===r){const e=(r?lt(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=on(t,e),n.__ctx=t;const s=Te(n,t.scope,r||void 0,o||void 0);Ht(t,()=>{s(),delete n.__ctx}),e.$template&&nn(n,e.$template)}const c=Ut;null!=xt(n,"v-once")&&(Ut=!0),(r=xt(n,"ref"))&&en(n,Vt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Xt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])Kt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):Yt(n,e,s,t));for(const[e,s]of l)Yt(n,e,s,t);return Ut=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),en(e,bt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Xt(e,t)},Xt=(e,t)=>{let n=e.firstChild;for(;n;)n=Gt(n,t)||n.nextSibling},Yt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(qt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=yt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(Nt,n)?Nt[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Vt),en(e,r,n,s,o,c,l),e.removeAttribute(l))},en=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ie(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=lt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=jt(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{jt(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ie(p,{phase:"directive",source:i,el:e,expression:n})}f&&Ht(s,()=>{try{f()}catch(p){Ie(p,{phase:"teardown",source:i,el:e,expression:n})}})},tn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},nn=(e,t)=>{if("#"===t[0]){const n=tn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(e.ownerDocument.importNode(n.content,!0))}e.innerHTML=t},sn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ut){const t=()=>Jt(!0,e);return Ke(t),t}const n=Be(M(e,{scheduler:()=>Ke(n),lazy:!0}));return t.effects.push(n),At(()=>{Me(n),r(t.effects,n)}),n(),n}};return t},rn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),on=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),rn(r,"$refs",Object.create(s.$refs));const o=he(new Proxy(r,{set:(e,t,n,r)=>r!==o||i(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:o};return rn(r,"$watch",Je(c)),rn(r,"$id",He()),n||cn(o,r),c},cn=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},ln=e=>{e.ctx.blocks.forEach(ln),e.ctx.effects.splice(0).forEach(Me)},an=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.ownerDocument.importNode(e.content,!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=sn(t),Gt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,At(()=>this.discard(),this.el))}remove(){this.parentCtx&&(r(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};ln(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Me),this.ctx.cleanups.splice(0).forEach(e=>e())}},un=he(Object.create(null)),fn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),pn=e=>e&&(e.__r||e.hasAttribute("v-pre")||pn(e.parentElement)),dn=e=>{const t=sn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),cn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(fn(n)+"([^]+?)"+fn(s),"g")}rn(t.scope,"$s",wt),rn(t.scope,"$nextTick",Fe),rn(t.scope,"$refs",Object.create(null)),rn(t.scope,"$store",un),rn(t.scope,"$watch",Je(t)),rn(t.scope,"$id",He()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const o=[],i=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Dt)?[e]:[...e.querySelectorAll(Dt)].filter(e=>!e.matches(`:where(${Dt}) *`)),n.length||(n=[e]),n=n.filter(e=>!pn(e)),t.walk??=Gt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new an(o,t,!0);i.host=n,o.__ctx??=i.ctx,Ne.scopes.has(o)||o.matches(Dt)||i.ctx.cleanups.push(Te(o,i.ctx.scope,void 0,e||void 0)),s.push(i),At(()=>(r(s,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Me),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():r.push(t)}s=r}};return a},hn=document.currentScript;hn&&hn.hasAttribute("init")&&dn().mount(),e.computed=function(e,t,s=!1){let r,o;const i=a(e);return i?(r=e,o=n):(r=e.get,o=e.set),new ge(r,o,i||!o,s)},e.createApp=dn,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=Fe,e.reactive=he,e.store=(e,t)=>(void 0!==t&&(un[e]=t,"function"==typeof un[e].init&&un[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,un[e])),un[e]),e.watchEffect=e=>{const t=M(e,{scheduler:()=>Ke(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Me(t),n}return()=>Me(t)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVueCollapse=function(e){
|
|
1
|
+
var LiteVueCollapse=function(e){return e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:i,modifiers:l})=>{const s=e;let o=250;for(const y in l||{}){const e=/^duration-(\d+)$/.exec(y);e&&(o=+e[1])}const n=["overflow","height","transition","visibility"],r=n.map(e=>s.style[e]);let c,h=0;const a=new Set,f=(e,t)=>{const i=setTimeout(()=>{a.delete(i),e()},t);a.add(i)};return i(()=>{const e=!!t();if(e===c)return;const i=++h;var l;l=!e,s.style.visibility=l?"hidden":r[3],s.style.overflow=e&&null==c?r[0]:"hidden",null==c?f(()=>{s.style.transition=`height ${o}ms ease, visibility ${o}ms`}):(s.style.height=r[1]||s.scrollHeight+"px",e?f(()=>{i===h&&(s.style.height=r[1],s.style.overflow=r[0])},o):s.offsetHeight),e||(s.style.height="0px"),c=e}),()=>{a.forEach(clearTimeout),n.forEach((e,t)=>s.style[e]=r[t])}})},e}({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=e=>{e.directive("collapse",({el:e,get:t,effect:i,modifiers:s})=>{const l=e;let o=250;for(const
|
|
1
|
+
var e=e=>{e.directive("collapse",({el:e,get:t,effect:i,modifiers:s})=>{const l=e;let o=250;for(const y in s||{}){const e=/^duration-(\d+)$/.exec(y);e&&(o=+e[1])}const n=["overflow","height","transition","visibility"],r=n.map(e=>l.style[e]);let c,h=0;const a=/* @__PURE__ */new Set,f=(e,t)=>{const i=setTimeout(()=>{a.delete(i),e()},t);a.add(i)};return i(()=>{const e=!!t();if(e===c)return;const i=++h;var s;s=!e,l.style.visibility=s?"hidden":r[3],l.style.overflow=e&&null==c?r[0]:"hidden",null==c?f(()=>{l.style.transition=`height ${o}ms ease, visibility ${o}ms`}):(l.style.height=r[1]||l.scrollHeight+"px",e?f(()=>{i===h&&(l.style.height=r[1],l.style.overflow=r[0])},o):l.offsetHeight),e||(l.style.height="0px"),c=e}),()=>{a.forEach(clearTimeout),n.forEach((e,t)=>l.style[e]=r[t])}})};export{e as collapse};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueCollapse={})}(this,function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueCollapse={})}(this,function(e){e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:i,modifiers:o})=>{const s=e;let l=250;for(const a in o||{}){const e=/^duration-(\d+)$/.exec(a);e&&(l=+e[1])}const n=["overflow","height","transition","visibility"],f=n.map(e=>s.style[e]);let c,r=0;const d=new Set,h=(e,t)=>{const i=setTimeout(()=>{d.delete(i),e()},t);d.add(i)};return i(()=>{const e=!!t();if(e===c)return;const i=++r;var o;o=!e,s.style.visibility=o?"hidden":f[3],s.style.overflow=e&&null==c?f[0]:"hidden",null==c?h(()=>{s.style.transition=`height ${l}ms ease, visibility ${l}ms`}):(s.style.height=f[1]||s.scrollHeight+"px",e?h(()=>{i===r&&(s.style.height=f[1],s.style.overflow=f[0])},l):s.offsetHeight),e||(s.style.height="0px"),c=e}),()=>{d.forEach(clearTimeout),n.forEach((e,t)=>s.style[e]=f[t])}})}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVueFocus=function(e){
|
|
1
|
+
var LiteVueFocus=function(e){var t=[],n=(e,t,n)=>"radio"!==e.type||!e.name||e===(n.find(t=>"radio"===t.type&&t.name===e.name&&t.checked)||n.find(t=>"radio"===t.type&&t.name===e.name));return e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let o=!0,r=!1;return n(()=>{r!==(r=!!t())&&Promise.resolve().then(()=>{o&&r&&(e.focus(),i?.select&&e.select&&e.select())})}),()=>{o=!1}}),e.directive("trap",({el:e,get:i,effect:o})=>{let r=!1,c=null;const s=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert],[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})).filter(n),a=n=>{if("Tab"!==n.key||t.at(-1)!==e)return;const i=s();if(!i.length)return void n.preventDefault();const o=i[0],r=i[i.length-1],c=document.activeElement;e.contains(c)?(n.shiftKey?o:r).compareDocumentPosition(c)&(n.shiftKey?4:2)||(n.preventDefault(),(n.shiftKey?r:o).focus()):(n.preventDefault(),o.focus())},l=()=>{r=!1,t.splice(t.indexOf(e),1),document.removeEventListener("keydown",a,!0),c&&c.focus&&c.focus()};return o(()=>{const n=!!i();n&&!r?(r=!0,c=document.activeElement,t.splice(t.findIndex(t=>e.contains(t))>>>0,0,e),document.addEventListener("keydown",a,!0),Promise.resolve().then(()=>{r&&t.at(-1)===e&&(s()[0]||e).focus()})):!n&&r&&l()}),()=>{r&&l()}})},e}({});
|
package/dist/plugins/focus.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=[],t=(e,t,n)=>"radio"!==e.type||!e.name||e===(n.find(t=>"radio"===t.type&&t.name===e.name&&t.checked)||n.find(t=>"radio"===t.type&&t.name===e.name)),n=n=>{n.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let
|
|
1
|
+
var e=[],t=(e,t,n)=>"radio"!==e.type||!e.name||e===(n.find(t=>"radio"===t.type&&t.name===e.name&&t.checked)||n.find(t=>"radio"===t.type&&t.name===e.name)),n=n=>{n.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let o=!0,r=!1;return n(()=>{r!==(r=!!t())&&Promise.resolve().then(()=>{o&&r&&(e.focus(),i?.select&&e.select&&e.select())})}),()=>{o=!1}}),n.directive("trap",({el:n,get:i,effect:o})=>{let r=!1,c=null;const s=()=>[...n.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert],[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})).filter(t),a=t=>{if("Tab"!==t.key||e.at(-1)!==n)return;const i=s();if(!i.length)return void t.preventDefault();const o=i[0],r=i[i.length-1],c=document.activeElement;n.contains(c)?(t.shiftKey?o:r).compareDocumentPosition(c)&(t.shiftKey?4:2)||(t.preventDefault(),(t.shiftKey?r:o).focus()):(t.preventDefault(),o.focus())},l=()=>{r=!1,e.splice(e.indexOf(n),1),document.removeEventListener("keydown",a,!0),c&&c.focus&&c.focus()};return o(()=>{const t=!!i();t&&!r?(r=!0,c=document.activeElement,e.splice(e.findIndex(e=>n.contains(e))>>>0,0,n),document.addEventListener("keydown",a,!0),Promise.resolve().then(()=>{r&&e.at(-1)===n&&(s()[0]||n).focus()})):!t&&r&&l()}),()=>{r&&l()}})};export{n as focus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueFocus={})}(this,function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueFocus={})}(this,function(e){var t=[],n=(e,t,n)=>"radio"!==e.type||!e.name||e===(n.find(t=>"radio"===t.type&&t.name===e.name&&t.checked)||n.find(t=>"radio"===t.type&&t.name===e.name));e.focus=e=>{e.directive("focus",({el:e,get:t,effect:n,modifiers:i})=>{let o=!0,c=!1;return n(()=>{c!==(c=!!t())&&Promise.resolve().then(()=>{o&&c&&(e.focus(),i?.select&&e.select&&e.select())})}),()=>{o=!1}}),e.directive("trap",({el:e,get:i,effect:o})=>{let c=!1,r=null;const s=()=>[...e.querySelectorAll("a[href],area[href],button,input:not([type=hidden]),select,textarea,summary,iframe,audio[controls],video[controls],[contenteditable],[tabindex]")].filter(e=>e.tabIndex>=0&&!e.matches(":disabled,[inert],[inert] *")&&!1!==e.checkVisibility?.({visibilityProperty:!0})).filter(n),f=n=>{if("Tab"!==n.key||t.at(-1)!==e)return;const i=s();if(!i.length)return void n.preventDefault();const o=i[0],c=i[i.length-1],r=document.activeElement;e.contains(r)?(n.shiftKey?o:c).compareDocumentPosition(r)&(n.shiftKey?4:2)||(n.preventDefault(),(n.shiftKey?c:o).focus()):(n.preventDefault(),o.focus())},d=()=>{c=!1,t.splice(t.indexOf(e),1),document.removeEventListener("keydown",f,!0),r&&r.focus&&r.focus()};return o(()=>{const n=!!i();n&&!c?(c=!0,r=document.activeElement,t.splice(t.findIndex(t=>e.contains(t))>>>0,0,e),document.addEventListener("keydown",f,!0),Promise.resolve().then(()=>{c&&t.at(-1)===e&&(s()[0]||e).focus()})):!n&&c&&d()}),()=>{c&&d()}})}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVueIntersect=function(e){
|
|
1
|
+
var LiteVueIntersect=function(e){return e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let r=!1;const c=new IntersectionObserver(e=>{for(const i of e){const e=n?.full?i.intersectionRatio>=1:i.isIntersecting,s=n?.leave?r&&!e:e&&!r;r=e,s&&(t(),n?.once&&c.disconnect())}},{threshold:n?.full?1:0});return c.observe(e),()=>c.disconnect()})},e}({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueIntersect={})}(this,function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueIntersect={})}(this,function(e){e.intersect=e=>{e.directive("intersect",({el:e,get:t,modifiers:n})=>{let o=!1;const i=new IntersectionObserver(e=>{for(const s of e){const e=n?.full?s.intersectionRatio>=1:s.isIntersecting,c=n?.leave?o&&!e:e&&!o;o=e,c&&(t(),n?.once&&i.disconnect())}},{threshold:n?.full?1:0});return i.observe(e),()=>i.disconnect()})}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVueMask=function(e){
|
|
1
|
+
var LiteVueMask=function(e){var t={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},n=(e,n,r)=>{let i="",l="",s=0;for(let a=0;a<n.length;a++){const r=t[n[a]];if(r){for(;s<e.length&&!r.test(e[s]);)s++;if(s>=e.length)return i;i+=l+e[s++],l=""}else l+=n[a],e[s]===n[a]&&s++}return r?i+l:i};return e.mask=e=>{e.directive("mask",({el:e,exp:r})=>{const i=e,l=e=>{const{value:l,selectionStart:s}=i,a=e?.inputType,u=n(l,r,!a?.startsWith("del"));if(u===l)return!1;if(i.value=u,null!=s&&document.activeElement===i){let e=n(l.slice(0,s),r).length;if(!e||!a?.endsWith("Backward"))for(;e<u.length&&!t[r[e]];)e++;i.setSelectionRange(e,e)}return!0};e.addEventListener("input",l);const s=l();let a=!0;return Promise.resolve().then(()=>{a&&(l()||s)&&(e.dispatchEvent(new Event("input")),e.dispatchEvent(new Event("change")))}),()=>{a=!1,e.removeEventListener("input",l)}})},e}({});
|
package/dist/plugins/mask.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},t=(t,n,r)=>{let
|
|
1
|
+
var e={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},t=(t,n,r)=>{let i="",l="",s=0;for(let a=0;a<n.length;a++){const r=e[n[a]];if(r){for(;s<t.length&&!r.test(t[s]);)s++;if(s>=t.length)return i;i+=l+t[s++],l=""}else l+=n[a],t[s]===n[a]&&s++}return r?i+l:i},n=n=>{n.directive("mask",({el:n,exp:r})=>{const i=n,l=n=>{const{value:l,selectionStart:s}=i,a=n?.inputType,c=t(l,r,!a?.startsWith("del"));if(c===l)return!1;if(i.value=c,null!=s&&document.activeElement===i){let n=t(l.slice(0,s),r).length;if(!n||!a?.endsWith("Backward"))for(;n<c.length&&!e[r[n]];)n++;i.setSelectionRange(n,n)}return!0};n.addEventListener("input",l);const s=l();let a=!0;return Promise.resolve().then(()=>{a&&(l()||s)&&(n.dispatchEvent(new Event("input")),n.dispatchEvent(new Event("change")))}),()=>{a=!1,n.removeEventListener("input",l)}})};export{n as mask};
|
package/dist/plugins/mask.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMask={})}(this,function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueMask={})}(this,function(e){var t={9:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},n=(e,n,i)=>{let s="",l="",o=0;for(let r=0;r<n.length;r++){const i=t[n[r]];if(i){for(;o<e.length&&!i.test(e[o]);)o++;if(o>=e.length)return s;s+=l+e[o++],l=""}else l+=n[r],e[o]===n[r]&&o++}return i?s+l:s};e.mask=e=>{e.directive("mask",({el:e,exp:i})=>{const s=e,l=e=>{const{value:l,selectionStart:o}=s,r=e?.inputType,a=n(l,i,!r?.startsWith("del"));if(a===l)return!1;if(s.value=a,null!=o&&document.activeElement===s){let e=n(l.slice(0,o),i).length;if(!e||!r?.endsWith("Backward"))for(;e<a.length&&!t[i[e]];)e++;s.setSelectionRange(e,e)}return!0};e.addEventListener("input",l);const o=l();let r=!0;return Promise.resolve().then(()=>{r&&(l()||o)&&(e.dispatchEvent(new Event("input")),e.dispatchEvent(new Event("change")))}),()=>{r=!1,e.removeEventListener("input",l)}})}});
|