voodoojs 0.12.5 → 0.13.0
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/README.md +1 -1
- package/dist/{chunk-D45ZEXUO.js → chunk-2LGAXVD7.js} +4 -4
- package/dist/{chunk-L3JNHLTI.js → chunk-4IJE5BWY.js} +5 -5
- package/dist/{chunk-PPT7RDKJ.js → chunk-FMDHZ5GI.js} +139 -9
- package/dist/{chunk-JB72AX7G.js → chunk-GE4JWATC.js} +5 -5
- package/dist/{chunk-TUXGS7XW.js → chunk-H2NGDLMD.js} +363 -76
- package/dist/{chunk-YH3IDF6L.js → chunk-IBIZ6OUI.js} +4 -4
- package/dist/{chunk-PO6REBDJ.js → chunk-IJQ2PFXU.js} +3 -3
- package/dist/{chunk-6QFKV444.js → chunk-JBUNTP7F.js} +7 -7
- package/dist/{chunk-IWHK6Y32.js → chunk-MV73OSCS.js} +4 -4
- package/dist/{chunk-X3FZPWI6.js → chunk-OIH4BR2H.js} +6 -6
- package/dist/{chunk-OH6FIDTW.js → chunk-TEVCUTTC.js} +3 -3
- package/dist/essential.cjs +496 -74
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +1 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +544 -122
- package/dist/index.js +20 -20
- package/dist/reactivity.cjs +138 -5
- package/dist/reactivity.d.cts +32 -1
- package/dist/reactivity.d.ts +32 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +115 -5
- package/dist/socket.d.cts +1 -1
- package/dist/socket.d.ts +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-E22XVZ33.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +560 -72
- package/dist/voodoo.core.min.js +17 -17
- package/dist/voodoo.full.js +609 -121
- package/dist/voodoo.full.min.js +62 -62
- package/dist/voodoo.js +563 -75
- package/dist/voodoo.min.js +26 -26
- package/package.json +1 -1
- package/dist/style-YWBYOE6T.js +0 -5
package/dist/voodoo.full.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.13.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Voodoo=(()=>{var Po=Object.defineProperty;var Am=Object.getOwnPropertyDescriptor;var Rm=Object.getOwnPropertyNames;var $m=Object.prototype.hasOwnProperty;var Dm=(e,t,n)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $s=(e,t)=>()=>(e&&(t=e(e=0)),t);var No=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})},Pm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Rm(t))!$m.call(e,o)&&o!==n&&Po(e,o,{get:()=>t[o],enumerable:!(r=Am(t,o))||r.enumerable});return e};var Nm=e=>Pm(Po({},"__esModule",{value:!0}),e);var N=(e,t,n)=>Dm(e,typeof t!="symbol"?t+"":t,n);var Yc={};No(Yc,{EffectScope:()=>ot,ITERATE_KEY:()=>rn,ReactiveEffect:()=>Dn,TriggerType:()=>Uc,computed:()=>an,effect:()=>Pe,effectScope:()=>qs,enableTracking:()=>Vc,flushSync:()=>Is,getActiveEffect:()=>Om,getActiveScope:()=>Im,handleError:()=>W,hasChanged:()=>$r,isReactive:()=>_s,isRef:()=>on,markRaw:()=>Rr,nextTick:()=>ft,pauseTracking:()=>qc,queueJob:()=>zo,queuePostFlush:()=>Se,reactive:()=>X,ref:()=>Ge,resetTracking:()=>js,setErrorHandler:()=>zs,shallowRef:()=>Ws,stop:()=>Pn,toRaw:()=>Me,track:()=>ut,trigger:()=>Et,unref:()=>Ks,warn:()=>G,watch:()=>Ie,watchEffect:()=>Ys});function ft(e){let t=Fo||Os;return e?t.then(e):t}function zo(e){e.queued||(e.queued=!0,Rn.push(e),jc())}function Se(e){Ho.push(e),jc()}function jc(){Oo||Ar||(Ar=!0,Fo=Os.then(Fs))}function Fs(){Ar=!1,Oo=!0;let e=new Map;try{for(let t=0;t<Rn.length;t++){let n=Rn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>Hm){G("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){W(o,"effect")}}}finally{for(let n of Rn)n.queued=!1;Rn=[],Oo=!1;let t=Ho;Ho=[];for(let n of t)try{n()}catch(r){W(r,"post-flush")}Rn.length||Ho.length?(Fo=Os.then(Fs),Ar=!0):Fo=null}}function Is(){Oo||(Ar=!1,Fs())}function zs(e){Ds=e}function W(e,t){if(Ds){Ds(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function G(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function qc(){Bs.push(sn),sn=!1}function Vc(){Bs.push(sn),sn=!0}function js(){var e;sn=(e=Bs.pop())!=null?e:!0}function Om(){return Fe}function Fc(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function Pe(e,t){let n=new Dn(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Pn(e){e instanceof Dn?e.stop():e.effect.stop()}function qs(e=!1){return new ot(e)}function Im(){return Ot}function ut(e,t){if(!sn||!Fe)return;let n=Ps.get(e);n||Ps.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Fe)||(r.add(Fe),Fe.deps.push(r))}function Et(e,t,n,r){let o=Ps.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Fe||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?Ns(n)&&s(o.get("length")):s(o.get(rn));else if(t==="delete")a||s(o.get(rn));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():zo(a)}function Ns(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Ft(e){return e!==null&&typeof e=="object"}function Bm(e){if(!Ft(e)||e[_c]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return zm.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function Rr(e){return Object.defineProperty(e,_c,{value:!0,enumerable:!1,configurable:!0}),e}function Me(e){let t=e&&e[Vs];return t?Me(t):e}function _s(e){return!!(e&&e[Us])}function X(e){if(!Ft(e)||_s(e)||!Bm(e))return e;let t=Ic.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?qm:jm);return Ic.set(e,r),r}function $r(e,t){return!Object.is(e,t)}function on(e){return!!(e&&e.__v_isRef===!0)}function Bc(e){return Ft(e)?X(e):e}function Wc(e){!sn||!Fe||e.dep.has(Fe)||(e.dep.add(Fe),Fe.deps.push(e.dep))}function Kc(e){for(let t of[...e.dep])t.scheduler?t.scheduler():zo(t)}function Ge(e){return new Io(e)}function Ws(e){return new Io(e,!0)}function Ks(e){return on(e)?e.value:e}function an(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Hs(n,r)}function Ie(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(on(e)?s=()=>e.value:typeof e=="function"?s=e:_s(e)?s=()=>$n(e):s=()=>e,o){let p=s;s=()=>$n(p())}let a,l,c=p=>{l=p},d=()=>{if(!f.effect.active)return;let p=f();(o||$r(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?Pe(s,{lazy:!0,scheduler:()=>Se(d)}):Pe(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Se(d):()=>zo(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function Ys(e){let t,n=o=>{t=o},r=Pe(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function $n(e,t=new Set){if(!Ft(e)||t.has(e))return e;if(t.add(e),on(e))$n(e.value,t);else if(Array.isArray(e))for(let n of e)$n(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>$n(n,t));else for(let n of Object.keys(e))$n(e[n],t);return e}var Os,Rn,Ho,Oo,Ar,Fo,Hm,Ds,Fe,sn,Bs,Fm,Dn,Ot,ot,rn,Ps,Uc,Vs,Us,_c,Ic,zc,zm,jm,qm,Io,Hs,de=$s(()=>{"use strict";Os=Promise.resolve(),Rn=[],Ho=[],Oo=!1,Ar=!1,Fo=null,Hm=100;Ds=null;sn=!0,Bs=[];Fm=0,Dn=class{constructor(t,n){var o;this.fn=t,this.id=Fm++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:Ot;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Fe;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Fe,Fe=this,Vc(),Fc(this),this.fn()}finally{js(),Fe=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){W(r,"effect cleanup")}}stop(){var t;this.active&&(Fc(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};ot=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&Ot&&(this.parent=Ot,Ot.children.push(this))}run(t){if(!this.active)return;let n=Ot;try{return Ot=this,t()}finally{Ot=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){W(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};rn=Symbol("voodoo:iterate"),Ps=new WeakMap;Uc=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Uc||{});Vs=Symbol("voodoo:raw"),Us=Symbol("voodoo:isReactive"),_c=Symbol("voodoo:skip"),Ic=new WeakMap,zc=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Me(this);for(let i=0;i<r.length;i++)ut(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Me)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){qc();try{return Me(this)[t].apply(this,n)}finally{js()}};return e})();zm=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);jm={get(e,t,n){if(t===Vs)return e;if(t===Us)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(zc,t))return Reflect.get(zc,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(ut(e,t),on(o)?r&&Ns(t)?o:o.value:Ft(o)?X(o):o)},set(e,t,n,r){let o=e[t];if(n=Me(n),!Array.isArray(e)&&on(o)&&!on(n))return o.value=n,!0;let i=Array.isArray(e)&&Ns(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===Me(r)&&(i?$r(n,o)&&Et(e,"set",t,n):Et(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Et(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&ut(e,t),n},ownKeys(e){return ut(e,Array.isArray(e)?"length":rn),Reflect.ownKeys(e)}},qm={get(e,t,n){if(t===Vs)return e;if(t===Us)return!0;let r=e;if(t==="size")return ut(r,rn),Reflect.get(r,"size",r);let o={get(s){ut(r,s);let a=r.get(s);return Ft(a)?X(a):a},has(s){return ut(r,s),r.has(s)},add(s){s=Me(s);let a=r.has(s);return r.add(s),a||Et(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Me(a)),l?$r(a,c)&&Et(r,"set",s,a):Et(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&Et(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&Et(r,"clear"),a},forEach(s,a){return ut(r,rn),r.forEach((l,c)=>{s.call(a,Ft(l)?X(l):l,Ft(c)?X(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){ut(r,rn);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};Io=class{constructor(t,n=!1){N(this,"shallow",n);N(this,"__v_isRef",!0);N(this,"_value");N(this,"_rawValue");N(this,"dep",new Set);this._rawValue=Me(t),this._value=n?t:Bc(t)}get value(){return Wc(this),this._value}set value(t){let n=Me(t);$r(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Bc(t),Kc(this))}};Hs=class{constructor(t,n){N(this,"setter",n);N(this,"__v_isRef",!0);N(this,"_value");N(this,"_dirty",!0);N(this,"effect");N(this,"dep",new Set);this.effect=new Dn(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Kc(this))}})}get value(){return Wc(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):G("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function y(e,t,n={}){var r,o;Mt.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function ln(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function Uo(e,t,n){ld.has(t)||(ld.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,Mt,j,Ne,ld,ce=$s(()=>{"use strict";w={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},Mt=new Map,j={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};Ne=new Map;ld=new Set});var tu={};No(tu,{BASE_TOKENS:()=>eu,ensureTokens:()=>ge,injectStyle:()=>Z});function Z(e,t){if(typeof document=="undefined"||!w.injectStyles||Zd.has(e))return;Zd.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function ge(){Z("tokens",eu)}var Zd,eu,Ae=$s(()=>{"use strict";ce();Zd=new Set;eu=`
|
|
6
|
+
"use strict";var Voodoo=(()=>{var si=Object.defineProperty;var Jm=Object.getOwnPropertyDescriptor;var Zm=Object.getOwnPropertyNames;var ev=Object.prototype.hasOwnProperty;var tv=(e,t,n)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var aa=(e,t)=>()=>(e&&(t=e(e=0)),t);var ai=(e,t)=>{for(var n in t)si(e,n,{get:t[n],enumerable:!0})},nv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zm(t))!ev.call(e,o)&&o!==n&&si(e,o,{get:()=>t[o],enumerable:!(r=Jm(t,o))||r.enumerable});return e};var rv=e=>nv(si({},"__esModule",{value:!0}),e);var H=(e,t,n)=>tv(e,typeof t!="symbol"?t+"":t,n);var wd={};ai(wd,{ArrayOp:()=>ga,EffectScope:()=>Et,ITERATE_KEY:()=>kt,ReactiveEffect:()=>Qn,TriggerType:()=>gd,arrayVersion:()=>ba,computed:()=>Sn,effect:()=>We,effectScope:()=>ha,enableTracking:()=>hd,flushSync:()=>fa,getActiveEffect:()=>iv,getActiveScope:()=>av,handleError:()=>te,hasChanged:()=>er,isReactive:()=>ka,isRef:()=>Ln,markRaw:()=>to,mutationsSince:()=>ya,nextTick:()=>$t,pauseTracking:()=>vd,queueJob:()=>eo,queuePostFlush:()=>Fe,reactive:()=>ee,ref:()=>mt,resetTracking:()=>va,setErrorHandler:()=>pa,shallowRef:()=>Ea,stop:()=>Zn,toRaw:()=>Ce,track:()=>lt,trigger:()=>qt,unref:()=>Ta,warn:()=>re,watch:()=>Ze,watchEffect:()=>La});function $t(e){let t=di||da;return e?t.then(e):t}function eo(e){e.queued||(e.queued=!0,Xn.push(e),md())}function Fe(e){li.push(e),md()}function md(){ci||Zr||(Zr=!0,di=da.then(ua))}function ua(){Zr=!1,ci=!0;let e=new Map;try{for(let t=0;t<Xn.length;t++){let n=Xn[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>ov){re("Infinite update loop detected. A reactive effect keeps triggering itself without ever settling. Check whether some expression writes to state that it also reads.");continue}try{n.run()}catch(o){te(o,"effect")}}}finally{for(let n of Xn)n.queued=!1;Xn=[],ci=!1;let t=li;li=[];for(let n of t)try{n()}catch(r){te(r,"post-flush")}Xn.length||li.length?(di=da.then(ua),Zr=!0):di=null}}function fa(){ci||(Zr=!1,ua())}function pa(e){la=e}function te(e,t){if(la){la(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function re(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function vd(){ma.push(Mn),Mn=!1}function hd(){ma.push(Mn),Mn=!0}function va(){var e;Mn=(e=ma.pop())!=null?e:!0}function iv(){return Qe}function ld(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function We(e,t){let n=new Qn(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Zn(e){e instanceof Qn?e.stop():e.effect.stop()}function ha(e=!1){return new Et(e)}function av(){return sn}function lt(e,t){if(!Mn||!Qe)return;let n=ui.get(e);n||ui.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Qe)||(r.add(Qe),Qe.deps.push(r))}function qt(e,t,n,r){let o=ui.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==Qe||t==="clear")&&i.add(l)};if(t==="clear")o.forEach(s);else{n!==void 0&&s(o.get(n));let a=Array.isArray(e);if(t==="add")a?Jn(n)&&s(o.get("length")):s(o.get(kt));else if(t==="delete")s(o.get(kt));else if(a&&Jn(n))s(o.get(kt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,d)=>{(d==="length"||typeof d!="symbol"&&Number(d)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():eo(a)}function lv(e,t){let n=ui.get(e);if(!n)return;let r=new Set,o=i=>{if(i)for(let s of i)s!==Qe&&r.add(s)};o(n.get("length")),o(n.get(kt)),t>=0&&n.forEach((i,s)=>{typeof s=="string"&&Jn(s)&&Number(s)>=t&&o(i)});for(let i of r)i.scheduler?i.scheduler():eo(i)}function pt(e,t,n,r,o){let i=fi.get(e);if(i||fi.set(e,i={version:0,ops:[]}),i.version++,t===3){i.ops.length=0;return}i.ops.push({type:t,index:n,removed:r,added:o}),i.ops.length>cv&&i.ops.shift()}function ba(e){let t=fi.get(e);return t?t.version:0}function ya(e,t){let n=fi.get(e);if(!n)return t===0?cd:null;if(t>n.version)return null;let r=n.version-t;return r===0?cd:r>n.ops.length?null:n.ops.slice(n.ops.length-r)}function Jn(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function Rt(e){return e!==null&&typeof e=="object"}function fd(e,t){let n=Math.trunc(Number(e))||0;return n<0?Math.max(t+n,0):Math.min(n,t)}function uv(e){if(!Rt(e)||e[bd]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return dv.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function fv(e,t,n,r,o,i){if(t==="length"){let a=e.length;a<n?pt(e,1,a,n-a,0):a>n&&pt(e,3,0,0,0);return}if(!Jn(t))return;let s=Number(t);r?er(i,o)&&pt(e,2,s,1,1):s===n?pt(e,1,s,0,1):pt(e,3,0,0,0)}function to(e){return Object.defineProperty(e,bd,{value:!0,enumerable:!1,configurable:!0}),e}function Ce(e){let t=e&&e[xa];return t?Ce(t):e}function ka(e){return!!(e&&e[wa])}function ee(e){if(!Rt(e)||ka(e)||!uv(e))return e;let t=dd.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?mv:pv);return dd.set(e,r),r}function er(e,t){return!Object.is(e,t)}function Ln(e){return!!(e&&e.__v_isRef===!0)}function pd(e){return Rt(e)?ee(e):e}function yd(e){!Mn||!Qe||e.dep.has(Qe)||(e.dep.add(Qe),Qe.deps.push(e.dep))}function xd(e){for(let t of[...e.dep])t.scheduler?t.scheduler():eo(t)}function mt(e){return new pi(e)}function Ea(e){return new pi(e,!0)}function Ta(e){return Ln(e)?e.value:e}function Sn(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new ca(n,r)}function Ze(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(Ln(e)?s=()=>e.value:typeof e=="function"?s=e:ka(e)?s=()=>Gn(e):s=()=>e,o){let p=s;s=()=>Gn(p())}let a,l,c=p=>{l=p},d=()=>{if(!f.effect.active)return;let p=f();(o||er(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?We(s,{lazy:!0,scheduler:()=>Fe(d)}):We(s,{lazy:!0,scheduler:i==="sync"?d:i==="post"?()=>Fe(d):()=>eo(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function La(e){let t,n=o=>{t=o},r=We(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function Gn(e,t=new Set){if(!Rt(e)||t.has(e))return e;if(t.add(e),Ln(e))Gn(e.value,t);else if(Array.isArray(e))for(let n of e)Gn(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>Gn(n,t));else for(let n of Object.keys(e))Gn(e[n],t);return e}var da,Xn,li,ci,Zr,di,ov,la,Qe,Mn,ma,sv,Qn,sn,Et,kt,ui,gd,ga,cv,fi,cd,xa,wa,bd,dd,ud,dv,pv,mv,pi,ca,xe=aa(()=>{"use strict";da=Promise.resolve(),Xn=[],li=[],ci=!1,Zr=!1,di=null,ov=100;la=null;Mn=!0,ma=[];sv=0,Qn=class{constructor(t,n){var o;this.fn=t,this.id=sv++,this.active=!0,this.queued=!1,this.deps=[],this.parent=void 0,this.scheduler=n==null?void 0:n.scheduler,this.onStop=n==null?void 0:n.onStop,this.cleanups=[];let r=(o=n==null?void 0:n.scope)!=null?o:sn;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=Qe;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=Qe,Qe=this,hd(),ld(this),this.fn()}finally{va(),Qe=this.parent,this.parent=void 0}}onInvalidate(t){this.cleanups.push(t)}runCleanups(){if(!this.cleanups.length)return;let t=this.cleanups;this.cleanups=[];for(let n of t)try{n()}catch(r){te(r,"effect cleanup")}}stop(){var t;this.active&&(ld(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Et=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&sn&&(this.parent=sn,sn.children.push(this))}run(t){if(!this.active)return;let n=sn;try{return sn=this,t()}finally{sn=n}}onDispose(t){this.cleanups.push(t)}stop(){if(this.active){this.active=!1;for(let t of this.effects)t.stop();for(let t of this.children)t.stop();for(let t of this.cleanups)try{t()}catch(n){te(n,"scope cleanup")}if(this.effects.length=0,this.children.length=0,this.cleanups.length=0,this.parent){let t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1)}}}};kt=Symbol("voodoo:iterate"),ui=new WeakMap;gd=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(gd||{});ga=(r=>(r[r.SPLICE=1]="SPLICE",r[r.SET=2]="SET",r[r.RESET=3]="RESET",r))(ga||{}),cv=32,fi=new WeakMap;cd=[];xa=Symbol("voodoo:raw"),wa=Symbol("voodoo:isReactive"),bd=Symbol("voodoo:skip"),dd=new WeakMap,ud=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=Ce(this);for(let i=0;i<r.length;i++)lt(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(Ce)):o};for(let t of["push","pop","shift","unshift","splice","reverse","sort"])e[t]=function(...n){let r=Ce(this),o=r.length;for(let l=0;l<n.length;l++)n[l]=Ce(n[l]);vd();let i;try{i=r[t].apply(r,n)}finally{va()}let s=r.length,a=-1;if(t==="push")n.length&&(pt(r,1,o,0,n.length),a=o);else if(t==="unshift")n.length&&(pt(r,1,0,0,n.length),a=0);else if(t==="pop")o>0&&(pt(r,1,s,1,0),a=s);else if(t==="shift")o>0&&(pt(r,1,0,1,0),a=0);else if(t==="splice"){let l=i.length,c=n.length>2?n.length-2:0;(l||c)&&(pt(r,1,fd(n[0],o),l,c),a=fd(n[0],o))}else o>1&&(pt(r,3,0,o,s),a=0);if(a>=0&&lv(r,a),t==="pop"||t==="shift")return Rt(i)?ee(i):i;if(t==="splice"){let l=i;for(let c=0;c<l.length;c++)Rt(l[c])&&(l[c]=ee(l[c]));return l}return t==="reverse"||t==="sort"?this:i};return e})();dv=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);pv={get(e,t,n){if(t===xa)return e;if(t===wa)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(ud,t))return Reflect.get(ud,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(lt(e,t),Ln(o)?r&&Jn(t)?o:o.value:Rt(o)?ee(o):o)},set(e,t,n,r){let o=e[t];if(n=Ce(n),!Array.isArray(e)&&Ln(o)&&!Ln(n))return o.value=n,!0;let i=Array.isArray(e)&&Jn(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Array.isArray(e),a=s?e.length:0,l=Reflect.set(e,t,n,r);return e===Ce(r)&&(s&&fv(e,t,a,i,o,n),i?er(n,o)&&qt(e,"set",t,n):qt(e,"add",t,n)),l},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&(Array.isArray(e)&&pt(e,3,0,0,0),qt(e,"delete",t)),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&<(e,t),n},ownKeys(e){return lt(e,Array.isArray(e)?"length":kt),Reflect.ownKeys(e)}},mv={get(e,t,n){if(t===xa)return e;if(t===wa)return!0;let r=e;if(t==="size")return lt(r,kt),Reflect.get(r,"size",r);let o={get(s){lt(r,s);let a=r.get(s);return Rt(a)?ee(a):a},has(s){return lt(r,s),r.has(s)},add(s){s=Ce(s);let a=r.has(s);return r.add(s),a||qt(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,Ce(a)),l?er(a,c)&&qt(r,"set",s,a):qt(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&qt(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&qt(r,"clear"),a},forEach(s,a){return lt(r,kt),r.forEach((l,c)=>{s.call(a,Rt(l)?ee(l):l,Rt(c)?ee(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){lt(r,kt);let s=r[t];return typeof s=="function"?s.bind(r):s}let i=Reflect.get(r,t,r);return typeof i=="function"?i.bind(r):i}};pi=class{constructor(t,n=!1){H(this,"shallow",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_rawValue");H(this,"dep",new Set);this._rawValue=Ce(t),this._value=n?t:pd(t)}get value(){return yd(this),this._value}set value(t){let n=Ce(t);er(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:pd(t),xd(this))}};ca=class{constructor(t,n){H(this,"setter",n);H(this,"__v_isRef",!0);H(this,"_value");H(this,"_dirty",!0);H(this,"effect");H(this,"dep",new Set);this.effect=new Qn(t,{scheduler:()=>{this._dirty||(this._dirty=!0,xd(this))}})}get value(){return yd(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):re("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function x(e,t,n={}){var r,o;_t.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:_.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function An(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function bi(e,t,n){Hd.has(t)||(Hd.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var w,_t,_,Ke,Hd,ye=aa(()=>{"use strict";w={prefix:"v-",autoStart:!0,autoDiscover:!0,root:null,devtools:!1,xrayShortcut:"ctrl+shift+f2",baseURL:"",globals:{},locale:typeof navigator!="undefined"&&navigator.language||"pt-BR",currency:"BRL",injectStyles:!0,cleanAttributes:!0,sanitizeUrls:!0},_t=new Map,_={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};Ke=new Map;Hd=new Set});var Au={};ai(Au,{BASE_TOKENS:()=>Su,ensureTokens:()=>Me,injectStyle:()=>ae});function ae(e,t){if(typeof document=="undefined"||!w.injectStyles||Mu.has(e))return;Mu.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function Me(){ae("tokens",Su)}var Mu,Su,Be=aa(()=>{"use strict";ye();Mu=new Set;Su=`
|
|
7
7
|
:root{
|
|
8
8
|
--v-primary:#6D3BF5;
|
|
9
9
|
--v-primary-hover:#5A2FD8;
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
--v-shadow:0 10px 30px rgba(0,0,0,.45);
|
|
48
48
|
}
|
|
49
49
|
[v-cloak]{display:none !important}
|
|
50
|
-
`});var
|
|
50
|
+
`});var H0={};ai(H0,{default:()=>N0});xe();var de=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
51
|
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
52
|
|
|
53
|
-
${i}`);
|
|
54
|
-
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function
|
|
53
|
+
${i}`);H(this,"source",r);H(this,"position",o);this.name="VoodooSyntaxError"}},vv=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],hv=/[A-Za-z_$À-]/,gv=/[A-Za-z0-9_$À-]/;function bv(e){return hv.test(e)}function yv(e){return gv.test(e)}function mi(e){return e>="0"&&e<="9"}var kd={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function vi(e){var o,i;let t=[],n=0,r=e.length;for(;n<r;){let s=e[n];if(s===" "||s===" "||s===`
|
|
55
55
|
`||s==="\r"||s==="\f"||s==="\v"){n++;continue}if(s==="/"&&e[n+1]==="/"){for(;n<r&&e[n]!==`
|
|
56
|
-
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let c=e.indexOf("*/",n+2);if(c===-1)throw new te("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(Bo(s)||s==="."&&Bo(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(c="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&Bo(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new te("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new te("Unclosed Unicode escape",e,a);let f=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new te(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new te("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new te("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=Xc[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new te("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];u+=(i=Xc[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",n+=2;let f=1,p="";for(;n<r;){let m=e[n];if(m==="{")f++;else if(m==="}"){if(f--,f===0)break}else if(m==='"'||m==="'"||m==="`"){let h=m;for(p+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new te("Unclosed template interpolation",e,a);n++,d.push(p);continue}u+=e[n++]}if(n>=r)throw new te("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(Wm(s)){let c="";for(;n<r&&Km(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of Vm)if(e.startsWith(c,n)){if(c==="?."&&Bo(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new te(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Gc={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},Ym=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Xm=new Set(["!","-","+","~","typeof","void","delete"]),Qc=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Jc=1200,Zc=32,Xs=0,Gs=class{constructor(t,n){N(this,"tokens",t);N(this,"source",n);N(this,"pos",0);N(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new te(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>Jc){let t=this.peek();throw new te(`Expression too deeply nested (limit of ${Jc} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[{kind:"id",name:r}],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&Ym.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new te("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i;try{i=this.parseParamList()}catch(s){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new te("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new te("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new te("Expected a property name",this.source,o.start);let i=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),i.def=this.parseAssignment()),n.push({key:String(o.value),value:i})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new te("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new te("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in Gc||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Gc[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&Xm.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new te("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new te("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new te("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),body:this.parseArrowBody()};if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(Xs>=Zc)throw new te(`Template literal too deeply nested (limit of ${Zc} levels)`,this.source,t.start);Xs++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>ze(r))}}finally{Xs--}}if(t.type==="ident")return t.value in Qc?(this.next(),{t:"lit",v:Qc[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new te("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new te(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new te("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let i=this.parseParamList();t.push({key:o,value:{t:"method",params:i,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},Nn=new Map,ed=2e3;function ze(e){let t=Nn.get(e);if(t)return t;let n=new Gs(jo(e),e).parseProgram();return Nn.size>=ed&&Gm(),Nn.set(e,n),n}function Gm(){let e=Math.floor(ed/2),t=0;for(let n of Nn.keys())if(Nn.delete(n),++t>=e)break}function td(){Nn.clear()}var sd,Qm=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(sd=Object.hasOwn)!=null?sd:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Jm=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]);function nd(e){return function(t,n,...r){if(typeof t!="function")throw new xe(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function qo(e){return function(...t){let n=globalThis[e];return n(...t)}}var Oe={Math,JSON,Date,Number,String,Boolean,Array,Object:Qm,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:nd("setTimeout"),setInterval:nd("setInterval"),clearTimeout:qo("clearTimeout"),clearInterval:qo("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:qo("requestAnimationFrame"),cancelAnimationFrame:qo("cancelAnimationFrame")}:{}},xe=class extends Error{constructor(n,r){super(r?`${n}
|
|
56
|
+
`;)n++;continue}if(s==="/"&&e[n+1]==="*"){let c=e.indexOf("*/",n+2);if(c===-1)throw new de("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(mi(s)||s==="."&&mi(e[n+1])){let c="";if(s==="0"&&(e[n+1]==="x"||e[n+1]==="X"))for(c="0x",n+=2;n<r&&/[0-9a-fA-F_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="b"||e[n+1]==="B"))for(c="0b",n+=2;n<r&&/[01_]/.test(e[n]);)c+=e[n++];else if(s==="0"&&(e[n+1]==="o"||e[n+1]==="O"))for(c="0o",n+=2;n<r&&/[0-7_]/.test(e[n]);)c+=e[n++];else{for(;n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]===".")for(c+=e[n++];n<r&&/[0-9_]/.test(e[n]);)c+=e[n++];if(e[n]==="e"||e[n]==="E")for(c+=e[n++],(e[n]==="+"||e[n]==="-")&&(c+=e[n++]);n<r&&mi(e[n]);)c+=e[n++]}let d=Number(c.replace(/_/g,""));if(Number.isNaN(d))throw new de("Invalid number",e,a);t.push({type:"num",value:c,parsed:d,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let d=e[n];if(d==="u")if(e[n+1]==="{"){let u=e.indexOf("}",n);if(u===-1)throw new de("Unclosed Unicode escape",e,a);let f=e.slice(n+2,u);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new de(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=u+1}else{let u=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(u))throw new de("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=5}else if(d==="x"){let u=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(u))throw new de("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(u,16)),n+=3}else c+=(o=kd[d])!=null?o:d,n++}else c+=e[n++];if(n>=r)throw new de("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],d=[],u="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];u+=(i=kd[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(u),u="",n+=2;let f=1,p="";for(;n<r;){let m=e[n];if(m==="{")f++;else if(m==="}"){if(f--,f===0)break}else if(m==='"'||m==="'"||m==="`"){let h=m;for(p+=e[n++];n<r&&e[n]!==h;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new de("Unclosed template interpolation",e,a);n++,d.push(p);continue}u+=e[n++]}if(n>=r)throw new de("Unclosed template literal",e,a);n++,c.push(u),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:d},start:a,end:n});continue}if(bv(s)){let c="";for(;n<r&&yv(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of vv)if(e.startsWith(c,n)){if(c==="?."&&mi(e[n+2]))continue;l=c;break}if(l){n+=l.length,t.push({type:"punct",value:l,start:a,end:n});continue}throw new de(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Ed={"??":1,"||":2,"&&":3,"|":4,"^":5,"&":6,"==":7,"!=":7,"===":7,"!==":7,"<":8,">":8,"<=":8,">=":8,in:8,instanceof:8,"<<":9,">>":9,">>>":9,"+":10,"-":10,"*":11,"/":11,"%":11,"**":12},xv=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),wv=new Set(["!","-","+","~","typeof","void","delete"]),Td=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Ld=1200,Md=32,Ma=0,Sa=class{constructor(t,n){H(this,"tokens",t);H(this,"source",n);H(this,"pos",0);H(this,"depth",0)}peek(t=0){return this.tokens[Math.min(this.pos+t,this.tokens.length-1)]}next(){return this.tokens[this.pos++]}isPunct(t,n=0){let r=this.peek(n);return r.type==="punct"&&r.value===t}isIdent(t,n=0){let r=this.peek(n);return r.type==="ident"&&r.value===t}expect(t){if(!this.isPunct(t)){let n=this.peek();throw new de(`Expected "${t}" but found "${n.value||"end of expression"}"`,this.source,n.start)}return this.next()}parseProgram(){let t=[];for(;this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseArrowBody(){if(!this.isPunct("{"))return this.parseAssignment();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseStatement(){if(this.peek().type==="ident"&&this.peek().value==="return")return this.next(),this.isPunct(";")||this.isPunct(",")||this.isPunct("}")||this.peek().type==="eof"?{t:"return",a:null}:{t:"return",a:this.parseExpression()};if(this.peek().type==="ident"&&this.peek().value==="if"&&this.isPunct("(",1)){this.next(),this.expect("(");let t=this.parseExpression();this.expect(")");let n=this.parseBlockOrStatement(),r=null;return this.peek().type==="ident"&&this.peek().value==="else"&&(this.next(),r=this.parseBlockOrStatement()),{t:"if",test:t,cons:n,alt:r}}return this.parseExpression()}parseBlockOrStatement(){if(!this.isPunct("{"))return this.parseStatement();this.next();let t=[];for(;!this.isPunct("}")&&this.peek().type!=="eof";)for(t.push(this.parseStatement());this.isPunct(";")||this.isPunct(",");)this.next();return this.expect("}"),t.length===0?{t:"lit",v:void 0}:t.length===1?t[0]:{t:"seq",body:t}}parseExpression(){return this.parseAssignment()}enterLevel(){if(++this.depth>Ld){let t=this.peek();throw new de(`Expression too deeply nested (limit of ${Ld} levels)`,this.source,t.start)}}parseAssignment(){this.enterLevel();let t=this.parseAssignmentInternal();return this.depth--,t}parseAssignmentInternal(){if(this.peek().type==="ident"&&this.isPunct("=>",1)){let r=this.next().value;return this.next(),{t:"arrow",params:[{kind:"id",name:r}],body:this.parseArrowBody()}}if(this.isPunct("(")){let r=this.tryParseParenArrow();if(r)return r}let t=this.parseConditional(),n=this.peek();if(n.type==="punct"&&xv.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new de("Invalid assignment target",this.source,n.start);this.next();let r=this.parseAssignment();return{t:"assign",op:n.value,target:t,value:r}}return t}tryParseParenArrow(){let t=this.pos,n=0,r=this.pos;for(;r<this.tokens.length;r++){let s=this.tokens[r];if(s.type==="punct"&&s.value==="(")n++;else if(s.type==="punct"&&s.value===")"){if(n--,n===0)break}else if(s.type==="eof")break}let o=this.tokens[r+1];if(!o||o.type!=="punct"||o.value!=="=>")return null;this.next();let i;try{i=this.parseParamList()}catch(s){return this.pos=t,null}return this.expect("=>"),{t:"arrow",params:i,body:this.parseArrowBody()}}parseParamList(){let t=[];for(;!this.isPunct(")")&&(t.push(this.parseParam()),this.isPunct(","));)this.next();return this.expect(")"),t}parseParam(){if(this.isPunct("...")){this.next();let n=this.next();if(n.type!=="ident")throw new de("Expected a name after ...",this.source,n.start);return{kind:"rest",name:n.value}}let t;if(this.isPunct("{")){this.next();let n=[],r;for(;!this.isPunct("}");){if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new de("Expected a name after ...",this.source,o.start);r=o.value}else{let o=this.next();if(o.type!=="ident"&&o.type!=="str")throw new de("Expected a property name",this.source,o.start);let i=this.isPunct(":")?(this.next(),this.parseParam()):{kind:"id",name:o.value};this.isPunct("=")&&(this.next(),i.def=this.parseAssignment()),n.push({key:String(o.value),value:i})}if(this.isPunct(","))this.next();else break}this.expect("}"),t={kind:"obj",props:n,rest:r}}else if(this.isPunct("[")){this.next();let n=[],r;for(;!this.isPunct("]");){if(this.isPunct(",")){this.next(),n.push(null);continue}if(this.isPunct("...")){this.next();let o=this.next();if(o.type!=="ident")throw new de("Expected a name after ...",this.source,o.start);r=o.value}else n.push(this.parseParam());if(this.isPunct(","))this.next();else break}this.expect("]"),t={kind:"arr",elements:n,rest:r}}else{let n=this.next();if(n.type!=="ident")throw new de("Expected a parameter name",this.source,n.start);t={kind:"id",name:n.value}}return this.isPunct("=")&&(this.next(),t.def=this.parseAssignment()),t}parseConditional(){let t=this.parseBinary(0);if(this.isPunct("?")){this.next();let n=this.parseAssignment();this.expect(":");let r=this.parseAssignment();return{t:"cond",test:t,cons:n,alt:r}}return t}parseBinary(t){this.enterLevel();let n=this.parseBinaryInternal(t);return this.depth--,n}parseBinaryInternal(t){let n=this.parseUnary();for(;;){let r=this.peek(),o=r.value;if(!(r.type==="punct"&&o in Ed||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Ed[o];if(s===void 0||s<=t)break;this.next();let a=this.parseBinary(o==="**"?s-1:s);n={t:o==="&&"||o==="||"||o==="??"?"logic":"bin",op:o,l:n,r:a}}return n}parseUnary(){this.enterLevel();let t=this.parseUnaryInternal();return this.depth--,t}parseUnaryInternal(){let t=this.peek();if((t.type==="punct"||t.type==="ident")&&wv.has(t.value))return this.next(),{t:"unary",op:t.value,a:this.parseUnary()};if(t.type==="punct"&&(t.value==="++"||t.value==="--")){this.next();let o=this.parseUnary();return{t:"update",op:t.value,a:o,prefix:!0}}let n=this.parseCallMember(),r=this.peek();return r.type==="punct"&&(r.value==="++"||r.value==="--")&&(this.next(),n={t:"update",op:r.value,a:n,prefix:!1}),n}parseNew(){this.next();let t=this.parseMemberOnly(this.parsePrimary()),n=this.isPunct("(")?this.parseArguments():[];return{t:"new",callee:t,args:n}}parseMemberOnly(t){let n=t;for(;;)if(this.isPunct(".")){this.next();let r=this.next();if(r.type!=="ident")throw new de("Invalid property name",this.source,r.start);n={t:"member",o:n,p:{t:"lit",v:r.value},computed:!1,opt:!1}}else if(this.isPunct("[")){this.next();let r=this.parseExpression();this.expect("]"),n={t:"member",o:n,p:r,computed:!0,opt:!1}}else return n}parseCallMember(){let t=this.isIdent("new")?this.parseNew():this.parsePrimary();for(;;)if(this.isPunct(".")){this.next();let n=this.next();if(n.type!=="ident")throw new de("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!1}}else if(this.isPunct("?."))if(this.next(),this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!0};else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!0}}else{let n=this.next();if(n.type!=="ident")throw new de("Invalid property name",this.source,n.start);t={t:"member",o:t,p:{t:"lit",v:n.value},computed:!1,opt:!0}}else if(this.isPunct("[")){this.next();let n=this.parseExpression();this.expect("]"),t={t:"member",o:t,p:n,computed:!0,opt:!1}}else if(this.isPunct("("))t={t:"call",callee:t,args:this.parseArguments(),opt:!1};else return t}parseArguments(){this.expect("(");let t=[];for(;!this.isPunct(")")&&(this.isPunct("...")?(this.next(),t.push({t:"unary",op:"...",a:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect(")"),t}parsePrimary(){let t=this.peek();if(t.type==="ident"&&t.value==="function")return this.next(),this.peek().type==="ident"&&this.next(),this.expect("("),{t:"arrow",params:this.parseParamList(),body:this.parseArrowBody()};if(t.type==="num"||t.type==="str")return this.next(),{t:"lit",v:t.parsed};if(t.type==="tpl"){this.next();let n=t.tpl;if(Ma>=Md)throw new de(`Template literal too deeply nested (limit of ${Md} levels)`,this.source,t.start);Ma++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>et(r))}}finally{Ma--}}if(t.type==="ident")return t.value in Td?(this.next(),{t:"lit",v:Td[t.value]}):(this.next(),{t:"id",n:t.value});if(t.type==="punct"){if(t.value==="("){this.next();let n=[this.parseExpression()];for(;this.isPunct(",");){if(this.next(),this.isPunct(")")){let r=this.peek();throw new de("Trailing comma in a group",this.source,r.start)}n.push(this.parseExpression())}return this.expect(")"),n.length===1?n[0]:{t:"seq",body:n}}if(t.value==="[")return this.parseArrayLiteral();if(t.value==="{")return this.parseObjectLiteral()}throw new de(`Unexpected token "${t.value||"end of expression"}"`,this.source,t.start)}parseArrayLiteral(){this.expect("[");let t=[];for(;!this.isPunct("]")&&(this.isPunct("...")?(this.next(),t.push({spread:this.parseAssignment()})):t.push(this.parseAssignment()),this.isPunct(","));)this.next();return this.expect("]"),{t:"arr",els:t}}parseObjectLiteral(){var n;this.expect("{");let t=[];for(;!this.isPunct("}");){if(this.isPunct("..."))this.next(),t.push({key:null,spread:this.parseAssignment()});else if(this.isPunct("[")){this.next();let r=this.parseAssignment();this.expect("]"),this.expect(":"),t.push({key:null,keyExpr:r,value:this.parseAssignment()})}else{if(this.peek().type==="ident"&&this.peek().value==="get"&&this.peek(1).type==="ident"&&this.isPunct("(",2)){this.next();let i=this.next();this.expect("("),this.expect(")"),t.push({key:String(i.value),getter:!0,value:{t:"method",params:[],body:this.parseArrowBody()}}),this.isPunct(",")&&this.next();continue}let r=this.next();if(r.type!=="ident"&&r.type!=="str"&&r.type!=="num")throw new de("Invalid object key",this.source,r.start);let o=String((n=r.parsed)!=null?n:r.value);if(this.isPunct(":"))this.next(),t.push({key:o,value:this.parseAssignment()});else if(this.isPunct("(")){this.next();let i=this.parseParamList();t.push({key:o,value:{t:"method",params:i,body:this.parseArrowBody()}})}else t.push({key:o,value:{t:"id",n:o}})}if(this.isPunct(","))this.next();else break}return this.expect("}"),{t:"obj",props:t}}},tr=new Map,Sd=2e3;function et(e){let t=tr.get(e);if(t)return t;let n=new Sa(vi(e),e).parseProgram();return tr.size>=Sd&&kv(),tr.set(e,n),n}function kv(){let e=Math.floor(Sd/2),t=0;for(let n of tr.keys())if(tr.delete(n),++t>=e)break}function Ad(){tr.clear()}var Pd,Ev=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Pd=Object.hasOwn)!=null?Pd:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Tv=new Set(["eval","Function","window","globalThis","self","top","parent","document","fetch","XMLHttpRequest","importScripts","require","process","Reflect","Proxy","WebAssembly","localStorage","sessionStorage","indexedDB","navigator","location","history","crypto","Worker","SharedWorker","ServiceWorker"]);function Cd(e){return function(t,n,...r){if(typeof t!="function")throw new $e(`${e} needs a function. Passing a string would compile it, which this library never does.`);let o=globalThis[e];return o(t,n,...r)}}function hi(e){return function(...t){let n=globalThis[e];return n(...t)}}var Je={Math,JSON,Date,Number,String,Boolean,Array,Object:Ev,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:Cd("setTimeout"),setInterval:Cd("setInterval"),clearTimeout:hi("clearTimeout"),clearInterval:hi("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:hi("requestAnimationFrame"),cancelAnimationFrame:hi("cancelAnimationFrame")}:{}},$e=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
57
|
|
|
58
|
-
Expression: ${r}`:n);
|
|
59
|
-
`)[0]:String(r);
|
|
58
|
+
Expression: ${r}`:n);H(this,"expression",r);this.name="VoodooRuntimeError"}},Ca=Symbol("spread"),no=class{constructor(t){H(this,"value",t)}};function gi(e){return e instanceof no?e.value:e}var Lv=new Set(["__proto__","constructor","prototype"]);function Nd(e){return typeof e=="string"&&Lv.has(e)}function Vt(e,t){if(Nd(e))throw new $e(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function P(e,t){var n,r;switch(e.t){case"lit":return e.v;case"tpl":{let o=(n=e.quasis[0])!=null?n:"";for(let i=0;i<e.exprs.length;i++)o+=Ut(P(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{Vt(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in Je?Je[e.n]:void 0}case"member":{let o=P(e.o,t);if(o==null){if(e.opt)return;throw new $e(`Could not read "${Aa(e,t)}" from ${o===null?"null":"undefined"}`)}let i=Vt(e.computed?P(e.p,t):e.p.v);return o[i]}case"new":{let o=P(e.callee,t);if(typeof o!="function")throw new $e(`Cannot construct ${Ut(o)}: it is not a constructor`);if(o===Function)throw new $e("Cannot construct Function: expressions never compile code");let i=$d(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=P(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new $e(`Could not call "${Aa(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=Vt(e.callee.computed?P(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){Vt(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=Je[e.callee.n]}else i=P(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:Aa(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in Je)?Tv.has(s)?new $e(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new $e(`"${s}" was not found. Expressions cannot reach window: expose it with V.config.globals.${s} = ..., or put it in scope with V.data({ ${s} }).`):new $e(`"${s}" is not a function`)}return i.apply(o,$d(e.args,t))}case"unary":{if(e.op==="...")return{[Ca]:P(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new $e("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=P(e.a.o,t);if(i==null)return!0;let s=Vt(e.a.computed?P(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(Nd(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:Je[e.a.n])}return typeof P(e.a,t)}let o=P(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new $e(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(P(e.a,t)),i=e.op==="++"?o+1:o-1;return Dd(e.a,i,t),e.prefix?i:o}case"bin":{let o=P(e.l,t),i=P(e.r,t);switch(e.op){case"+":return o+i;case"-":return o-i;case"*":return o*i;case"/":return o/i;case"%":return o%i;case"**":return o**i;case"==":return o==i;case"!=":return o!=i;case"===":return o===i;case"!==":return o!==i;case"<":return o<i;case">":return o>i;case"<=":return o<=i;case">=":return o>=i;case"in":return o in i;case"instanceof":return o instanceof i;case"&":return o&i;case"|":return o|i;case"^":return o^i;case"<<":return o<<i;case">>":return o>>i;case">>>":return o>>>i}throw new $e(`Unsupported operator: ${e.op}`)}case"logic":{let o=P(e.l,t);return e.op==="&&"?o&&P(e.r,t):e.op==="||"?o||P(e.r,t):o!=null?o:P(e.r,t)}case"cond":return P(e.test,t)?P(e.cons,t):P(e.alt,t);case"assign":{let o;if(e.op==="=")o=P(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=P(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=P(e.value,t)}else{let i=P(e.target,t),s=P(e.value,t);switch(e.op){case"+=":o=i+s;break;case"-=":o=i-s;break;case"*=":o=i*s;break;case"/=":o=i/s;break;case"%=":o=i%s;break;case"**=":o=i**s;break;default:throw new $e(`Unsupported assignment: ${e.op}`)}}return Dd(e.target,o,t),o}case"if":return P(e.test,t)?P(e.cons,t):e.alt?P(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=Rd(o,s,t),l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return gi(P(i,c.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>gi(P(i,t.child(Rd(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,P(i.spread,t));else{let s=Vt(i.key!==null?i.key:String(P(i.keyExpr,t)));if(i.getter){let a=P(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=P(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...P(i.spread,t)):o.push(P(i,t));return o}case"return":return new no(e.a?P(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=P(i,t),o instanceof no)return o;return o}}throw new $e(`Unknown node: ${e.t}`)}function Ra(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=P(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new $e(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),Ra(a,t[Vt(s)],n,r);if(e.rest){let s={};for(let a of Object.keys(t))i.has(a)||(s[a]=t[a]);n[e.rest]=s}return}let o=Array.isArray(t)?t:Array.from(t);e.elements.forEach((i,s)=>{i&&Ra(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function Rd(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];Ra(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function $d(e,t){let n=[];for(let r of e){let o=P(r,t);o&&typeof o=="object"&&Ca in o?n.push(...o[Ca]):n.push(o)}return n}function Dd(e,t,n){if(e.t==="id"){Vt(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=P(e.o,n);if(r==null)throw new $e("Could not write to null or undefined");let o=Vt(e.computed?P(e.p,n):e.p.v);r[o]=t;return}throw new $e("Invalid assignment target")}function Aa(e,t){return e.t==="member"?e.computed?String(P(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Ut(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(e instanceof Date)return e.toLocaleString();if(typeof e=="object")try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}ye();xe();var ro=new Map;function F(e,t){ro.set(e.startsWith("$")?e:`$${e}`,t)}var $a=new Map;function nr(e,t){$a.set(e,t)}var Wt=class e{constructor(t={},n=null,r=null){this.refs={},this.component=null,this.provides=null,this.magicCache=null,this.data=t,this.parent=n,this.el=r}get root(){let t=this;for(;t.parent;)t=t.parent;return t}inject(t,n){let r=this;for(;r;){if(r.provides&&t in r.provides)return r.provides[t];r=r.parent}return n}get owner(){let t=this;for(;t;){if(t.component)return t;t=t.parent}return null}get allRefs(){let t=[],n=this;for(;n;)t.unshift(n),n=n.parent;let r={};for(let o of t)Object.assign(r,o.refs);return r}lookup(t){let n=this;for(;n;){if(t in n.data)return n.data;n=n.parent}if(t.charCodeAt(0)===36&&ro.has(t))return this.magicContainer(t,ro);if($a.has(t))return this.magicContainer(t,$a)}has(t){return this.lookup(t)!==void 0}get(t){let n=this.lookup(t);return n?n[t]:void 0}set(t,n){let r=this;for(;r;){if(t in r.data){r.data[t]=n;return}r=r.parent}this.data[t]=n}child(t={},n=null){return new e(t,this,n!=null?n:this.el)}reactiveChild(t,n=null){return new e(ee(t),this,n!=null?n:this.el)}magicContainer(t,n){this.magicCache||(this.magicCache=new Map);let r=this.magicCache.get(t);if(r)return r;let o=n.get(t),i=this,s={};return Object.defineProperty(s,t,{get:()=>o(i),set:a=>{let l=o(i);l&&typeof l=="object"&&"set"in l&&l.set(a)},enumerable:!0,configurable:!0}),this.magicCache.set(t,s),s}},ct=new Wt(ee({}));xe();ye();ye();function Dt(){return w.devtools===!0}function Kt(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let n=(e.getAttribute("class")||"").trim().split(/\s+/).filter(Boolean);return n.length&&(t+=`.${n.slice(0,2).join(".")}`),`<${t}>`}function Cn(e){Dt()&&console.warn(`[Voodoo] ${e}`)}var Od=new Set;function oo(e,t){Dt()&&(Od.has(e)||(Od.add(e),console.warn(`[Voodoo] ${t}`)))}var Mv=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function Id(e,t,n){Dt()&&(Mv.has(n)||oo(`unknown-directive:${n}`,`unknown directive "${t}" at ${Kt(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function Fd(e,t){oo(`unknown-component:${t}`,`component "${t}" not registered at ${Kt(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Da(e,t,n,r){if(!Dt())return;let o=r instanceof Error?r.message.split(`
|
|
59
|
+
`)[0]:String(r);Cn(`invalid expression in ${t}="${n}" on element ${Kt(e)}.
|
|
60
60
|
Reason: ${o}
|
|
61
|
-
Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function fd(e,t,n){pt()&&cn(`duplicate key "${String(t)}" in v-for="${n}" on element ${Ct(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function pd(e,t,n){pt()&&cn(`required prop "${n}" missing from component "${t}" at ${Ct(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Hr(e,t){Nr(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var un=new WeakMap,Wo=new WeakMap,At=new WeakSet,Ko=new WeakMap;function ia(e){return At.has(e)}function sa(e){At.add(e)}function it(e){return un.get(e)}function Ce(e){let t=e;for(;t;){let n=un.get(t);if(n)return n;t=t.parentNode}return Ke}function yd(e,t){let n=Ko.get(e);n||Ko.set(e,n=[]),n.push(t)}function xd(e){var t;return(t=Ko.get(e))!=null?t:[]}var na=new WeakSet,Yo=new WeakMap;function aa(e){na.add(e);let t=e.parentNode;if(t){let n=Yo.get(t);n||Yo.set(t,n=new Set),n.add(e)}e.remove()}function Be(e,t){let n=Wo.get(e);n||Wo.set(e,n=[]),n.push(t)}function Y(e){if(e.nodeType===1){let r=[];for(let o=e.firstChild;o;o=o.nextSibling)(o.nodeType===1||o.nodeType===3)&&r.push(o);for(let o=r.length-1;o>=0;o--)Y(r[o])}let t=Yo.get(e);if(t){Yo.delete(e);for(let r of t)Y(r)}let n=Wo.get(e);if(n){Wo.delete(e);for(let r=n.length-1;r>=0;r--)try{n[r]()}catch(o){W(o,"cleanup")}}e.nodeType===1&&iv(e),un.delete(e),Ko.delete(e),At.delete(e)}var _o=new Map,tv=4e3;function Fn(e,t){let n=`${e}\0${t}`,r=_o.get(n);if(r!==void 0)return r;let o=nv(e,t);return _o.size>=tv&&_o.clear(),_o.set(n,o),o}function nv(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function In(e){let t=[],n=It.get(e);if(n&&n.size)for(let[r,o]of n){let i=Fn(r,o);i&&(t.push(i),vd(e,i.name))}else{let r=wd(e);for(let o=0;o<r.length;o++){let i=r[o];if(!ov(i))continue;let s=Fn(i,e.getAttribute(i));s&&(t.push(s),vd(e,s.name))}}return t.length<2?t:t.sort((r,o)=>md(o)-md(r))}var rv=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function wd(e){return rv?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function ov(e){return ca(e)||e.charCodeAt(0)===46&&e.length>1}function md(e){var t,n;return(n=(t=Mt.get(e.name))==null?void 0:t.priority)!=null?n:0}var Or=new Map,Xo=new WeakMap;function vd(e,t){let n=Or.get(t);n||Or.set(t,n=new Set),n.add(e);let r=Xo.get(e);r||Xo.set(e,r=new Set),r.add(t)}function iv(e){var n;let t=Xo.get(e);if(t){for(let r of t)(n=Or.get(r))==null||n.delete(e);Xo.delete(e)}}function la(e,t){var n;return(n=Or.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Go(e,t){let n=[],r=Or.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${w.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function zn(e,t){let n=e;for(;n;){if(la(n,t))return n;n=n.parentElement}return null}var It=new WeakMap;function ca(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Te(e,t){var r;let n=(r=It.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function zt(e,t){let n=It.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function kd(e){let t=It.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];ca(o.name)&&n.set(o.name,o.value)}return n}function sv(e){if(!w.cleanAttributes)return;let t=wd(e),n=It.get(e);n||It.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];ca(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Ed(e){let t=It.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function da(e){let t=It.get(e);return t&&t.size?!0:ua(e)}function ua(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function q(e,t,n,r){if(e)try{return P(ze(e),t)}catch(o){pt()&&ta(r!=null?r:t.el,n!=null?n:"expression",e,o),W(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Td=new WeakSet;function Qo(e){Td.add(e)}function hd(e,t,n){let r=Mt.get(t.name);if(!r){pt()&&t.raw.startsWith(w.prefix)&&dd(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new ot(!0);Be(e,()=>a.stop()),yd(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return q(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let d=dn;dn=e;try{a()}finally{dn=d}};l.run(()=>Pe(c,{scope:l}))},cleanup(a){Be(e,a)},walk(a,l){ne(a,l)}};try{r.setup(s)}catch(a){W(a,`directive ${t.raw}`)}}var ra=null;function Ld(e){ra=e}var av=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function ne(e,t){let n=t!=null?t:Ce(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let d of c)ne(d,n);return}if(e.nodeType===3){Sd(e,n);return}if(e.nodeType!==1)return;let r=e;if(At.has(r))return;let o=r.tagName;if(av.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){At.add(r);return}let i=n,s=In(r),a=Ne.size===0&&Bn.size===0||r.hasAttribute(`${w.prefix}component`)?null:hv(o);if(s.length===0&&!a){Md(r,i);return}At.add(r);let l=dn;dn=r;try{cv(r,s,a,i)}finally{dn=l}}var dn=null;function fa(){return dn}function lv(e,t,n){let r=null;try{r=ze(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=q(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let i=t.reactiveChild({},n),s=r.props;for(let a of s)if(a.key!==null)try{if(a.getter){let l=P(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=P(a.value,i)}catch(l){pt()?ta(n,e,e,l):W(l,"v-data")}return i}function cv(e,t,n,r){let o=r;for(let d of t){let u=Mt.get(d.name);if(u!=null&&u.terminal){hd(e,d,o);return}}let i=t.find(d=>d.name==="data"),s=t.find(d=>d.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&ra){let d=ra(e,a,o);d&&(o=d,l=!0,un.set(e,o))}else(i||s)&&(o=lv(i&&i.expression||"{}",o,e),un.set(e,o));let c=l?r:o;for(let d of t)d.name==="data"||d.name==="component"||hd(e,d,c);sv(e),Td.has(e)||Md(e,o)}function Md(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&Sd(o,t);for(let o of n)ne(o,(r=un.get(o))!=null?r:t)}var dv=500,gd=new Map;function uv(e){let t=e.trim();if(!t)return!1;let n=gd.get(t);if(n!==void 0)return n;let r=!0;try{r=ze(t).t!=="seq"}catch(o){r=!1}return gd.set(t,r),r}function fv(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function pv(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):fv(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=dv)&&uv(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var mv=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function vv(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=ze(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in Oe):!1}function Sd(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||At.has(e))return;let r=e.parentElement;for(;r;){if(mv.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=pv(n);if(!o.some(s=>s.expression))return;At.add(e);let i=new ot(!0);Be(e,()=>i.stop()),yd(e,i),i.run(()=>Pe(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=q(a.expression,t,"interpolation");s+=vv(a,l,t)?a.raw:Lt(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Bt(e,t){un.set(e,t)}function hv(e){let t=e.toLowerCase();if(Ne.has(t))return t;let n=Bn.get(t);return n!=null?n:null}var Bn=new Map;var oa=!1,On=null,Cd=[];function Ad(e){Cd.push(e)}function bd(e,t){for(let n of Cd)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Rd(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Oe,w.globals),bd(t,!1),ne(t,Ke),bd(t,!0),oa||(oa=!0,w.autoDiscover&&gv(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function gv(e){typeof MutationObserver!="undefined"&&(On=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(na.has(o)){na.delete(o);continue}o.nodeType===1&&!o.isConnected&&Y(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(At.has(o)||ne(o,Ce(o.parentNode)))}}}),On.observe(e,{childList:!0,subtree:!0}))}function $d(){On==null||On.disconnect(),On=null,oa=!1}function Dd(e){ne(e!=null?e:document.body,e?Ce(e.parentNode):Ke)}de();ce();var Rt=new Set,Pd=new Set;function jt(e,t){let n=ln(e);Ne.set(n,t),Bn.set(n.replace(/-/g,""),n),bv(n)}function bv(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=it(s))!=null&&r.component||yv(s))continue;let a=Ce(s.parentNode);ia(s)&&(Y(s),Ed(s)),ne(s,a)}}}function yv(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ua(t)&&!ia(t))return!0;t=t.parentElement}return!1}function xv(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function wv(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function pa(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function kv(e,t,n,r,o){var c;let i=X({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(ln(d),d),a.set(pa(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=Fn(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let p=(c=a.get(u.arg.toLowerCase()))!=null?c:pa(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>Pe(()=>{i[p]=q(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let f=a.get(d.name.toLowerCase());f?i[f]=xv(d.value,t[f]):s.length||(i[pa(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&pd(e,o,d);return i}function Ev(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&Tv(d,n)}),s.replaceWith(c)}}var Jo=null;function Nd(e){Jo=e}function Tv(e,t){Jo==null||Jo(e,t)}function Hd(e,t,n){var E,C,D,A,se,O,me,ae;let r=t?ln(t):"",o=r?(D=(C=Ne.get(r))!=null?C:Ne.get((E=Bn.get(r))!=null?E:""))!=null?D:{}:{};r&&!Ne.has(r)&&!Bn.has(r)&&ud(e,t);let i=new ot(!0),s=wv(o),a=kv(e,s,n,i,r||"inline");!o.state&&o.data&&Hr("data()","state()"),o.destroyed&&Hr("destroyed()","unmounted()");let l=(A=o.state)!=null?A:o.data,c={},d={},u=o.inheritScope?n:n.root,f=new St({},u,e);f.component=d;try{c=l?(se=l.call(d,a))!=null?se:{}:{}}catch(R){W(R,`state() of component "${t}"`)}let p=e.getAttribute(`${w.prefix}data`);if(p){let R=q(p,n,"v-data");R&&typeof R=="object"&&Object.assign(c,R)}if(o.provide)try{let R=typeof o.provide=="function"?o.provide.call(d):o.provide;R&&typeof R=="object"&&(f.provides={...R})}catch(R){W(R,`provide() of component "${t}"`)}if(o.inject){let R=Array.isArray(o.inject)?o.inject.map(S=>[S,{from:S}]):Object.entries(o.inject).map(([S,B])=>[S,B!=null?B:{}]);for(let[S,B]of R){let _e=(O=B.from)!=null?O:S,We=n.inject(_e,B.default);S in c||(c[S]=We)}}let m=X(c),h={};if(o.computed)for(let[R,S]of Object.entries(o.computed))h[R]=an(()=>S.call(d));let v={};if(o.methods)for(let[R,S]of Object.entries(o.methods))v[R]=(...B)=>S.apply(d,B);for(let[R,S]of Object.entries(o))typeof S=="function"&&(Lv.has(R)||R==="state"||R==="data"||R in v||(v[R]=(...B)=>S.apply(d,B)));let g=(R,S)=>{let B=new CustomEvent(R,{detail:S,bubbles:!0,cancelable:!0});B.__voodoo=!0,e.dispatchEvent(B)},b={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(ae=(me=n.owner)==null?void 0:me.component)!=null?ae:null,emit:g,$emit:g,$nextTick:R=>Promise.resolve().then(()=>(de(),Yc)).then(S=>S.nextTick(R)),$watch:(R,S)=>Ie(()=>q(R,f),S)},x={get(R,S){if(typeof S!="symbol")return S==="$refs"?f.allRefs:S in b?b[S]:S in h?h[S].value:S in v?v[S]:S in a?a[S]:m[S]},set(R,S,B){return typeof S=="symbol"?!0:S in h?(h[S].value=B,!0):S in a?(a[S]=B,!0):(m[S]=B,!0)},has(R,S){if(typeof S=="symbol")return!1;let B=S;return B==="$refs"||B in b||B in h||B in v||B in a||B in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,x);if(f.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[R,S]of Object.entries(o.watch))i.run(()=>Ie(()=>T[R],(B,_e)=>S.call(T,B,_e)));if(o.style&&!Pd.has(r)){Pd.add(r);let R=document.createElement("style");R.setAttribute("data-voodoo-component",r),R.textContent=o.style,document.head.appendChild(R)}if(jn(o,T,"beforeMount"),o.template){let R=document.createDocumentFragment();for(;e.firstChild;)R.appendChild(e.firstChild);e.innerHTML=o.template,Ev(e,R,n)}return Rt.add(T),Se(()=>{jn(o,T,"mounted"),o.updated&&i.run(()=>Pe(()=>{for(let R of Object.keys(m))m[R];jn(o,T,"updated")}))}),Be(e,()=>{jn(o,T,"beforeUnmount"),i.stop(),Rt.delete(T),jn(o,T,"unmounted"),jn(o,T,"destroyed")}),f}var Lv=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function jn(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){W(o,`hook ${n}`)}}de();ce();var qn=[],ma=null,Zo=0,Od=-1,ha=0,va=!1;function Fd(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Mv(){if(ma||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(ma=new MutationObserver(()=>{Zo++}),ma.observe(e,{childList:!0,subtree:!0}))}function Id(){if(va)return;va=!0;let e=()=>{va=!1,Sv()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Sv(){var t;Zo===Od?ha++:ha=0,Od=Zo;let e=Fd();for(let n=qn.length-1;n>=0;n--){let r=qn[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){qn.splice(n,1),r.action(o);continue}e-r.since>1e4&&(qn.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}qn.length&&Id()}function ga(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Mv(),qn.push({...e,since:Fd()}),Id()}function zd(){return typeof document=="undefined"||!document.body?!1:ha>=2}function Cv(){return typeof document=="undefined"||!document.body?!1:Zo===0}function Fr(e){typeof document!="undefined"&&ga({ready:()=>zd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Bd(e){if(typeof document!="undefined"){if(Cv()){Promise.resolve().then(e);return}ga({ready:()=>zd()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function ei(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ga({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var Av=0,ti=null;function jd(e){ti=e}function qd(e={}){let t=`voodoo-app-${++Av}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=ln(m);Ne.has(v)||(jt(v,h),s.push(v))}}function f(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Oe,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}jt(t,h),m.setAttribute(`${w.prefix}component`,t);try{ne(m,Ke)}catch(b){return W(b,`application mounting "${t}"`),null}if(c=(g=(v=it(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let x of b)x(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=ln(m);return h===void 0?(g=n&&n[m])!=null?g:Ne.get(v):(n?n[m]=h:e.components={[m]:h},c&&!Ne.has(v)&&(jt(v,h),s.push(v)),p)},directive(m,h){return ti==null||ti(m,h),p},use(m,h){return Uo(Rv(),m,h),p},provide(m,h){return i[m]=h,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let h=null;return ei(m,v=>{h=f(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){Y(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,Ne.delete(t);for(let m of s)Ne.delete(m);s.length=0,c=null,a=null}}};return p}var Vd=null;function Ud(e){Vd=e}function Rv(){return Vd}de();de();var qt=new Map,ba=Ge(0),ya=new Map;function ni(e,t,n={}){let r=qt.get(e);if(!t){if(!r){let l=X({});return qt.set(e,l),l}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=X(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(qt.set(e,a),ba.value++,n.persist&&typeof localStorage!="undefined"){let l=Ie(a,()=>{try{localStorage.setItem(o,JSON.stringify($v(a)))}catch(c){}},{deep:!0});ya.set(e,l)}return a}function $v(e){let t={},n=Object.getOwnPropertyDescriptors(Me(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var $t=new Proxy({},{get:(e,t)=>(ba.value,qt.get(t)),has:(e,t)=>(ba.value,qt.has(t)),ownKeys:()=>[...qt.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function _d(e){var t;(t=ya.get(e))==null||t(),ya.delete(e),qt.delete(e)}function ri(){return[...qt.keys()]}var Ta={};No(Ta,{capitalize:()=>Wd,chunk:()=>Iv,clone:()=>Ir,debounce:()=>Ye,device:()=>ve,escapeHtml:()=>I,formatCurrency:()=>xa,formatDate:()=>ka,formatFileSize:()=>_v,formatNumber:()=>wa,formatPercent:()=>Wv,get:()=>Br,groupBy:()=>Ov,isBrowser:()=>oi,matchesMedia:()=>Vn,memoize:()=>Hv,merge:()=>ii,once:()=>Nv,parseDuration:()=>Q,random:()=>jv,relativeTime:()=>Ea,sample:()=>qv,set:()=>Bv,setFormatDefaults:()=>ai,sleep:()=>Pv,slugify:()=>Vv,sortBy:()=>zv,stripTags:()=>Uv,throttle:()=>zr,titleCase:()=>jr,truncate:()=>si,uid:()=>le,unique:()=>Fv,uuid:()=>Dv});function Dv(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function le(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function Pv(e){return new Promise(t=>setTimeout(t,e))}function Q(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function Ye(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function zr(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function Nv(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function Hv(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function Ir(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>Ir(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Ir(r)]));if(e instanceof Set)return new Set([...e].map(n=>Ir(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Ir(r);return t}function ii(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=ii({...i},o):e[r]=o}return e}function Ov(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function Fv(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function Iv(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function zv(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function Br(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function Bv(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function jv(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function qv(e){return e[Math.floor(Math.random()*e.length)]}function Vv(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function si(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function Wd(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function jr(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Wd(t.toLowerCase()))}function I(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Uv(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var Un="pt-BR",Kd="BRL";function ai(e,t){e&&(Un=e),t&&(Kd=t)}function xa(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:Un,{style:"currency",currency:(o=t.currency)!=null?o:Kd}).format(n)}function wa(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:Un,o).format(n)}function ka(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:Un;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function Ea(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:Un,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function _v(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function Wv(e,t=0,n){return new Intl.NumberFormat(n!=null?n:Un,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var oi=typeof window!="undefined"&&typeof window.document!="undefined";function Vn(e){if(!oi||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ve={get touch(){return oi&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return Vn("(max-width: 767px)")},get tablet(){return Vn("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return Vn("(min-width: 1024px)")},get online(){return!oi||navigator.onLine},get reducedMotion(){return Vn("(prefers-reduced-motion: reduce)")},get darkMode(){return Vn("(prefers-color-scheme: dark)")}};var Ee=class extends Error{constructor(n,r,o,i){super(n);N(this,"response",r);N(this,"config",o);N(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},He={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},li=[],ci=[],qr=[],Vr=new Map;function Yd(e){var t;return`${(t=e.method)!=null?t:"GET"} ${Wn(e)}`}function Kv(e){if(!e){Vr.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Vr.keys()])t(n)&&Vr.delete(n)}var Gd="voodoo:offline-queue";function La(){try{return JSON.parse(localStorage.getItem(Gd)||"[]")}catch(e){return[]}}function Ma(e){try{localStorage.setItem(Gd,JSON.stringify(e))}catch(t){}}function Yv(e){var n,r;if(typeof localStorage=="undefined")return;let t=La();t.push({url:Wn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),Ma(t)}async function Qd(){if(typeof localStorage=="undefined")return 0;let e=La();if(!e.length)return 0;Ma([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await Vt({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=La();Ma([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Qd()});function Wn(e){let t=e.url,n=He.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Jd(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${He.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Xv(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function Gv(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var Qv=new Set(["GET","HEAD","OPTIONS"]);function Jv(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Zv(e,t,n,r){var o;return Qv.has(e)||t.retryUnsafe===!0||Jv(n)?!0:(((o=t.retry)!=null?o:0)>0&&Nr(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function Vt(e){var d,u,f,p,m;let t={method:"GET",timeout:He.timeout,retry:He.retry,retryDelay:He.retryDelay,credentials:He.credentials,responseType:"auto",...e,headers:{...He.headers,...e.headers}};for(let h of li)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=Vr.get(Yd(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Yv(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let h=Jd();h&&!r[He.csrfHeader]&&(r[He.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Xv(t.body,r),i=Wn(t),s=Zv(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let x=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let E=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),x();let D={data:await Gv(E,t.responseType),status:E.status,statusText:E.statusText,headers:E.headers,ok:E.ok,raw:E,config:t};if(!E.ok){if(E.status>=500&&h<s-1){await Xd(((f=t.retryDelay)!=null?f:500)*2**h);continue}let A=new Ee(`Request failed with status ${E.status}`,D,t);for(let se of qr)se(A);throw A}for(let A of ci)D=await A(D);return t.cache&&n==="GET"&&Vr.set(Yd(t),{expires:Date.now()+t.cache,value:D}),D}catch(E){if(T&&clearTimeout(T),x(),E instanceof Ee)throw E;if(a=E,(E==null?void 0:E.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(h<s-1){await Xd(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new Ee(l,void 0,t,a);for(let h of qr)h(c);throw c}function Xd(e){return new Promise(t=>setTimeout(t,e))}async function _n(e){return(await Vt(e)).data}var he={defaults:He,get(e,t={}){return _n({...t,url:e,method:"GET"})},post(e,t,n={}){return _n({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return _n({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return _n({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return _n({...t,url:e,method:"DELETE"})},head(e,t={}){return _n({...t,url:e,method:"HEAD"})},request:Vt,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=Wn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...He.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Jd();a&&i.setRequestHeader(He.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(u):o(new Ee(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new Ee("Network failure during upload"))),i.addEventListener("abort",()=>o(new Ee("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(Wn({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(Wn({url:e,params:n.params}),{headers:{...He.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let d=s.split(`
|
|
62
|
-
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return
|
|
61
|
+
Suggestion: attribute expressions accept a single value. If the logic spans more than one line, move it to a component method and call the method here.`)}function zd(e,t,n){Dt()&&Cn(`duplicate key "${String(t)}" in v-for="${n}" on element ${Kt(e)}. Two rows with the same key cause the list to reuse the wrong block when reordering. Use a unique key, like the item id.`)}function Bd(e,t,n){Dt()&&Cn(`required prop "${n}" missing from component "${t}" at ${Kt(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function io(e,t){oo(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var $n=new WeakMap,xi=new WeakMap,Yt=new WeakSet,wi=new WeakMap;function Oa(e){return Yt.has(e)}function Ia(e){Yt.add(e)}function Tt(e){return $n.get(e)}function ze(e){let t=e;for(;t;){let n=$n.get(t);if(n)return n;t=t.parentNode}return ct}function Wd(e,t){let n=wi.get(e);n||wi.set(e,n=[]),n.push(t)}function Kd(e){var t;return(t=wi.get(e))!=null?t:[]}var Pa=new WeakSet,ki=new WeakMap;function Fa(e){Pa.add(e);let t=e.parentNode;if(t){let n=ki.get(t);n||ki.set(t,n=new Set),n.add(e)}e.remove()}function tt(e,t){let n=xi.get(e);n||xi.set(e,n=[]),n.push(t)}function oe(e){if(e.nodeType===1){let r=[];for(let o=e.firstChild;o;o=o.nextSibling)(o.nodeType===1||o.nodeType===3)&&r.push(o);for(let o=r.length-1;o>=0;o--)oe(r[o])}let t=ki.get(e);if(t){ki.delete(e);for(let r of t)oe(r)}let n=xi.get(e);if(n){xi.delete(e);for(let r=n.length-1;r>=0;r--)try{n[r]()}catch(o){te(o,"cleanup")}}e.nodeType===1&&$v(e),$n.delete(e),wi.delete(e),Yt.delete(e)}var yi=new Map,Sv=4e3;function or(e,t){let n=`${e}\0${t}`,r=yi.get(n);if(r!==void 0)return r;let o=Av(e,t);return yi.size>=Sv&&yi.clear(),yi.set(n,o),o}function Av(e,t){let n=w.prefix,r;if(e.startsWith("@"))r=`on:${e.slice(1)}`;else if(e.startsWith(":")&&e.length>1)r=`bind:${e.slice(1)}`;else if(e.startsWith(".")&&e.length>1)r=`bind:${e.slice(1)}.prop`;else if(e.startsWith(n))r=e.slice(n.length);else if(e.startsWith("data-v-"))r=e.slice(7);else return null;if(!r)return null;let o=r.split("."),i=o.shift(),s={};for(let d of o){let u=d.indexOf("=");u>-1?s[d.slice(0,u)]=d.slice(u+1):s[d]=!0}let a=i.indexOf(":"),l=a>-1?i.slice(0,a):i,c=a>-1?i.slice(a+1):void 0;return{raw:e,name:l,arg:c,modifiers:s,expression:t}}function ir(e){let t=[],n=an.get(e);if(n&&n.size)for(let[r,o]of n){let i=or(r,o);i&&(t.push(i),qd(e,i.name))}else{let r=Yd(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Rv(i))continue;let s=or(i,e.getAttribute(i));s&&(t.push(s),qd(e,s.name))}}return t.length<2?t:t.sort((r,o)=>jd(o)-jd(r))}var Cv=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function Yd(e){return Cv?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Rv(e){return Ba(e)||e.charCodeAt(0)===46&&e.length>1}function jd(e){var t,n;return(n=(t=_t.get(e.name))==null?void 0:t.priority)!=null?n:0}var so=new Map,Ei=new WeakMap;function qd(e,t){let n=so.get(t);n||so.set(t,n=new Set),n.add(e);let r=Ei.get(e);r||Ei.set(e,r=new Set),r.add(t)}function $v(e){var n;let t=Ei.get(e);if(t){for(let r of t)(n=so.get(r))==null||n.delete(e);Ei.delete(e)}}function za(e,t){var n;return(n=so.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function Ti(e,t){let n=[],r=so.get(t),o=e;if(r)for(let s of r)s.isConnected&&o.contains&&o.contains(s)&&s!==o&&n.push(s);let i=new Set(n);for(let s of Array.from(e.querySelectorAll(`[${w.prefix}${t}],[data-v-${t}]`)))i.has(s)||(i.add(s),n.push(s));return n.sort((s,a)=>s.compareDocumentPosition(a)&window.Node.DOCUMENT_POSITION_FOLLOWING?-1:1),n}function sr(e,t){let n=e;for(;n;){if(za(n,t))return n;n=n.parentElement}return null}var an=new WeakMap;function Ba(e){return e.startsWith(w.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Oe(e,t){var r;let n=(r=an.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function ln(e,t){let n=an.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function Xd(e){let t=an.get(e);if(t)return new Map(t);let n=new Map;for(let r=0;r<e.attributes.length;r++){let o=e.attributes[r];Ba(o.name)&&n.set(o.name,o.value)}return n}function Dv(e){if(!w.cleanAttributes)return;let t=Yd(e),n=an.get(e);n||an.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];Ba(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function Gd(e){let t=an.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ja(e){let t=an.get(e);return t&&t.size?!0:qa(e)}function qa(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(w.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function Y(e,t,n,r){if(e)try{return P(et(e),t)}catch(o){Dt()&&Da(r!=null?r:t.el,n!=null?n:"expression",e,o),te(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var Qd=new WeakSet;function Li(e){Qd.add(e)}function Vd(e,t,n){let r=_t.get(t.name);if(!r){Dt()&&t.raw.startsWith(w.prefix)&&Id(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Et(!0);tt(e,()=>a.stop()),Wd(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return Y(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let d=Rn;Rn=e;try{a()}finally{Rn=d}};l.run(()=>We(c,{scope:l}))},cleanup(a){tt(e,a)},walk(a,l){ue(a,l)}};try{r.setup(s)}catch(a){te(a,`directive ${t.raw}`)}}var Na=null;function Jd(e){Na=e}var Pv=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function ue(e,t){let n=t!=null?t:ze(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let d of c)ue(d,n);return}if(e.nodeType===3){eu(e,n);return}if(e.nodeType!==1)return;let r=e;if(Yt.has(r))return;let o=r.tagName;if(Pv.has(o))return;if(r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)){Yt.add(r);return}let i=n,s=ir(r),a=Ke.size===0&&ar.size===0||r.hasAttribute(`${w.prefix}component`)?null:qv(o);if(s.length===0&&!a){Zd(r,i);return}Yt.add(r);let l=Rn;Rn=r;try{Hv(r,s,a,i)}finally{Rn=l}}var Rn=null;function Va(){return Rn}function Nv(e,t,n){let r=null;try{r=et(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=Y(e,t,"v-data");return t.reactiveChild(a&&typeof a=="object"?a:{},n)}let i=t.reactiveChild({},n),s=r.props;for(let a of s)if(a.key!==null)try{if(a.getter){let l=P(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=P(a.value,i)}catch(l){Dt()?Da(n,e,e,l):te(l,"v-data")}return i}function Hv(e,t,n,r){let o=r;for(let d of t){let u=_t.get(d.name);if(u!=null&&u.terminal){Vd(e,d,o);return}}let i=t.find(d=>d.name==="data"),s=t.find(d=>d.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&Na){let d=Na(e,a,o);d&&(o=d,l=!0,$n.set(e,o))}else(i||s)&&(o=Nv(i&&i.expression||"{}",o,e),$n.set(e,o));let c=l?r:o;for(let d of t)d.name==="data"||d.name==="component"||Vd(e,d,c);Dv(e),Qd.has(e)||Zd(e,o)}function Zd(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&eu(o,t);for(let o of n)ue(o,(r=$n.get(o))!=null?r:t)}var Ov=500,Ud=new Map;function Iv(e){let t=e.trim();if(!t)return!1;let n=Ud.get(t);if(n!==void 0)return n;let r=!0;try{r=et(t).t!=="seq"}catch(o){r=!1}return Ud.set(t,r),r}function Fv(e,t){let n=0,r=null;for(let o=t;o<e.length;o++){let i=e[o];if(r){i==="\\"?o++:i===r&&(r=null);continue}if(i==='"'||i==="'"||i==="`"){r=i;continue}if(i==="{")n++;else if(i==="}"&&(n--,n===0))return o}return-1}function zv(e){let t=[],n="",r=0,o=()=>{n&&t.push({text:n}),n=""};for(;r<e.length;){let i=e.indexOf("{",r);if(i===-1){n+=e.slice(r);break}n+=e.slice(r,i);let s=e[i+1]==="{",a=s?e.indexOf("}}",i+2):Fv(e,i);if(a===-1){n+=e[i],r=i+1;continue}let l=s?e.slice(i+2,a):e.slice(i+1,a),c=s?a+2:a+1;if((s||l.length<=Ov)&&Iv(l)){o(),t.push({expression:l.trim(),raw:e.slice(i,c),explicit:s}),r=c;continue}n+=e[i],r=i+1}return o(),t}var Bv=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function jv(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=et(e.expression)}catch(o){return!0}return r.t==="lit"?!0:t!==void 0?!1:r.t==="id"?n.lookup(r.n)===void 0&&!(r.n in Je):!1}function eu(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Yt.has(e))return;let r=e.parentElement;for(;r;){if(Bv.has(r.tagName)||r.hasAttribute(`${w.prefix}ignore`)||r.hasAttribute(`${w.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=zv(n);if(!o.some(s=>s.expression))return;Yt.add(e);let i=new Et(!0);tt(e,()=>i.stop()),Wd(e,i),i.run(()=>We(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=Y(a.expression,t,"interpolation");s+=jv(a,l,t)?a.raw:Ut(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function Xt(e,t){$n.set(e,t)}function qv(e){let t=e.toLowerCase();if(Ke.has(t))return t;let n=ar.get(t);return n!=null?n:null}var ar=new Map;var Ha=!1,rr=null,tu=[];function nu(e){tu.push(e)}function _d(e,t){for(let n of tu)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function ru(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:w.root)!=null?n:document.body;t&&(Object.assign(Je,w.globals),_d(t,!1),ue(t,ct),_d(t,!0),Ha||(Ha=!0,w.autoDiscover&&Vv(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Vv(e){typeof MutationObserver!="undefined"&&(rr=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Pa.has(o)){Pa.delete(o);continue}o.nodeType===1&&!o.isConnected&&oe(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Yt.has(o)||ue(o,ze(o.parentNode)))}}}),rr.observe(e,{childList:!0,subtree:!0}))}function ou(){rr==null||rr.disconnect(),rr=null,Ha=!1}function iu(e){ue(e!=null?e:document.body,e?ze(e.parentNode):ct)}xe();ye();var Gt=new Set,su=new Set;function cn(e,t){let n=An(e);Ke.set(n,t),ar.set(n.replace(/-/g,""),n),Uv(n)}function Uv(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${w.prefix}component="${e}"]`];for(let o of n){let i;try{i=Array.from(document.querySelectorAll(o))}catch(s){continue}for(let s of i){if((r=Tt(s))!=null&&r.component||_v(s))continue;let a=ze(s.parentNode);Oa(s)&&(oe(s),Gd(s)),ue(s,a)}}}function _v(e){let t=e.parentElement;for(;t&&t!==document.body;){if(qa(t)&&!Oa(t))return!0;t=t.parentElement}return!1}function Wv(e,t){var n,r;if(!t||!t.type||t.type==="any")return e;if(e==null||e==="")return(n=t.default)!=null?n:e;switch(t.type){case"number":{let o=Number(e);return Number.isNaN(o)?(r=t.default)!=null?r:e:o}case"boolean":return e===""||e==="true"||e===!0||e==="1";case"string":return String(e);case"array":return Array.isArray(e)?e:[e];default:return e}}function Kv(e){let t={};if(Array.isArray(e.props))for(let n of e.props)t[n]={type:"any"};else e.props&&Object.assign(t,e.props);return t}function Ua(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Yv(e,t,n,r,o){var c;let i=ee({}),s=Object.keys(t),a=new Map;for(let d of s)a.set(d.toLowerCase(),d),a.set(An(d),d),a.set(Ua(d).toLowerCase(),d);for(let d of s)t[d].default!==void 0&&(i[d]=t[d].default);let l=Array.from(e.attributes);for(let d of l){let u=or(d.name,d.value);if(u&&u.name==="bind"&&u.arg){let p=(c=a.get(u.arg.toLowerCase()))!=null?c:Ua(u.arg);if(s.length&&!a.has(u.arg.toLowerCase()))continue;r.run(()=>We(()=>{i[p]=Y(u.expression,n,`:${u.arg}`)}));continue}if(u)continue;let f=a.get(d.name.toLowerCase());f?i[f]=Wv(d.value,t[f]):s.length||(i[Ua(d.name)]=d.value)}for(let d of s)t[d].required&&i[d]===void 0&&Bd(e,o,d);return i}function Xv(e,t,n){let r=Array.from(e.querySelectorAll("slot"));if(!r.length)return;let o=new Map,i=[];Array.from(t.childNodes).forEach(s=>{var l,c;let a=s.nodeType===1&&(l=s.getAttribute("slot"))!=null?l:null;if(a){s.removeAttribute("slot");let d=(c=o.get(a))!=null?c:[];d.push(s),o.set(a,d)}else i.push(s)});for(let s of r){let a=s.getAttribute("name"),l=a?o.get(a):i,c=document.createDocumentFragment();if(l&&l.length)for(let d of l)c.appendChild(d);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(d=>{d.nodeType===1&&Gv(d,n)}),s.replaceWith(c)}}var Mi=null;function au(e){Mi=e}function Gv(e,t){Mi==null||Mi(e,t)}function lu(e,t,n){var E,A,C,R,ce,O,be,Xe;let r=t?An(t):"",o=r?(C=(A=Ke.get(r))!=null?A:Ke.get((E=ar.get(r))!=null?E:""))!=null?C:{}:{};r&&!Ke.has(r)&&!ar.has(r)&&Fd(e,t);let i=new Et(!0),s=Kv(o),a=Yv(e,s,n,i,r||"inline");!o.state&&o.data&&io("data()","state()"),o.destroyed&&io("destroyed()","unmounted()");let l=(R=o.state)!=null?R:o.data,c={},d={},u=o.inheritScope?n:n.root,f=new Wt({},u,e);f.component=d;try{c=l?(ce=l.call(d,a))!=null?ce:{}:{}}catch(I){te(I,`state() of component "${t}"`)}let p=e.getAttribute(`${w.prefix}data`);if(p){let I=Y(p,n,"v-data");I&&typeof I=="object"&&Object.assign(c,I)}if(o.provide)try{let I=typeof o.provide=="function"?o.provide.call(d):o.provide;I&&typeof I=="object"&&(f.provides={...I})}catch(I){te(I,`provide() of component "${t}"`)}if(o.inject){let I=Array.isArray(o.inject)?o.inject.map($=>[$,{from:$}]):Object.entries(o.inject).map(([$,K])=>[$,K!=null?K:{}]);for(let[$,K]of I){let st=(O=K.from)!=null?O:$,at=n.inject(st,K.default);$ in c||(c[$]=at)}}let m=ee(c),h={};if(o.computed)for(let[I,$]of Object.entries(o.computed))h[I]=Sn(()=>$.call(d));let v={};if(o.methods)for(let[I,$]of Object.entries(o.methods))v[I]=(...K)=>$.apply(d,K);for(let[I,$]of Object.entries(o))typeof $=="function"&&(Qv.has(I)||I==="state"||I==="data"||I in v||(v[I]=(...K)=>$.apply(d,K)));let g=(I,$)=>{let K=new CustomEvent(I,{detail:$,bubbles:!0,cancelable:!0});K.__voodoo=!0,e.dispatchEvent(K)},b={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(Xe=(be=n.owner)==null?void 0:be.component)!=null?Xe:null,emit:g,$emit:g,$nextTick:I=>Promise.resolve().then(()=>(xe(),wd)).then($=>$.nextTick(I)),$watch:(I,$)=>Ze(()=>Y(I,f),$)},y={get(I,$){if(typeof $!="symbol")return $==="$refs"?f.allRefs:$ in b?b[$]:$ in h?h[$].value:$ in v?v[$]:$ in a?a[$]:m[$]},set(I,$,K){return typeof $=="symbol"?!0:$ in h?(h[$].value=K,!0):$ in a?(a[$]=K,!0):(m[$]=K,!0)},has(I,$){if(typeof $=="symbol")return!1;let K=$;return K==="$refs"||K in b||K in h||K in v||K in a||K in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(v),...Object.keys(h)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(d,y);if(f.data=T,Object.setPrototypeOf(d,T),o.watch)for(let[I,$]of Object.entries(o.watch))i.run(()=>Ze(()=>T[I],(K,st)=>$.call(T,K,st)));if(o.style&&!su.has(r)){su.add(r);let I=document.createElement("style");I.setAttribute("data-voodoo-component",r),I.textContent=o.style,document.head.appendChild(I)}if(lr(o,T,"beforeMount"),o.template){let I=document.createDocumentFragment();for(;e.firstChild;)I.appendChild(e.firstChild);e.innerHTML=o.template,Xv(e,I,n)}return Gt.add(T),Fe(()=>{lr(o,T,"mounted"),o.updated&&i.run(()=>We(()=>{for(let I of Object.keys(m))m[I];lr(o,T,"updated")}))}),tt(e,()=>{lr(o,T,"beforeUnmount"),i.stop(),Gt.delete(T),lr(o,T,"unmounted"),lr(o,T,"destroyed")}),f}var Qv=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function lr(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){te(o,`hook ${n}`)}}xe();ye();var cr=[],_a=null,Si=0,cu=-1,Ka=0,Wa=!1;function du(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function Jv(){if(_a||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(_a=new MutationObserver(()=>{Si++}),_a.observe(e,{childList:!0,subtree:!0}))}function uu(){if(Wa)return;Wa=!0;let e=()=>{Wa=!1,Zv()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function Zv(){var t;Si===cu?Ka++:Ka=0,cu=Si;let e=du();for(let n=cr.length-1;n>=0;n--){let r=cr[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){cr.splice(n,1),r.action(o);continue}e-r.since>1e4&&(cr.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}cr.length&&uu()}function Ya(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}Jv(),cr.push({...e,since:du()}),uu()}function fu(){return typeof document=="undefined"||!document.body?!1:Ka>=2}function eh(){return typeof document=="undefined"||!document.body?!1:Si===0}function ao(e){typeof document!="undefined"&&Ya({ready:()=>fu()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function pu(e){if(typeof document!="undefined"){if(eh()){Promise.resolve().then(e);return}Ya({ready:()=>fu()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Ai(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&Ya({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var th=0,Ci=null;function mu(e){Ci=e}function vu(e={}){let t=`voodoo-app-${++th}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,d=[];function u(){if(n)for(let[m,h]of Object.entries(n)){let v=An(m);Ke.has(v)||(cn(v,h),s.push(v))}}function f(m){var v,g;if(c)return c;a=m,l=m.innerHTML,Object.assign(Je,o.globalProperties),u();let h={...r};if(Object.keys(i).length){let b=h.provide;h.provide=()=>({...typeof b=="function"?b():b!=null?b:{},...i})}cn(t,h),m.setAttribute(`${w.prefix}component`,t);try{ue(m,ct)}catch(b){return te(b,`application mounting "${t}"`),null}if(c=(g=(v=Tt(m))==null?void 0:v.component)!=null?g:null,c){let b=d;d=[];for(let y of b)y(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,h){var g;let v=An(m);return h===void 0?(g=n&&n[m])!=null?g:Ke.get(v):(n?n[m]=h:e.components={[m]:h},c&&!Ke.has(v)&&(cn(v,h),s.push(v)),p)},directive(m,h){return Ci==null||Ci(m,h),p},use(m,h){return bi(nh(),m,h),p},provide(m,h){return i[m]=h,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let h=null;return Ai(m,v=>{h=f(v)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),h},whenMounted(){return c?Promise.resolve(c):new Promise(m=>d.push(m))},unmount(){if(a){oe(a),a.removeAttribute(`${w.prefix}component`),a.innerHTML=l,Ke.delete(t);for(let m of s)Ke.delete(m);s.length=0,c=null,a=null}}};return p}var hu=null;function gu(e){hu=e}function nh(){return hu}xe();xe();var dn=new Map,Xa=mt(0),Ga=new Map;function Ri(e,t,n={}){let r=dn.get(e);if(!t){if(!r){let l=ee({});return dn.set(e,l),l}return r}if(r)return Object.assign(r,t),r;let o=typeof n.persist=="string"?n.persist:`voodoo:store:${e}`,i=Object.getOwnPropertyDescriptors(t),s=Object.defineProperties({},i);if(n.persist&&typeof localStorage!="undefined")try{let l=localStorage.getItem(o);if(l){let c=JSON.parse(l);for(let[d,u]of Object.entries(c))i[d]&&!("value"in i[d])||(s[d]=u)}}catch(l){}let a=ee(s);for(let[l,c]of Object.entries(i)){let d=c.value;typeof d=="function"&&(a[l]=(...u)=>d.apply(a,u))}if(dn.set(e,a),Xa.value++,n.persist&&typeof localStorage!="undefined"){let l=Ze(a,()=>{try{localStorage.setItem(o,JSON.stringify(rh(a)))}catch(c){}},{deep:!0});Ga.set(e,l)}return a}function rh(e){let t={},n=Object.getOwnPropertyDescriptors(Ce(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var Qt=new Proxy({},{get:(e,t)=>(Xa.value,dn.get(t)),has:(e,t)=>(Xa.value,dn.has(t)),ownKeys:()=>[...dn.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function bu(e){var t;(t=Ga.get(e))==null||t(),Ga.delete(e),dn.delete(e)}function $i(){return[...dn.keys()]}var tl={};ai(tl,{capitalize:()=>yu,chunk:()=>dh,clone:()=>lo,debounce:()=>dt,device:()=>Te,escapeHtml:()=>V,formatCurrency:()=>Qa,formatDate:()=>Za,formatFileSize:()=>gh,formatNumber:()=>Ja,formatPercent:()=>bh,get:()=>uo,groupBy:()=>lh,isBrowser:()=>Di,matchesMedia:()=>dr,memoize:()=>ah,merge:()=>Pi,once:()=>sh,parseDuration:()=>ie,random:()=>ph,relativeTime:()=>el,sample:()=>mh,set:()=>fh,setFormatDefaults:()=>Hi,sleep:()=>ih,slugify:()=>vh,sortBy:()=>uh,stripTags:()=>hh,throttle:()=>co,titleCase:()=>fo,truncate:()=>Ni,uid:()=>ge,unique:()=>ch,uuid:()=>oh});function oh(){let e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();if(e!=null&&e.getRandomValues){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function ge(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function ih(e){return new Promise(t=>setTimeout(t,e))}function ie(e,t=0){if(e==null||e==="")return t;if(typeof e=="number")return e;let n=/^\s*([\d.]+)\s*(ms|s|m|h)?\s*$/i.exec(String(e));if(!n)return t;let r=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"s":return r*1e3;case"m":return r*6e4;case"h":return r*36e5;default:return r}}function dt(e,t=250,n=!1){let r=null,o=null,i,s=function(...a){o=a,i=this;let l=n&&r===null;r&&clearTimeout(r),r=setTimeout(()=>{r=null,!n&&o&&e.apply(i,o)},t),l&&e.apply(this,a)};return s.cancel=()=>{r&&clearTimeout(r),r=null,o=null},s.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(i,o))},s}function co(e,t=250){let n=0,r=null,o=null,i=function(...s){let a=Date.now();o=s;let l=t-(a-n);l<=0?(r&&(clearTimeout(r),r=null),n=a,e.apply(this,s)):r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&e.apply(this,o)},l))};return i.cancel=()=>{r&&clearTimeout(r),r=null},i.flush=()=>{r&&o&&(clearTimeout(r),r=null,e.apply(null,o))},i}function sh(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function ah(e,t=(...n)=>JSON.stringify(n)){let n=new Map,r=function(...o){let i=t(...o);if(n.has(i))return n.get(i);let s=e.apply(this,o);return n.set(i,s),s};return r.cache=n,r}function lo(e){if(e===null||typeof e!="object")return e;if(typeof structuredClone=="function")try{return structuredClone(e)}catch(n){}if(Array.isArray(e))return e.map(n=>lo(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,lo(r)]));if(e instanceof Set)return new Set([...e].map(n=>lo(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=lo(r);return t}function Pi(e,...t){for(let n of t)if(n)for(let[r,o]of Object.entries(n)){let i=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&i&&typeof i=="object"&&!Array.isArray(i)?e[r]=Pi({...i},o):e[r]=o}return e}function lh(e,t){let n={},r=typeof t=="function"?t:o=>o==null?void 0:o[t];for(let o of e){let i=String(r(o));(n[i]||(n[i]=[])).push(o)}return n}function ch(e,t){if(!t)return[...new Set(e)];let n=typeof t=="function"?t:i=>i==null?void 0:i[t],r=new Set,o=[];for(let i of e){let s=n(i);r.has(s)||(r.add(s),o.push(i))}return o}function dh(e,t=10){if(t<1)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function uh(e,t,n="asc"){let r=typeof t=="function"?t:i=>i==null?void 0:i[t],o=n==="desc"?-1:1;return[...e].sort((i,s)=>{let a=r(i),l=r(s);return a==null&&l==null?0:a==null?1:l==null?-1:typeof a=="string"&&typeof l=="string"?a.localeCompare(l,void 0,{numeric:!0})*o:(a>l?1:a<l?-1:0)*o})}function uo(e,t,n){let r=t.split("."),o=e;for(let i of r){if(o==null)return n;o=o[i]}return o!=null?o:n}function fh(e,t,n){let r=t.split("."),o=e;for(let i=0;i<r.length-1;i++){let s=r[i];(typeof o[s]!="object"||o[s]===null)&&(o[s]=/^\d+$/.test(r[i+1])?[]:{}),o=o[s]}o[r[r.length-1]]=n}function ph(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function mh(e){return e[Math.floor(Math.random()*e.length)]}function vh(e,t="-"){return String(e).normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,t).replace(new RegExp(`\\${t}{2,}`,"g"),t).replace(new RegExp(`^\\${t}|\\${t}$`,"g"),"")}function Ni(e,t=100,n="..."){let r=String(e!=null?e:"");return r.length<=t?r:r.slice(0,Math.max(0,t-n.length)).trimEnd()+n}function yu(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function fo(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>yu(t.toLowerCase()))}function V(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function hh(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var ur="pt-BR",xu="BRL";function Hi(e,t){e&&(ur=e),t&&(xu=t)}function Qa(e,t={}){var r,o;let n=typeof e=="string"?parseFloat(e):e;return n==null||Number.isNaN(n)?"":new Intl.NumberFormat((r=t.locale)!=null?r:ur,{style:"currency",currency:(o=t.currency)!=null?o:xu}).format(n)}function Ja(e,t={}){let n=typeof e=="string"?parseFloat(e):e;if(n==null||Number.isNaN(n))return"";let{locale:r,...o}=t;return new Intl.NumberFormat(r!=null?r:ur,o).format(n)}function Za(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:ur;if(typeof t=="object")return new Intl.DateTimeFormat(o,t).format(r);let i={short:{day:"2-digit",month:"2-digit",year:"numeric"},long:{day:"2-digit",month:"long",year:"numeric"},full:{dateStyle:"full"},time:{hour:"2-digit",minute:"2-digit"},datetime:{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}};if(i[t])return new Intl.DateTimeFormat(o,i[t]).format(r);let s=a=>String(a).padStart(2,"0");return t.replace(/YYYY/g,String(r.getFullYear())).replace(/YY/g,String(r.getFullYear()).slice(-2)).replace(/MM/g,s(r.getMonth()+1)).replace(/DD/g,s(r.getDate())).replace(/HH/g,s(r.getHours())).replace(/mm/g,s(r.getMinutes())).replace(/ss/g,s(r.getSeconds()))}function el(e,t){let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return"";let r=n.getTime()-Date.now(),o=Math.abs(r),i=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]],s=new Intl.RelativeTimeFormat(t!=null?t:ur,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function gh(e,t=1){let n=Number(e);if(!n||Number.isNaN(n))return"0 B";let r=["B","KB","MB","GB","TB","PB"],o=Math.min(Math.floor(Math.log(Math.abs(n))/Math.log(1024)),r.length-1);return`${(n/1024**o).toFixed(o===0?0:t)} ${r[o]}`}function bh(e,t=0,n){return new Intl.NumberFormat(n!=null?n:ur,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Di=typeof window!="undefined"&&typeof window.document!="undefined";function dr(e){if(!Di||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var Te={get touch(){return Di&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return dr("(max-width: 767px)")},get tablet(){return dr("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return dr("(min-width: 1024px)")},get online(){return!Di||navigator.onLine},get reducedMotion(){return dr("(prefers-reduced-motion: reduce)")},get darkMode(){return dr("(prefers-color-scheme: dark)")}};var He=class extends Error{constructor(n,r,o,i){super(n);H(this,"response",r);H(this,"config",o);H(this,"cause",i);this.name="HttpError"}get status(){var n,r;return(r=(n=this.response)==null?void 0:n.status)!=null?r:0}get isNetworkError(){return!this.response}},Ye={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Oi=[],Ii=[],po=[],mo=new Map;function wu(e){var t;return`${(t=e.method)!=null?t:"GET"} ${pr(e)}`}function yh(e){if(!e){mo.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...mo.keys()])t(n)&&mo.delete(n)}var Eu="voodoo:offline-queue";function nl(){try{return JSON.parse(localStorage.getItem(Eu)||"[]")}catch(e){return[]}}function rl(e){try{localStorage.setItem(Eu,JSON.stringify(e))}catch(t){}}function xh(e){var n,r;if(typeof localStorage=="undefined")return;let t=nl();t.push({url:pr(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),rl(t)}async function Tu(){if(typeof localStorage=="undefined")return 0;let e=nl();if(!e.length)return 0;rl([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await un({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=nl();rl([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Tu()});function pr(e){let t=e.url,n=Ye.baseURL;if(n&&!/^https?:\/\//i.test(t)&&!t.startsWith("//")&&(t=`${n.replace(/\/$/,"")}/${t.replace(/^\//,"")}`),e.params){let r=new URLSearchParams;for(let[i,s]of Object.entries(e.params))s==null||s===""||r.append(i,String(s));let o=r.toString();o&&(t+=(t.includes("?")?"&":"?")+o)}return t}function Lu(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${Ye.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function wh(e,t){if(e!=null)return typeof FormData!="undefined"&&e instanceof FormData||typeof Blob!="undefined"&&e instanceof Blob||typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams||typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer||typeof e=="string"?e:(t["Content-Type"]||(t["Content-Type"]="application/json"),JSON.stringify(e))}async function kh(e,t){if(e.status===204||e.status===205)return null;let n=e.headers.get("content-type")||"";switch(t){case"json":return e.json();case"text":return e.text();case"blob":return e.blob();case"arrayBuffer":return e.arrayBuffer();case"formData":return e.formData();default:if(n.includes("application/json")||n.includes("+json")){let r=await e.text();return r?JSON.parse(r):null}return e.text()}}var Eh=new Set(["GET","HEAD","OPTIONS"]);function Th(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Lh(e,t,n,r){var o;return Eh.has(e)||t.retryUnsafe===!0||Th(n)?!0:(((o=t.retry)!=null?o:0)>0&&oo(`http:retry-unsafe:${e} ${r}`,`retry ignored on ${e} ${r}: retrying a method that changes state may apply the same operation twice if the response is lost in transit. Allow with retryUnsafe: true or send an Idempotency-Key header.`),!1)}async function un(e){var d,u,f,p,m;let t={method:"GET",timeout:Ye.timeout,retry:Ye.retry,retryDelay:Ye.retryDelay,credentials:Ye.credentials,responseType:"auto",...e,headers:{...Ye.headers,...e.headers}};for(let h of Oi)t=await h(t);let n=((d=t.method)!=null?d:"GET").toUpperCase();if(t.cache&&n==="GET"){let h=mo.get(wu(t));if(h&&h.expires>Date.now())return h.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return xh(t),{data:null,status:0,statusText:"offline-queued",headers:new Headers,ok:!0,raw:new Response(null,{status:202}),config:t};let r={...t.headers};if(n!=="GET"&&n!=="HEAD"){let h=Lu();h&&!r[Ye.csrfHeader]&&(r[Ye.csrfHeader]=h)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=wh(t.body,r),i=pr(t),s=Lh(n,t,r,i)?((u=t.retry)!=null?u:0)+1:1,a;for(let h=0;h<s;h++){let v=new AbortController,g=t.signal,b=null;g&&(g.aborted?v.abort(g.reason):(b=()=>v.abort(g.reason),g.addEventListener("abort",b,{once:!0})));let y=()=>{b&&g&&g.removeEventListener("abort",b),b=null},T=t.timeout&&t.timeout>0?setTimeout(()=>v.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let E=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:v.signal});T&&clearTimeout(T),y();let C={data:await kh(E,t.responseType),status:E.status,statusText:E.statusText,headers:E.headers,ok:E.ok,raw:E,config:t};if(!E.ok){if(E.status>=500&&h<s-1){await ku(((f=t.retryDelay)!=null?f:500)*2**h);continue}let R=new He(`Request failed with status ${E.status}`,C,t);for(let ce of po)ce(R);throw R}for(let R of Ii)C=await R(C);return t.cache&&n==="GET"&&mo.set(wu(t),{expires:Date.now()+t.cache,value:C}),C}catch(E){if(T&&clearTimeout(T),y(),E instanceof He)throw E;if(a=E,(E==null?void 0:E.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(h<s-1){await ku(((m=t.retryDelay)!=null?m:500)*2**h);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new He(l,void 0,t,a);for(let h of po)h(c);throw c}function ku(e){return new Promise(t=>setTimeout(t,e))}async function fr(e){return(await un(e)).data}var Le={defaults:Ye,get(e,t={}){return fr({...t,url:e,method:"GET"})},post(e,t,n={}){return fr({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return fr({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return fr({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return fr({...t,url:e,method:"DELETE"})},head(e,t={}){return fr({...t,url:e,method:"HEAD"})},request:un,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=pr({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[d,u]of Object.entries({...Ye.headers,...n.headers}))d.toLowerCase()!=="content-type"&&i.setRequestHeader(d,u);let a=Lu();a&&i.setRequestHeader(Ye.csrfHeader,a),i.upload.addEventListener("progress",d=>{var u;d.lengthComputable&&((u=n.onProgress)==null||u.call(n,Math.round(d.loaded/d.total*100),d.loaded,d.total))}),i.addEventListener("load",()=>{let d=i.getResponseHeader("content-type")||"",u=i.responseText;if(d.includes("json"))try{u=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(u):o(new He(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new He("Network failure during upload"))),i.addEventListener("abort",()=>o(new He("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(pr({url:e}));return n.addEventListener("message",r=>{var i;let o=r.data;try{o=JSON.parse(r.data)}catch(s){}(i=t.message)==null||i.call(t,o,r)}),t.error&&n.addEventListener("error",t.error),n},async stream(e,t,n={}){var a;let r=await fetch(pr({url:e,params:n.params}),{headers:{...Ye.headers,...n.headers},signal:n.signal});if(!r.body)return;let o=r.body.getReader(),i=new TextDecoder,s="";for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=i.decode(c,{stream:!0});let d=s.split(`
|
|
62
|
+
`);s=(a=d.pop())!=null?a:"";for(let u of d)u.trim()&&t(u)}s.trim()&&t(s)},interceptors:{request:{use(e){return Oi.push(e),()=>{let t=Oi.indexOf(e);t>-1&&Oi.splice(t,1)}}},response:{use(e){return Ii.push(e),()=>{let t=Ii.indexOf(e);t>-1&&Ii.splice(t,1)}}},error:{use(e){return po.push(e),()=>{let t=po.indexOf(e);t>-1&&po.splice(t,1)}}}},setHeader(e,t){t===null?delete Ye.headers[e]:Ye.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){Ye.baseURL=e},clearCache:yh,flushOfflineQueue:Tu,parseDuration:ie};Be();var Mh=`
|
|
63
63
|
.v-toaster{position:fixed;z-index:var(--v-z-toast,1100);display:flex;flex-direction:column;gap:10px;padding:16px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
|
|
64
64
|
.v-toaster[data-pos^="top"]{top:0}
|
|
65
65
|
.v-toaster[data-pos^="bottom"]{bottom:0;flex-direction:column-reverse}
|
|
@@ -104,7 +104,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
104
104
|
border-top-color:var(--v-primary,#6D3BF5);animation:v-spin .7s linear infinite}
|
|
105
105
|
@keyframes v-spin{to{transform:rotate(360deg)}}
|
|
106
106
|
@media (prefers-reduced-motion: reduce){.v-toast{transition:none}}
|
|
107
|
-
`,th={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Ur=new Map,Ut={duration:4e3,position:"top-right",max:6};function nh(e){ge(),Z("toast",eh);let t=Ur.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),Ur.set(e,t)),t}function fn(e){var f,p,m,h;let t=(f=e.position)!=null?f:Ut.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:Ut.duration,o=nh(t),i=le("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite"),s.setAttribute("aria-atomic","true");let a=!1,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),Ur.delete(t))},220))},d=v=>{var x,T,E,C;let g=(x=v.type)!=null?x:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let D=document.createElement("span");D.className="v-toast-icon",D.setAttribute("aria-hidden","true"),D.textContent=(T=th[g])!=null?T:"",s.appendChild(D);let A=document.createElement("div");A.className="v-toast-body";let se=document.createElement("div");if(se.className="v-toast-title",se.textContent=(E=v.title)!=null?E:"",A.appendChild(se),v.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=v.description,A.appendChild(O)}if(s.appendChild(A),v.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=v.action.label,O.addEventListener("click",()=>{var me;(me=v.action)==null||me.onClick(),c()}),s.appendChild(O)}if(v.closable!==!1&&g!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="×",O.addEventListener("click",c),s.appendChild(O)}}let b=(C=v.duration)!=null?C:r;if(b>0){let D=document.createElement("div");D.className="v-toast-bar",D.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(D)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>Ut.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(Ut.duration)}}}function Kn(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var st=Object.assign((e,t={})=>fn({...Kn(e,"default"),...t}),{success:(e,t={})=>fn({...Kn(e,"success"),...t}),error:(e,t={})=>fn({...Kn(e,"error"),...t}),warning:(e,t={})=>fn({...Kn(e,"warning"),...t}),info:(e,t={})=>fn({...Kn(e,"info"),...t}),loading:(e,t={})=>fn({...Kn(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=fn({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:Ut.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:Ut.duration}),s}},clear(){for(let[e,t]of Ur)t.remove(),Ur.delete(e)},configure(e){Object.assign(Ut,e)},settings:Ut});de();function nu(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(i){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var fe=nu(()=>typeof localStorage!="undefined"?localStorage:void 0),ui=nu(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),fi={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},_t={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},Yn=new Map,pi={set(e,t,n=0){return Yn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=Yn.get(e);return n?n.expires<Date.now()?(Yn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){Yn.delete(e)},clear(){Yn.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return Yn.size}},Sa="voodoo:theme",Ca=null,di=Ge(0),mt={get current(){var e,t;return di.value,(t=(e=fe.get(Sa))!=null?e:Ca)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){Ca=e,fe.set(Sa,e),di.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return Ca!==null||fe.get(Sa)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{di.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{di.value++,this.current==="system"&&this.apply()}))}};var Qe=X({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function Aa(){typeof window!="undefined"&&(Qe.width=window.innerWidth,Qe.height=window.innerHeight,Qe.mobile=window.innerWidth<768,Qe.tablet=window.innerWidth>=768&&window.innerWidth<1024,Qe.desktop=window.innerWidth>=1024,Qe.portrait=window.innerHeight>=window.innerWidth,Qe.landscape=!Qe.portrait)}var Wt=X({online:!0,type:"unknown",saveData:!1,slow:!1});function mi(){var t;if(typeof navigator=="undefined")return;Wt.online=navigator.onLine;let e=navigator.connection;e&&(Wt.type=(t=e.effectiveType)!=null?t:"unknown",Wt.saveData=!!e.saveData,Wt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var vi={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},ru=!1;function ou(){var t,n;if(ru||(ru=!0,H("$el",r=>r.el),H("$refs",r=>r.allRefs),H("$data",r=>r.data),H("$root",r=>r.root.data),H("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),H("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),H("$store",()=>$t),H("$http",()=>he),H("$toast",()=>st),H("$clipboard",()=>vi),H("$storage",()=>fe),H("$session",()=>ui),H("$cookie",()=>fi),H("$cache",()=>pi),H("$url",()=>_t),H("$theme",()=>mt),H("$device",()=>ve),H("$screen",()=>Qe),H("$network",()=>Wt),H("$nextTick",()=>ft),H("$watch",r=>(o,i)=>Ie(()=>q(o,r,"$watch"),i)),H("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),H("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;Aa(),mi();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(Aa)}),window.addEventListener("orientationchange",Aa),window.addEventListener("online",mi),window.addEventListener("offline",mi),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",mi)}de();var iu=new WeakMap;function rh(e){var o,i,s;let t=(i=(o=fa())!=null?o:e.el)!=null?i:e,n=iu.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},iu.set(t,n));let r=(s=fa())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;Be(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Pn(l.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function hi(e,t){let n=rh(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Pn(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function su(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function au(e){return Array.isArray(e)?e.slice():null}function oh(e,t){let n=hi(e,"state");return n.value===void 0&&(n.value=Ge(t)),n.value}function ih(e,t,n){let r=hi(e,"effect"),o=au(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||su(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=Pe(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function sh(e,t,n){let r=hi(e,"memo"),o=au(n);return o?(r.value?su(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Ge(t()),r.deps=o),r.value):(r.value||(r.value=an(t)),r.value)}function ah(e,t){let n=hi(e,"ref");return n.value||(n.value=Rr({current:t})),n.value}function lh(e,t){return t!==void 0&&!(e in $t)&&ni(e,t),$t[e]}function lu(){Hn("useState",e=>t=>oh(e,t)),Hn("useEffect",e=>(t,n)=>ih(e,t,n)),Hn("useMemo",e=>(t,n)=>sh(e,t,n)),Hn("useRef",e=>t=>ah(e,t)),Hn("useContext",()=>(e,t)=>lh(e,t))}de();function Ra(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function $a(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function gi(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=X({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,f,p;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await he.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(d=t.timeout)!=null?d:he.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=Ra(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof Ee&&(f=$a(m))!=null?f:m.message;s.error={name:"ResourceError",message:h},(p=t.onError)==null||p.call(t,m,h)}finally{l.signal.aborted||(s.loading=!1),o===l&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}Ae();Ae();var cu=`
|
|
107
|
+
`,Sh={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},vo=new Map,fn={duration:4e3,position:"top-right",max:6};function Ah(e){Me(),ae("toast",Mh);let t=vo.get(e);return t&&t.isConnected||(t=document.createElement("div"),t.className="v-toaster",t.setAttribute("data-pos",e),t.setAttribute("role","region"),t.setAttribute("aria-label","Notifications"),document.body.appendChild(t),vo.set(e,t)),t}function Dn(e){var f,p,m,h;let t=(f=e.position)!=null?f:fn.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:fn.duration,o=Ah(t),i=ge("toast-"),s=document.createElement("div");s.className="v-toast",s.id=i,s.setAttribute("data-type",n),s.setAttribute("role",n==="error"?"alert":"status"),s.setAttribute("aria-live",n==="error"?"assertive":"polite"),s.setAttribute("aria-atomic","true");let a=!1,l=null,c=()=>{a||(a=!0,l&&clearTimeout(l),s.classList.add("v-out"),s.classList.remove("v-in"),setTimeout(()=>{var v;s.remove(),(v=e.onClose)==null||v.call(e),o.children.length||(o.remove(),vo.delete(t))},220))},d=v=>{var y,T,E,A;let g=(y=v.type)!=null?y:n;if(s.setAttribute("data-type",g),v.html)s.innerHTML=v.html;else{s.textContent="";let C=document.createElement("span");C.className="v-toast-icon",C.setAttribute("aria-hidden","true"),C.textContent=(T=Sh[g])!=null?T:"",s.appendChild(C);let R=document.createElement("div");R.className="v-toast-body";let ce=document.createElement("div");if(ce.className="v-toast-title",ce.textContent=(E=v.title)!=null?E:"",R.appendChild(ce),v.description){let O=document.createElement("div");O.className="v-toast-desc",O.textContent=v.description,R.appendChild(O)}if(s.appendChild(R),v.action){let O=document.createElement("button");O.type="button",O.className="v-toast-action",O.textContent=v.action.label,O.addEventListener("click",()=>{var be;(be=v.action)==null||be.onClick(),c()}),s.appendChild(O)}if(v.closable!==!1&&g!=="loading"){let O=document.createElement("button");O.type="button",O.className="v-toast-close",O.setAttribute("aria-label","Close notification"),O.innerHTML="×",O.addEventListener("click",c),s.appendChild(O)}}let b=(A=v.duration)!=null?A:r;if(b>0){let C=document.createElement("div");C.className="v-toast-bar",C.style.animation=`v-toast-bar ${b}ms linear forwards`,s.appendChild(C)}};for(d(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>fn.max;)(h=o.firstElementChild)==null||h.remove();let u=v=>{l&&clearTimeout(l),v>0&&(l=setTimeout(c,v))};return u(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>u(r)),{id:i,close:c,update(v){var g;d({...e,...v}),v.duration!==void 0?u(v.duration):((g=v.type)!=null?g:n)!=="loading"&&u(fn.duration)}}}function mr(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Lt=Object.assign((e,t={})=>Dn({...mr(e,"default"),...t}),{success:(e,t={})=>Dn({...mr(e,"success"),...t}),error:(e,t={})=>Dn({...mr(e,"error"),...t}),warning:(e,t={})=>Dn({...mr(e,"warning"),...t}),info:(e,t={})=>Dn({...mr(e,"info"),...t}),loading:(e,t={})=>Dn({...mr(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=Dn({title:(r=t.loading)!=null?r:"Loading...",type:"loading",duration:0});try{let s=await e;return n.update({title:typeof t.success=="function"?t.success(s):(o=t.success)!=null?o:"Done",type:"success",duration:fn.duration}),s}catch(s){throw n.update({title:typeof t.error=="function"?t.error(s):(i=t.error)!=null?i:"Something went wrong",type:"error",duration:fn.duration}),s}},clear(){for(let[e,t]of vo)t.remove(),vo.delete(e)},configure(e){Object.assign(fn,e)},settings:fn});xe();function Cu(e,t=""){let n=r=>t+r;return{get(r,o){var i;try{let s=(i=e())==null?void 0:i.getItem(n(r));if(s==null)return o;try{return JSON.parse(s)}catch(a){return s}}catch(s){return o}},set(r,o){var i;try{return(i=e())==null||i.setItem(n(r),typeof o=="string"?o:JSON.stringify(o)),!0}catch(s){return!1}},remove(r){var o;try{(o=e())==null||o.removeItem(n(r))}catch(i){}},clear(){try{let r=e();if(!r)return;if(!t){r.clear();return}for(let o of Object.keys(r))o.startsWith(t)&&r.removeItem(o)}catch(r){}},has(r){var o;try{return((o=e())==null?void 0:o.getItem(n(r)))!==null}catch(i){return!1}},keys(){try{let r=e();return r?Object.keys(r).filter(o=>o.startsWith(t)).map(o=>o.slice(t.length)):[]}catch(r){return[]}}}}var ke=Cu(()=>typeof localStorage!="undefined"?localStorage:void 0),zi=Cu(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Bi={get(e){if(typeof document=="undefined")return;let t=`${encodeURIComponent(e)}=`;for(let n of document.cookie.split("; "))if(n.startsWith(t))return decodeURIComponent(n.slice(t.length))},set(e,t,n={}){var o,i;if(typeof document=="undefined")return;let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(n.expires!==void 0){let s=typeof n.expires=="number"?new Date(Date.now()+n.expires*864e5):n.expires;r+=`; expires=${s.toUTCString()}`}r+=`; path=${(o=n.path)!=null?o:"/"}`,n.domain&&(r+=`; domain=${n.domain}`),n.secure&&(r+="; secure"),r+=`; samesite=${(i=n.sameSite)!=null?i:"Lax"}`,document.cookie=r},remove(e,t={}){this.set(e,"",{...t,expires:-1})},has(e){return this.get(e)!==void 0}},pn={get(e,t){var n;return typeof location=="undefined"?t:(n=new URLSearchParams(location.search).get(e))!=null?n:t},all(){return typeof location=="undefined"?{}:Object.fromEntries(new URLSearchParams(location.search))},set(e,t,n=!0){if(typeof location=="undefined")return;let r=new URL(location.href);t===null||t===""?r.searchParams.delete(e):r.searchParams.set(e,String(t)),history[n?"replaceState":"pushState"]({},"",r.toString())},remove(e,t=!0){this.set(e,null,t)},merge(e,t=!0){if(typeof location=="undefined")return;let n=new URL(location.href);for(let[r,o]of Object.entries(e))o===null||o===""?n.searchParams.delete(r):n.searchParams.set(r,String(o));history[t?"replaceState":"pushState"]({},"",n.toString())}},vr=new Map,ji={set(e,t,n=0){return vr.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=vr.get(e);return n?n.expires<Date.now()?(vr.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){vr.delete(e)},clear(){vr.clear()},async remember(e,t,n){let r=this.get(e);if(r!==void 0)return r;let o=await n();return this.set(e,o,t),o},get size(){return vr.size}},ol="voodoo:theme",il=null,Fi=mt(0),Pt={get current(){var e,t;return Fi.value,(t=(e=ke.get(ol))!=null?e:il)!=null?t:"system"},get resolved(){let e=this.current;if(e!=="system")return e;if(typeof document!="undefined"){let t=document.documentElement.getAttribute("data-theme");if(t==="light"||t==="dark")return t}return typeof matchMedia=="undefined"?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},set(e){il=e,ke.set(ol,e),Fi.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return il!==null||ke.get(ol)!=null},apply(){if(typeof document=="undefined"||!this.chosen)return;let e=this.current,t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e),t.style.colorScheme=this.resolved,document.dispatchEvent(new CustomEvent("voodoo:theme",{detail:{theme:e,resolved:this.resolved}}))},init(){typeof document!="undefined"&&(this.apply(),typeof MutationObserver!="undefined"&&new MutationObserver(()=>{Fi.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Fi.value++,this.current==="system"&&this.apply()}))}};var vt=ee({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function sl(){typeof window!="undefined"&&(vt.width=window.innerWidth,vt.height=window.innerHeight,vt.mobile=window.innerWidth<768,vt.tablet=window.innerWidth>=768&&window.innerWidth<1024,vt.desktop=window.innerWidth>=1024,vt.portrait=window.innerHeight>=window.innerWidth,vt.landscape=!vt.portrait)}var mn=ee({online:!0,type:"unknown",saveData:!1,slow:!1});function qi(){var t;if(typeof navigator=="undefined")return;mn.online=navigator.onLine;let e=navigator.connection;e&&(mn.type=(t=e.effectiveType)!=null?t:"unknown",mn.saveData=!!e.saveData,mn.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var Vi={async copy(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}},async read(){try{return await navigator.clipboard.readText()}catch(e){return""}}},Ru=!1;function $u(){var t,n;if(Ru||(Ru=!0,F("$el",r=>r.el),F("$refs",r=>r.allRefs),F("$data",r=>r.data),F("$root",r=>r.root.data),F("$parent",r=>{var o,i;return(i=(o=r.parent)==null?void 0:o.data)!=null?i:null}),F("$self",r=>{var o,i;return(i=(o=r.owner)==null?void 0:o.component)!=null?i:r.data}),F("$store",()=>Qt),F("$http",()=>Le),F("$toast",()=>Lt),F("$clipboard",()=>Vi),F("$storage",()=>ke),F("$session",()=>zi),F("$cookie",()=>Bi),F("$cache",()=>ji),F("$url",()=>pn),F("$theme",()=>Pt),F("$device",()=>Te),F("$screen",()=>vt),F("$network",()=>mn),F("$nextTick",()=>$t),F("$watch",r=>(o,i)=>Ze(()=>Y(o,r,"$watch"),i)),F("$dispatch",r=>(o,i)=>{var a;((a=r.el)!=null?a:document).dispatchEvent(new CustomEvent(o,{detail:i,bubbles:!0}))}),F("$log",()=>(...r)=>{console.log("[Voodoo]",...r)}),typeof window=="undefined"))return;sl(),qi();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(sl)}),window.addEventListener("orientationchange",sl),window.addEventListener("online",qi),window.addEventListener("offline",qi),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",qi)}xe();var Du=new WeakMap;function Ch(e){var o,i,s;let t=(i=(o=Va())!=null?o:e.el)!=null?i:e,n=Du.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},Du.set(t,n));let r=(s=Va())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;tt(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Zn(l.runner);a.slots.length=0})}if(!n.scheduled){n.scheduled=!0;let a=n;queueMicrotask(()=>{a.index=0,a.scheduled=!1})}return n}function Ui(e,t){let n=Ch(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Zn(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function Pu(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0;n<t.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function Nu(e){return Array.isArray(e)?e.slice():null}function Rh(e,t){let n=Ui(e,"state");return n.value===void 0&&(n.value=mt(t)),n.value}function $h(e,t,n){let r=Ui(e,"effect"),o=Nu(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||Pu(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=We(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function Dh(e,t,n){let r=Ui(e,"memo"),o=Nu(n);return o?(r.value?Pu(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=mt(t()),r.deps=o),r.value):(r.value||(r.value=Sn(t)),r.value)}function Ph(e,t){let n=Ui(e,"ref");return n.value||(n.value=to({current:t})),n.value}function Nh(e,t){return t!==void 0&&!(e in Qt)&&Ri(e,t),Qt[e]}function Hu(){nr("useState",e=>t=>Rh(e,t)),nr("useEffect",e=>(t,n)=>$h(e,t,n)),nr("useMemo",e=>(t,n)=>Dh(e,t,n)),nr("useRef",e=>t=>Ph(e,t)),nr("useContext",()=>(e,t)=>Nh(e,t))}xe();function al(e,t){if(!t)return e;let n=e;for(let r of t.split(".")){if(n==null)return;n=n[r]}return n}function ll(e){var n;let t=(n=e.response)==null?void 0:n.data;if(!t||typeof t!="object")return null;for(let r of["message","error","detail","msg"]){let o=t[r];if(typeof o=="string")return o}return null}function _i(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=ee({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,d,u,f,p;let a=n();if(!a)return;o==null||o.abort();let l=o=new AbortController;s.loading=!0,s.error=null;try{let m=await Le.request({url:a,method:(t.method||"GET").toUpperCase(),params:r(),headers:t.headers,cache:t.cache||void 0,retry:(c=t.retry)!=null?c:0,timeout:(d=t.timeout)!=null?d:Le.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=al(m.data,t.jsonPath),s.loaded=!0,(u=t.onSuccess)==null||u.call(t,s.data)}catch(m){if(l.signal.aborted)return;let h=m instanceof He&&(f=ll(m))!=null?f:m.message;s.error={name:"ResourceError",message:h},(p=t.onError)==null||p.call(t,m,h)}finally{l.signal.aborted||(s.loading=!1),o===l&&(o=null)}},set(a){s.data=a},stop(){o==null||o.abort(),o=null,s.loading=!1,i!==null&&(clearInterval(i),i=null)}});return t.poll&&t.poll>0&&(i=setInterval(()=>{(typeof document=="undefined"||document.visibilityState==="visible")&&s.reload()},t.poll)),t.manual||s.reload(),s}Be();Be();var Ou=`
|
|
108
108
|
.v-fade-enter-active,.v-fade-leave-active{transition:opacity .22s var(--v-ease,ease)}
|
|
109
109
|
.v-fade-enter-from,.v-fade-leave-to{opacity:0}
|
|
110
110
|
|
|
@@ -126,7 +126,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
126
126
|
@media (prefers-reduced-motion: reduce){
|
|
127
127
|
[class*="-enter-active"],[class*="-leave-active"]{transition-duration:.01ms !important}
|
|
128
128
|
}
|
|
129
|
-
`;function du(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function Xn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function Gn(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function uu(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function fu(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function _r(e,t={}){Z("transitions",cu);let n=du(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Xn(e,n.enterFrom),Xn(e,n.enterActive),fu(()=>{var s;Gn(e,n.enterFrom),Xn(e,n.enterTo);let o=(s=t.duration)!=null?s:uu(e),i=()=>{Gn(e,n.enterActive),Gn(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Wr(e,t={}){Z("transitions",cu);let n=du(t);return ve.reducedMotion?Promise.resolve():new Promise(r=>{Xn(e,n.leaveFrom),Xn(e,n.leaveActive),fu(()=>{var s;Gn(e,n.leaveFrom),Xn(e,n.leaveTo);let o=(s=t.duration)!=null?s:uu(e),i=()=>{Gn(e,n.leaveActive),Gn(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function pn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function mn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function Qn(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function Jn(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function bi(e){let t=document;typeof t.startViewTransition=="function"&&!ve.reducedMotion?t.startViewTransition(e):e()}de();ce();function ch(e,t,n){try{let o={t:"assign",op:"=",target:ze(e),value:{t:"lit",v:n}};P(o,t)}catch(r){W(r,`assignment in "${e}"`)}}function gu(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?Q(e.getAttribute(`${t}duration`)):void 0}}y("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Lt(n());let r=e.firstChild;r&&r.nodeType===3&&sa(r)})});y("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Qo(t),n(()=>{let i=r();for(let s of Array.from(t.children))Y(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))ne(s,o)})});y("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=gu(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,_r(e,i)):Wr(e,i).then(()=>{e.style.display="none"})})});y("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=w.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(w.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)aa(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),sa(p.template);let l=gu(e),c=-1,d=[],u=()=>{let p=d;if(d=[],!p.length)return;let m=()=>{for(let h of p)Y(h),h.remove()};l&&p[0]instanceof HTMLElement?Wr(p[0],l).then(m):m()};r(()=>{let p=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||q(g.expression,t,"v-if")){p=v;break}}if(p===c||(c=p,u(),p===-1))return;let m=i[p].template,h=bu(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&_r(h[0],l)}),Be(e,u)},{priority:j.IF,terminal:!0});function bu(e,t,n,r){let o=t.parentNode;if(!o)return[];let i=[];if(e.tagName==="TEMPLATE"){let s=e.content.cloneNode(!0),a=Array.from(s.childNodes);o.insertBefore(s,t);for(let l of a)i.push(l),l.nodeType===1&&(Bt(l,n),ne(l,n))}else{let s=e.cloneNode(!0);i.push(s),Bt(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),ne(s,n))}return i}y("else-if",()=>{},{priority:j.IF,terminal:!0});y("else",()=>{},{priority:j.IF,terminal:!0});var dh=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;y("for",({el:e,scope:t,expression:n,effect:r})=>{var v;let o=dh.exec(n);if(!o){W(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(g=>g.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),f=document.createComment(w.devtools?` v-for: ${n} `:"");(v=e.parentNode)==null||v.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${d}for`),p.removeAttribute(":key"),p.removeAttribute(`${d}bind:key`),p.removeAttribute(`${d}key`),aa(e);let m=[];Be(f,()=>{for(let g of m)for(let b of g.nodes)Y(b),b.remove();m=[]}),r(()=>{var se,O,me;let g=q(s,t,"v-for"),b=uh(g,a,l,c),x=new Map;for(let ae of m)x.set(ae.key,ae);let T=[],E=new Set,C={fragment:document.createDocumentFragment(),pending:[]};b.forEach((ae,R)=>{let S=u?q(u,t.child(ae),":key"):`__index_${R}`;u&&E.has(S)&&fd(e,S,n);let B=x.get(S);if(B&&!E.has(S)){E.add(S);for(let[nn,An]of Object.entries(ae))B.data[nn]=An;T.push(B);return}let _e=t.reactiveChild(ae),We=bu(p,f,_e,C);E.add(S),T.push({key:S,scope:_e,nodes:We,data:_e.data})}),C.fragment.firstChild&&((se=f.parentNode)==null||se.insertBefore(C.fragment,f));for(let[ae,R]of C.pending)ne(ae,R);let D=new Set(T);for(let ae of m)if(!(E.has(ae.key)&&D.has(ae)))for(let R of ae.nodes)Y(R),R.remove();let A=f;for(let ae=T.length-1;ae>=0;ae--){let R=T[ae],S=R.nodes[R.nodes.length-1];if(S&&S.nextSibling!==A)for(let B of R.nodes)(O=f.parentNode)==null||O.insertBefore(B,A);A=(me=R.nodes[0])!=null?me:A}m=T})},{priority:j.FOR,terminal:!0});function uh(e,t,n,r){let o=[];if(Array.isArray(e))return e.forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o;if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var fh=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),ph=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),mh=/[\s\x00-\x1f]/g;function vh(e){let t=e.replace(mh,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function pu(e,t,n,r=!1,o=!1){if(t==="class")return yu(e,n);if(t==="style")return Da(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){cn(`:srcdoc refused in ${Ct(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(ph.has(t)&&typeof n=="string"&&vh(n)){cn(`value refused in :${t} of ${Ct(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){cn(`attribute "${t}" refused in ${Ct(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(fh.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var mu=new WeakMap;function yu(e,t){let n=mu.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),mu.set(e,n));let r=new Set(n);xu(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function xu(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)xu(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function Da(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Da(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}y("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,d]of Object.entries(l))pu(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{pu(e,t,o(),s,a)})},{priority:j.BIND});y("class",({el:e,effect:t,evaluate:n})=>{t(()=>yu(e,n()))});y("style",({el:e,effect:t,evaluate:n})=>{t(()=>Da(e,n()))});var vu={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},hh=["ctrl","shift","alt","meta"];function hu(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=ze(e),l=P(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){W(a,`event ${n.type} ("${e}")`)}}var gh={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},wu={hold(e,t,n,r){let o=Q(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])wu[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,f=d.clientY-s,p=40;(e==="left"?u<-p&&Math.abs(u)>Math.abs(f):e==="right"?u>p&&Math.abs(u)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(u):f>p&&Math.abs(f)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function ku(e,t,n,r,o,i){var p;let s=(p=gh[t])!=null?p:t,a=wu[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),hu(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let v of hh)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in vu||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=vu[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),hu(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=Ye(c,Q(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=zr(c,Q(u===!0?250:u,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}y("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&ku(e,t,n,r,o,i)});var bh=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of bh)y(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{ku(t,e,n,r,o,i)});y("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",d=a==="INPUT"&&l==="radio",u=a==="SELECT",f=u&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?Q(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?Q(e.getAttribute(`${w.prefix}debounce`),250):0,x=h||u||c||d||p?"change":"input",T=()=>{var C,D;let E;if(c){let A=q(t,n,"v-model");if(Array.isArray(A)){let se=s.value,O=[...A],me=O.indexOf(se);s.checked&&me===-1?O.push(se):!s.checked&&me>-1&&O.splice(me,1),E=O}else E=s.checked}else if(d){if(!s.checked)return;E=s.value}else if(f)E=Array.from(s.selectedOptions).map(A=>A.value);else if(p)E=r.single?(D=(C=s.files)==null?void 0:C[0])!=null?D:null:s.files;else if(E=s.value,g&&typeof E=="string"&&(E=E.trim()),v&&typeof E=="string"){let A=E===""?null:Number(E);E=A===null||Number.isNaN(A)?E:A}ch(t,n,E)};b>0&&(T=Ye(T,b)),s.addEventListener(x,T),i(()=>s.removeEventListener(x,T)),o(()=>{let E=q(t,n,"v-model");if(c){s.checked=Array.isArray(E)?E.includes(s.value):!!E;return}if(d){s.checked=String(E)===s.value;return}if(f){let D=Array.isArray(E)?E.map(String):[];for(let A of Array.from(s.options))A.selected=D.includes(A.value);return}if(p)return;let C=E==null?"":String(E);s.value!==C&&(s.value=C),u&&s.value!==C&&ft(()=>{s.value!==C&&(s.value=C)})})},{priority:j.MODEL});y("init",({el:e,expression:t,scope:n})=>{Se(()=>{let r=n.child({$el:e}),o=q(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:j.INIT});y("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:j.REF});y("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});y("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),i,s=!0;r(()=>{let a=o?q(o,n,"v-watch"):q(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),d=q(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});y("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});y("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Lt(r))});y("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){W(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:j.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])y(e,()=>{},{priority:j.TRANSITION});y("data",()=>{},{priority:j.DATA});y("component",()=>{},{priority:j.COMPONENT});de();ce();var Lu=()=>w.prefix;function V(e,t){return Te(e,`${Lu()}${t}`)}function Ha(e,t){return zt(e,`${Lu()}${t}`)}function yh(e,t){var s,a,l;let n=V(e,"target"),r=V(e,"loading"),o={},i=V(e,"headers");if(i){let c=q(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:V(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:V(e,"loading-class")||"v-loading",disableWhileLoading:Ha(e,"disable-loading"),confirmMessage:V(e,"confirm"),toastSuccess:V(e,"toast-success"),toastError:V(e,"toast-error"),onSuccess:V(e,"on-success"),onError:V(e,"on-error"),onComplete:V(e,"on-complete"),cacheMs:Q((s=V(e,"cache"))!=null?s:void 0,0),retry:Number((a=V(e,"retry"))!=null?a:0),timeout:Q((l=V(e,"timeout"))!=null?l:void 0,he.defaults.timeout),storeAs:V(e,"as"),jsonPath:V(e,"json-path"),templateSelector:V(e,"template"),offlineQueue:Ha(e,"offline-queue"),headers:o,redirect:V(e,"redirect"),scrollTo:V(e,"scroll-to")}}function Eu(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&ne(l,r)};switch(n){case"none":return;case"delete":Y(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);Y(e),e.replaceWith(a.content),o(l);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&ne(c,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))Y(a);e.innerHTML=t,o(e.childNodes)}}}function yi(e,t=0){if(e==null)return"";if(typeof e!="object")return I(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${I(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${yi(a[l],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${yi(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${I(r)}</dt><dd>${yi(o,t+1)}</dd>`).join("")}</dl>`:""}function xh(e,t,n,r){let o=document.querySelector(e);if(!o){W(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))Y(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&ne(u,d)}}var Pa=new WeakMap;async function Kr(e){var u,f,p,m,h;let{el:t,scope:n,method:r}=e,o=yh(t,n),i=Mt.has("confirm");if(o.confirmMessage&&!i&&!await wh(o.confirmMessage))return;(u=Pa.get(t))==null||u.abort();let s=new AbortController;Pa.set(t,s);let a=(f=o.target)!=null?f:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),Zn(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await he.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),g=Ra(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?xh(o.templateSelector,g,n,a):typeof g=="string"?Eu(a,g,o.swap,n):g!=null&&(kh(),Eu(a,yi(g),o.swap,n)),o.toastSuccess&&st.success(o.toastSuccess),o.onSuccess&&Na(o.onSuccess,n,t,{data:g,response:v}),Zn(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof Ee?(m=$a(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?st.error(o.toastError):o.onError||st.error(g),o.onError&&Na(o.onError,n,t,{error:v,message:g}),Zn(t,"voodoo:error",{error:v,message:g}),W(v,`request ${r} ${e.url}`)}finally{d(),Pa.delete(t),o.onComplete&&Na(o.onComplete,n,t,{}),Zn(t,"voodoo:complete",{})}}function Zn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Na(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=q(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function wh(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Tu=!1;function kh(){Tu||(Tu=!0,Promise.resolve().then(()=>(Ae(),tu)).then(({injectStyle:e})=>{e("json-render",`
|
|
129
|
+
`;function Iu(e){let t=e.name||"v-fade";return{enterFrom:e.enterFrom||`${t}-enter-from`,enterActive:e.enterActive||`${t}-enter-active`,enterTo:e.enterTo||`${t}-enter-to`,leaveFrom:e.leaveFrom||`${t}-leave-from`,leaveActive:e.leaveActive||`${t}-leave-active`,leaveTo:e.leaveTo||`${t}-leave-to`}}function hr(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function gr(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function Fu(e){let t=getComputedStyle(e),n=r=>Math.max(0,...r.split(",").map(o=>parseFloat(o)*(o.includes("ms")?1:1e3)||0));return Math.max(n(t.transitionDuration)+n(t.transitionDelay),n(t.animationDuration)+n(t.animationDelay))}function zu(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function ho(e,t={}){ae("transitions",Ou);let n=Iu(t);return Te.reducedMotion?Promise.resolve():new Promise(r=>{hr(e,n.enterFrom),hr(e,n.enterActive),zu(()=>{var s;gr(e,n.enterFrom),hr(e,n.enterTo);let o=(s=t.duration)!=null?s:Fu(e),i=()=>{gr(e,n.enterActive),gr(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function go(e,t={}){ae("transitions",Ou);let n=Iu(t);return Te.reducedMotion?Promise.resolve():new Promise(r=>{hr(e,n.leaveFrom),hr(e,n.leaveActive),zu(()=>{var s;gr(e,n.leaveFrom),hr(e,n.leaveTo);let o=(s=t.duration)!=null?s:Fu(e),i=()=>{gr(e,n.leaveActive),gr(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Pn(e,t=240){return new Promise(n=>{e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block");let r=e.scrollHeight;e.style.overflow="hidden",e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.height=`${r}px`}),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function Nn(e,t=240){return new Promise(n=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition=`height ${t}ms var(--v-ease, ease), padding ${t}ms var(--v-ease, ease)`,requestAnimationFrame(()=>{e.style.height="0px",e.style.paddingTop="0px",e.style.paddingBottom="0px"}),setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition"),n()},t+20)})}function br(e,t=220){return new Promise(n=>{e.style.opacity="0",e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display=""),e.style.transition=`opacity ${t}ms ease`,requestAnimationFrame(()=>{e.style.opacity="1"}),setTimeout(()=>{e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function yr(e,t=220){return new Promise(n=>{e.style.transition=`opacity ${t}ms ease`,e.style.opacity="0",setTimeout(()=>{e.style.display="none",e.style.removeProperty("transition"),e.style.removeProperty("opacity"),n()},t+20)})}function Wi(e){let t=document;typeof t.startViewTransition=="function"&&!Te.reducedMotion?t.startViewTransition(e):e()}xe();ye();function Hh(){return{on:!1,itemsVisited:0,keyEvaluations:0,prefixScanned:0,suffixScanned:0,middleReconciled:0,scopeAllocations:0,proxyWrites:0,arrayAllocations:0,keyMapLookups:0,domCreates:0,domRemoves:0,domMoves:0,domInserts:0,lisRuns:0,lisElements:0,paths:{}}}var j=Hh();function cl(e){j.paths[e]=(j.paths[e]||0)+1}function Oh(e,t,n){try{let o={t:"assign",op:"=",target:et(e),value:{t:"lit",v:n}};P(o,t)}catch(r){te(r,`assignment in "${e}"`)}}function Wu(e){let t=w.prefix,n=e.hasAttribute(`${t}transition`),r=e.hasAttribute(`${t}enter-class`)||e.hasAttribute(`${t}leave-class`)||e.hasAttribute(`${t}enter-active-class`)||e.hasAttribute(`${t}leave-active-class`);if(!n&&!r)return null;let o=e.getAttribute(`${t}transition`)||"fade";return{name:o.startsWith("v-")?o:`v-${o}`,enterFrom:e.getAttribute(`${t}enter-class`)||void 0,enterActive:e.getAttribute(`${t}enter-active-class`)||void 0,enterTo:e.getAttribute(`${t}enter-to-class`)||void 0,leaveFrom:e.getAttribute(`${t}leave-class`)||void 0,leaveActive:e.getAttribute(`${t}leave-active-class`)||void 0,leaveTo:e.getAttribute(`${t}leave-to-class`)||void 0,duration:e.hasAttribute(`${t}duration`)?ie(e.getAttribute(`${t}duration`)):void 0}}x("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Ut(n());let r=e.firstChild;r&&r.nodeType===3&&Ia(r)})});x("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;Li(t),n(()=>{let i=r();for(let s of Array.from(t.children))oe(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))ue(s,o)})});x("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=Wu(e);t(()=>{let s=!!n();if(o){o=!1,e.style.display=s?r:"none";return}if(!i){e.style.display=s?r:"none";return}s?(e.style.display=r,ho(e,i)):go(e,i).then(()=>{e.style.display="none"})})});x("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=w.prefix,i=[{expression:n,template:e}],s=e.nextElementSibling;for(;s;)if(s.hasAttribute(`${o}else-if`))i.push({expression:s.getAttribute(`${o}else-if`)||"false",template:s}),s=s.nextElementSibling;else if(s.hasAttribute(`${o}else`)){i.push({expression:null,template:s}),s=s.nextElementSibling;break}else break;let a=document.createComment(w.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)Fa(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),Ia(p.template);let l=Wu(e),c=-1,d=[],u=()=>{let p=d;if(d=[],!p.length)return;let m=()=>{for(let h of p)oe(h),h.remove()};l&&p[0]instanceof HTMLElement?go(p[0],l).then(m):m()};r(()=>{let p=-1;for(let v=0;v<i.length;v++){let g=i[v];if(g.expression===null||Y(g.expression,t,"v-if")){p=v;break}}if(p===c||(c=p,u(),p===-1))return;let m=i[p].template,h=Ku(m,a,t);d=h,l&&h[0]instanceof HTMLElement&&ho(h[0],l)}),tt(e,u)},{priority:_.IF,terminal:!0});function Ku(e,t,n){let r=t.parentNode;if(!r)return[];let o=[];if(e.tagName==="TEMPLATE"){let i=e.content.cloneNode(!0),s=Array.from(i.childNodes);r.insertBefore(i,t);for(let a of s)o.push(a),a.nodeType===1&&(Xt(a,n),ue(a,n))}else{let i=e.cloneNode(!0);j.on&&j.domCreates++,o.push(i),Xt(i,n),r.insertBefore(i,t),ue(i,n)}return o}x("else-if",()=>{},{priority:_.IF,terminal:!0});x("else",()=>{},{priority:_.IF,terminal:!0});var Ih=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/,Fh=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/,zh=[];function Bu(e,t){return e===t?!0:t!==null&&typeof t=="object"&&e===Ce(t)}function ju(e,t){return e===t||e!==e&&t!==t}function Bh(e){let t=e.length,n=new Int32Array(t),r=[];for(let a=0;a<t;a++){let l=e[a];if(l===0)continue;if(r.length===0){r.push(a);continue}let c=r[r.length-1];if(e[c]<l){n[a]=c,r.push(a);continue}let d=0,u=r.length-1;for(;d<u;){let f=d+u>>1;e[r[f]]<l?d=f+1:u=f}l<e[r[d]]&&(d>0&&(n[a]=r[d-1]),r[d]=a)}let o=r.length,i=new Int32Array(o),s=r[o-1];for(;o-- >0;)i[o]=s,s=n[s];return i}x("for",({el:e,scope:t,expression:n,effect:r})=>{var Gr;let o=Ih.exec(n);if(!o){te(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(S=>S.trim()).filter(Boolean),s=o[2],[a,l,c]=i,d=w.prefix,u=e.getAttribute(":key")||e.getAttribute(`${d}bind:key`)||e.getAttribute(`${d}key`),f=document.createComment(w.devtools?` v-for: ${n} `:"");(Gr=e.parentNode)==null||Gr.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${d}for`),p.removeAttribute(":key"),p.removeAttribute(`${d}bind:key`),p.removeAttribute(`${d}key`),Fa(e);let m=p.tagName==="TEMPLATE",h=!1,v=!1,g=null,b=null;if(u&&Fh.test(u)){let S=u.split(".");S[0]===a?S.length===1?h=!0:S.length===2?g=S[1]:b=S.slice(1):l&&S.length===1&&S[0]===l&&(v=!0)}let y=[],T=[],E=null,A=0,C=null,R=null,ce=0,O=[],be=[],Xe=S=>{if(E)return E[S];let N={[a]:T[S]};return l&&(N[l]=S),N},I=S=>{if(j.on&&j.keyEvaluations++,v||!u)return S;let N=E?E[S][a]:T[S];if(h)return N;if(g!==null)return N==null?void 0:N[g];if(b!==null){let z=N;for(let W=0;W<b.length;W++){if(z==null)return;z=z[b[W]]}return z}return C||(C=t.child({})),C.data=Xe(S),Y(u,C,":key")},$=(S,N)=>{let z=Ce(S.data);if(E){let G=E[N];for(let me in G)Bu(z[me],G[me])||(j.on&&j.proxyWrites++,S.data[me]=G[me]);return}let W=T[N];Bu(z[a],W)||(j.on&&j.proxyWrites++,S.data[a]=W),l!==void 0&&z[l]!==N&&(j.on&&j.proxyWrites++,S.data[l]=N)},K=(S,N,z,W)=>{if(S>=N)return;let G=f.parentNode;if(!G)return;if(be.push(O.length),m){for(let q=S;q<N;q++){let Ue=t.reactiveChild(Xe(q));j.on&&(j.scopeAllocations++,j.itemsVisited++);let Ge=Ku(p,z,Ue);W.push({key:I(q),scope:Ue,nodes:Ge,data:Ue.data})}return}let me=document.createDocumentFragment();for(let q=S;q<N;q++){let Ue=t.reactiveChild(Xe(q)),Ge=p.cloneNode(!0);Xt(Ge,Ue),me.appendChild(Ge),O.push([Ge,Ue]),W.push({key:I(q),scope:Ue,nodes:[Ge],data:Ue.data}),j.on&&(j.scopeAllocations++,j.domCreates++,j.itemsVisited++)}j.on&&j.domInserts++,G.insertBefore(me,z)},st=S=>{let N=S.nodes;for(let z=0;z<N.length;z++)j.on&&j.domRemoves++,oe(N[z]),N[z].remove()},at=(S,N)=>{let z=f.parentNode;if(!z)return;let W=S.nodes;if(W[W.length-1].nextSibling!==N)for(let G=0;G<W.length;G++)j.on&&j.domMoves++,z.insertBefore(W[G],N)},nn=S=>S<y.length?y[S].nodes[0]:f,rn=(S,N,z)=>{let W=z.length;if(N===0&&W===0)return;if(y.length===0){y=z;return}if(W===0){y.splice(S,N);return}if(W<=1024){y.splice(S,N,...z);return}let G=new Array(y.length-N+W),me=0;for(let q=0;q<S;q++)G[me++]=y[q];for(let q=0;q<W;q++)G[me++]=z[q];for(let q=S+N;q<y.length;q++)G[me++]=y[q];y=G},ri=()=>{for(let S=be.length-1;S>=0;S--){let N=be[S],z=S+1<be.length?be[S+1]:O.length;for(let W=N;W<z;W++)ue(O[W][0],O[W][1])}O.length=0,be.length=0},Z=0,Ae=0,Ne=0,oi=S=>{let N=ya(S,ce);if(!N)return!1;let z=y.length;Z=0,Ae=0,Ne=0;let W=z;for(let G=0;G<N.length;G++){let me=N[G],q=me.index,Ue=me.type===2?1:me.removed,Ge=me.type===2?1:me.added,on=q+Ue;G===0?(Z=q,Ae=on,Ne=q+Ge):on<=Ne?(q<Z&&(Z=q),Ne+=Ge-Ue):(q<Z&&(Z=q),Ae=on-Ne+Ae,Ne=q+Ge),Ae<Z&&(Ae=Z),Ne<Z&&(Ne=Z),W+=Ge-Ue}if(W!==A||Z>Ae||Z>Ne||Ae>z||Ne>A)return!1;if(j.on&&cl(N.length===0?"unchanged":"mutation"),l!==void 0&&Ae-Ne!==0)for(let G=Ne;G<A;G++)$(y[G-Ne+Ae],G);return!0},ia=()=>{let S=y.length,N=A,z=0,W=S<N?S:N;for(;z<W;){let q=y[z];if(!ju(q.key,I(z)))break;$(q,z),z++}j.on&&(j.prefixScanned+=z,j.itemsVisited+=z);let G=S-1,me=N-1;for(;G>=z&&me>=z;){let q=y[G];if(!ju(q.key,I(me)))break;$(q,me),G--,me--}if(j.on){let q=S-1-G;j.suffixScanned+=q,j.itemsVisited+=q,cl("scan")}Z=z,Ae=G+1,Ne=me+1},sa=()=>{let S=Ne-Z;if(Z>=Ae){if(S>0){let he=[];K(Z,Ne,nn(Z),he),rn(Z,0,he)}return}if(S===0){j.on&&(j.itemsVisited+=Ae-Z);for(let he=Z;he<Ae;he++)st(y[he]);rn(Z,Ae-Z,zh);return}j.on&&(j.arrayAllocations+=3,j.middleReconciled+=S,j.itemsVisited+=S+(Ae-Z));let N=new Map;for(let he=Z;he<Ne;he++){let _e=I(he);u&&N.has(_e)&&zd(e,_e,n),N.set(_e,he)}let z=new Int32Array(S),W=new Array(S),G=0,me=!1,q=0;for(let he=Z;he<Ae;he++){let _e=y[he];j.on&&j.keyMapLookups++;let ft=G>=S?void 0:N.get(_e.key);if(ft===void 0||W[ft-Z]!==void 0){st(_e);continue}z[ft-Z]=he+1,W[ft-Z]=_e,ft>=q?q=ft:me=!0,$(_e,ft),G++}let Ue=me?Bh(z):null;j.on&&me&&(j.lisRuns++,j.lisElements+=S);let Ge=Ue?Ue.length-1:-1,on=new Array(S),Qr=nn(Ae),Tn=-1;for(let he=S-1;he>=0;he--){let _e=Z+he,ft=W[he];if(ft===void 0){Tn<0&&(Tn=_e+1);continue}if(Tn>=0){let Jr=[];K(_e+1,Tn,Qr,Jr);for(let ii=0;ii<Jr.length;ii++)on[he+1+ii]=Jr[ii];Jr.length&&(Qr=Jr[0].nodes[0]),Tn=-1}on[he]=ft,me&&(Ge<0||he!==Ue[Ge])?at(ft,Qr):me&&Ge--,Qr=ft.nodes[0]}if(Tn>=0){let he=[];K(Z,Tn,Qr,he);for(let _e=0;_e<he.length;_e++)on[_e]=he[_e]}rn(Z,Ae-Z,on)};tt(f,()=>{for(let S of y)st(S);y=[],R=null,ce=0}),r(()=>{let S=Y(s,t,"v-for"),N=Ce(S),z=!1;if(Array.isArray(N)){lt(N,"length"),lt(N,kt),T=N,E=null,A=N.length;let W=ba(N);N===R&&u&&!v&&(z=oi(N)),R=N,ce=W}else E=jh(S,a,l,c),T=E,A=E.length,R=null,ce=0,j.on&&(j.arrayAllocations+=A+1);z||ia(),sa(),ri()})},{priority:_.FOR,terminal:!0});function jh(e,t,n,r){let o=[];if(typeof e=="number"){for(let i=1;i<=e;i++){let s={[t]:i};n&&(s[n]=i-1),o.push(s)}return o}return typeof e=="string"?(Array.from(e).forEach((i,s)=>{let a={[t]:i};n&&(a[n]=s),o.push(a)}),o):(e&&typeof e=="object"&&(e instanceof Map?Array.from(e.entries()):e instanceof Set?Array.from(e).map((s,a)=>[a,s]):Object.entries(e)).forEach(([s,a],l)=>{let c={[t]:a};n&&(c[n]=s),r&&(c[r]=l),o.push(c)}),o)}var qh=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Vh=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Uh=/[\s\x00-\x1f]/g;function _h(e){let t=e.replace(Uh,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function qu(e,t,n,r=!1,o=!1){if(t==="class")return Yu(e,n);if(t==="style")return dl(e,n);if(w.sanitizeUrls&&!o&&t==="srcdoc"){Cn(`:srcdoc refused in ${Kt(e)}: the value becomes a document with active script inside the iframe, the same way v-html becomes markup. If the content is trusted, write :srcdoc.dangerous="..."; to turn off this protection on the entire application, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(w.sanitizeUrls&&!r){if(Vh.has(t)&&typeof n=="string"&&_h(n)){Cn(`value refused in :${t} of ${Kt(e)}: "${n.slice(0,60)}" uses a scheme that executes code. Use an http(s) or relative address. To turn off this protection, set V.config.sanitizeUrls = false.`),e.removeAttribute(t);return}if(t.length>2&&/^on[a-z]/.test(t)){Cn(`attribute "${t}" refused in ${Kt(e)}: linking event by attribute creates an inline handler. Use @${t.slice(2)}="..." instead.`),e.removeAttribute(t);return}}if(r){e[t]=n;return}if(qh.has(t)){n===!1||n==null?e.removeAttribute(t):e.setAttribute(t,""),t in e&&(e[t]=!!n);return}if(t==="value"&&"value"in e){e.value=n==null?"":n;return}n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":String(n))}var Vu=new WeakMap;function Yu(e,t){let n=Vu.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),Vu.set(e,n));let r=new Set(n);Xu(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function Xu(e,t){if(e){if(typeof e=="string"){for(let n of e.split(/\s+/))n&&t.add(n);return}if(Array.isArray(e)){for(let n of e)Xu(n,t);return}if(typeof e=="object"){for(let[n,r]of Object.entries(e))if(r)for(let o of n.split(/\s+/))o&&t.add(o)}}}function dl(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)dl(e,n);return}for(let[n,r]of Object.entries(t)){if(r==null||r===!1){e.style.removeProperty(n);continue}let o=n.startsWith("--")?n:n.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`),i=String(r);o.startsWith("--"),e.style.setProperty(o,i)}}}x("bind",({el:e,arg:t,modifiers:n,effect:r,evaluate:o,expression:i})=>{if(!t){r(()=>{let l=o();if(l&&typeof l=="object")for(let[c,d]of Object.entries(l))qu(e,c,d)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{qu(e,t,o(),s,a)})},{priority:_.BIND});x("class",({el:e,effect:t,evaluate:n})=>{t(()=>Yu(e,n()))});x("style",({el:e,effect:t,evaluate:n})=>{t(()=>dl(e,n()))});var Uu={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Wh=["ctrl","shift","alt","meta"];function _u(e,t,n,r){let o=n.detail,i=n.__voodoo===!0,s=t.child({$event:i?o:n,$rawEvent:n,$el:r,$detail:o});try{let a=et(e),l=P(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){te(a,`event ${n.type} ("${e}")`)}}var Kh={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},Gu={hold(e,t,n,r){let o=ie(typeof n.duration=="string"&&n.duration||Object.keys(n).find(d=>/^[\d.]+(ms|s)?$/.test(d))||e.getAttribute(`${w.prefix}hold-duration`)||800,800),i=null,s=!1,a=d=>{s=!1,e.classList.add("v-holding"),e.style.setProperty("--v-hold-duration",`${o}ms`),i=setTimeout(()=>{s=!0,e.classList.remove("v-holding"),t(d)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=d=>{s&&(d.preventDefault(),d.stopPropagation(),s=!1)};e.addEventListener("pointerdown",a),e.addEventListener("pointerup",l),e.addEventListener("pointerleave",l),e.addEventListener("pointercancel",l),e.addEventListener("click",c,!0),r(()=>{l(),e.removeEventListener("pointerdown",a),e.removeEventListener("pointerup",l),e.removeEventListener("pointerleave",l),e.removeEventListener("pointercancel",l),e.removeEventListener("click",c,!0)})},outside(e,t,n,r){let o=i=>{e.isConnected&&(e===i.target||e.contains(i.target)||t(i))};document.addEventListener("click",o,!0),r(()=>document.removeEventListener("click",o,!0))},visible(e,t,n,r){var i,s;if(typeof IntersectionObserver=="undefined"){t(new CustomEvent("visible"));return}let o=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(t(new CustomEvent("visible",{detail:l})),n.repeat!==!0&&o.unobserve(e))},{threshold:Number((i=n.threshold)!=null?i:.1),rootMargin:String((s=n.margin)!=null?s:"0px")});o.observe(e),r(()=>o.disconnect())}};for(let e of["left","right","up","down"])Gu[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=d=>{a=!0,i=d.clientX,s=d.clientY},c=d=>{if(!a)return;a=!1;let u=d.clientX-i,f=d.clientY-s,p=40;(e==="left"?u<-p&&Math.abs(u)>Math.abs(f):e==="right"?u>p&&Math.abs(u)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(u):f>p&&Math.abs(f)>Math.abs(u))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:u,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function Qu(e,t,n,r,o,i){var p;let s=(p=Kh[t])!=null?p:t,a=Gu[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),_u(n,r,m,e)},o,i);return}let l=o.window?window:o.document||o.outside?document:e,c=m=>{if(!(o.self&&m.target!==e)&&!(o.outside&&(e===m.target||e.contains(m.target)||!e.isConnected))){if(m instanceof KeyboardEvent){for(let v of Wh)if(o[v]&&!m[`${v}Key`])return;let h=Object.keys(o).filter(v=>v in Uu||/^[a-z0-9]$/.test(v));if(h.length&&!h.some(g=>{let b=Uu[g];return b?b.includes(m.key):m.key.toLowerCase()===g}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),_u(n,r,m,e)}},d=o.debounce;d!==void 0&&(c=dt(c,ie(d===!0?250:d,250)));let u=o.throttle;u!==void 0&&(c=co(c,ie(u===!0?250:u,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}x("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&Qu(e,t,n,r,o,i)});var Yh=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of Yh)x(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{Qu(t,e,n,r,o,i)});x("model",({el:e,expression:t,scope:n,modifiers:r,effect:o,cleanup:i})=>{let s=e,a=s.tagName,l=(s.getAttribute("type")||"text").toLowerCase(),c=a==="INPUT"&&l==="checkbox",d=a==="INPUT"&&l==="radio",u=a==="SELECT",f=u&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",h=!!r.lazy,v=!!r.number||m,g=!!r.trim,b=r.debounce?ie(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${w.prefix}debounce`)?ie(e.getAttribute(`${w.prefix}debounce`),250):0,y=h||u||c||d||p?"change":"input",T=()=>{var A,C;let E;if(c){let R=Y(t,n,"v-model");if(Array.isArray(R)){let ce=s.value,O=[...R],be=O.indexOf(ce);s.checked&&be===-1?O.push(ce):!s.checked&&be>-1&&O.splice(be,1),E=O}else E=s.checked}else if(d){if(!s.checked)return;E=s.value}else if(f)E=Array.from(s.selectedOptions).map(R=>R.value);else if(p)E=r.single?(C=(A=s.files)==null?void 0:A[0])!=null?C:null:s.files;else if(E=s.value,g&&typeof E=="string"&&(E=E.trim()),v&&typeof E=="string"){let R=E===""?null:Number(E);E=R===null||Number.isNaN(R)?E:R}Oh(t,n,E)};b>0&&(T=dt(T,b)),s.addEventListener(y,T),i(()=>s.removeEventListener(y,T)),o(()=>{let E=Y(t,n,"v-model");if(c){s.checked=Array.isArray(E)?E.includes(s.value):!!E;return}if(d){s.checked=String(E)===s.value;return}if(f){let C=Array.isArray(E)?E.map(String):[];for(let R of Array.from(s.options))R.selected=C.includes(R.value);return}if(p)return;let A=E==null?"":String(E);s.value!==A&&(s.value=A),u&&s.value!==A&&$t(()=>{s.value!==A&&(s.value=A)})})},{priority:_.MODEL});x("init",({el:e,expression:t,scope:n})=>{Fe(()=>{let r=n.child({$el:e}),o=Y(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:_.INIT});x("ref",({el:e,expression:t,scope:n,cleanup:r})=>{var s;let o=t.trim();if(!o)return;let i=(s=n.owner)!=null?s:n;i.refs[o]=e,r(()=>{i.refs[o]===e&&delete i.refs[o]})},{priority:_.REF});x("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});x("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${w.prefix}model`),i,s=!0;r(()=>{let a=o?Y(o,n,"v-watch"):Y(t,n,"v-watch");if(s){s=!1,i=a;return}if(a===i)return;let l=i;if(i=a,o){let c=n.child({$value:a,$old:l,$el:e}),d=Y(t,c,"v-watch");typeof d=="function"&&d.call(n.data,a,l)}})});x("cloak",({el:e})=>{e.removeAttribute(`${w.prefix}cloak`)});x("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Ut(r))});x("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){te(new Error(`v-teleport destination not found: ${r}`),"v-teleport");return}let i=document.createComment(" v-teleport ");(s=e.parentNode)==null||s.insertBefore(i,e),o.appendChild(e),n(()=>{var a;(a=i.parentNode)==null||a.insertBefore(e,i),i.remove()})},{priority:_.DATA});for(let e of["transition","enter-class","enter-active-class","enter-to-class","leave-class","leave-active-class","leave-to-class","duration","key","slot","ignore","pre"])x(e,()=>{},{priority:_.TRANSITION});x("data",()=>{},{priority:_.DATA});x("component",()=>{},{priority:_.COMPONENT});xe();ye();var ef=()=>w.prefix;function X(e,t){return Oe(e,`${ef()}${t}`)}function pl(e,t){return ln(e,`${ef()}${t}`)}function Xh(e,t){var s,a,l;let n=X(e,"target"),r=X(e,"loading"),o={},i=X(e,"headers");if(i){let c=Y(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:X(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:X(e,"loading-class")||"v-loading",disableWhileLoading:pl(e,"disable-loading"),confirmMessage:X(e,"confirm"),toastSuccess:X(e,"toast-success"),toastError:X(e,"toast-error"),onSuccess:X(e,"on-success"),onError:X(e,"on-error"),onComplete:X(e,"on-complete"),cacheMs:ie((s=X(e,"cache"))!=null?s:void 0,0),retry:Number((a=X(e,"retry"))!=null?a:0),timeout:ie((l=X(e,"timeout"))!=null?l:void 0,Le.defaults.timeout),storeAs:X(e,"as"),jsonPath:X(e,"json-path"),templateSelector:X(e,"template"),offlineQueue:pl(e,"offline-queue"),headers:o,redirect:X(e,"redirect"),scrollTo:X(e,"scroll-to")}}function Ju(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&ue(l,r)};switch(n){case"none":return;case"delete":oe(e),e.remove();return;case"textContent":e.textContent=t;return;case"outerHTML":case"replace":{let a=document.createElement("template");a.innerHTML=t;let l=Array.from(a.content.childNodes);oe(e),e.replaceWith(a.content),o(l);return}case"beforebegin":case"afterbegin":case"beforeend":case"afterend":{let a=new Set(Array.from((s=(i=e.parentElement)==null?void 0:i.childNodes)!=null?s:[]));e.insertAdjacentHTML(n,t);let l=n==="afterbegin"||n==="beforeend"?e:e.parentElement;if(l)for(let c of Array.from(l.childNodes))c.nodeType===1&&!a.has(c)&&ue(c,r);return}case"append":e.insertAdjacentHTML("beforeend",t),o(e.childNodes);return;case"prepend":e.insertAdjacentHTML("afterbegin",t),o(e.childNodes);return;default:{for(let a of Array.from(e.children))oe(a);e.innerHTML=t,o(e.childNodes)}}}function Ki(e,t=0){if(e==null)return"";if(typeof e!="object")return V(String(e));if(Array.isArray(e)){if(!e.length)return'<p class="v-json-empty">No results.</p>';if(e.every(o=>o&&typeof o=="object"&&!Array.isArray(o))&&t===0){let o=Array.from(e.reduce((a,l)=>{for(let c of Object.keys(l))a.add(c);return a},new Set)),i=o.map(a=>`<th>${V(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${Ki(a[l],t+1)}</td>`).join("")}</tr>`).join("");return`<table class="v-json-table"><thead><tr>${i}</tr></thead><tbody>${s}</tbody></table>`}return`<ul class="v-json-list">${e.map(o=>`<li>${Ki(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${V(r)}</dt><dd>${Ki(o,t+1)}</dd>`).join("")}</dl>`:""}function Gh(e,t,n,r){let o=document.querySelector(e);if(!o){te(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))oe(s);r.innerHTML="";let i=Array.isArray(t)?t:[t];for(let[s,a]of i.entries()){let l=o.content.cloneNode(!0),c=Array.from(l.childNodes);r.appendChild(l);let d=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let u of c)u.nodeType===1&&ue(u,d)}}var ul=new WeakMap;async function bo(e){var u,f,p,m,h;let{el:t,scope:n,method:r}=e,o=Xh(t,n),i=_t.has("confirm");if(o.confirmMessage&&!i&&!await Qh(o.confirmMessage))return;(u=ul.get(t))==null||u.abort();let s=new AbortController;ul.set(t,s);let a=(f=o.target)!=null?f:t,l=t instanceof HTMLFormElement?t.querySelector('[type="submit"], button:not([type])'):null,c=()=>{if(t.classList.add(o.loadingClass),t.setAttribute("aria-busy","true"),o.loadingTarget&&o.loadingTarget.style.removeProperty("display"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!0)}},d=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let v=l!=null?l:t;"disabled"in v&&(v.disabled=!1)}};c(),xr(t,"voodoo:before-request",{method:r,url:e.url});try{let v=await Le.request({url:e.url,method:r,body:e.body,params:e.params,headers:o.headers,timeout:o.timeout,retry:o.retry,cache:o.cacheMs||void 0,signal:s.signal,offlineQueue:o.offlineQueue}),g=al(v.data,o.jsonPath);o.storeAs?n.set(o.storeAs,g):o.templateSelector?Gh(o.templateSelector,g,n,a):typeof g=="string"?Ju(a,g,o.swap,n):g!=null&&(Jh(),Ju(a,Ki(g),o.swap,n)),o.toastSuccess&&Lt.success(o.toastSuccess),o.onSuccess&&fl(o.onSuccess,n,t,{data:g,response:v}),xr(t,"voodoo:success",{data:g,response:v}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(v){if((v==null?void 0:v.name)==="AbortError")return;let g=v instanceof He?(m=ll(v))!=null?m:v.message:(h=v==null?void 0:v.message)!=null?h:"Unknown error";o.toastError?Lt.error(o.toastError):o.onError||Lt.error(g),o.onError&&fl(o.onError,n,t,{error:v,message:g}),xr(t,"voodoo:error",{error:v,message:g}),te(v,`request ${r} ${e.url}`)}finally{d(),ul.delete(t),o.onComplete&&fl(o.onComplete,n,t,{}),xr(t,"voodoo:complete",{})}}function xr(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function fl(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=Y(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function Qh(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var Zu=!1;function Jh(){Zu||(Zu=!0,Promise.resolve().then(()=>(Be(),Au)).then(({injectStyle:e})=>{e("json-render",`
|
|
130
130
|
.v-json-table{width:100%;border-collapse:collapse;font:14px/1.5 var(--v-font-sans,system-ui,sans-serif)}
|
|
131
131
|
.v-json-table th,.v-json-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--v-border,#E6E0F0);vertical-align:top}
|
|
132
132
|
.v-json-table th{font-weight:650;color:var(--v-text-muted,#6B6580);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
|
|
@@ -135,10 +135,10 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
135
135
|
.v-json-object dt{font-weight:600;color:var(--v-text-muted,#6B6580)}
|
|
136
136
|
.v-json-object dd{margin:0}
|
|
137
137
|
.v-json-empty{color:var(--v-text-muted,#6B6580);font-style:italic}
|
|
138
|
-
`)}))}function Eh(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function Th({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Eh(e),[o,...i]=r.split(/[.\s]+/),s=Q((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=Q((u=V(e,"debounce"))!=null?u:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=Ye(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var Lh=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Lh)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{Th({el:n,scope:r,cleanup:i,run:a=>{let l=Yr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),f=u?q(u,r,"v-params"):void 0;Kr({el:n,scope:r,method:t,url:l,body:d,params:f,event:a})}})});function Yr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=Yr(n,t);r&&Kr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Yr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Kr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Kr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,f;let o=e,i=Yr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=Q((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((f=V(e,"min-length"))!=null?f:0),c=Ye(()=>{let p=o.value.trim();p.length<l||Kr({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=gi(()=>Yr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:Q((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:Q((d=V(e,"timeout"))!=null?d:void 0,he.defaults.timeout),jsonPath:V(e,"json-path"),poll:Q((u=V(e,"poll"))!=null?u:void 0,0),manual:Ha(e,"manual"),onSuccess:f=>Zn(e,"voodoo:success",{data:f}),onError:(f,p)=>Zn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});Ld(Hd);Nd(Bt);jd(Su);ou();lu();var Xr=new Map;function Mu(e,t){let n=Xr.get(e);return n||Xr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Mh(e,t){let n=Mu(e,r=>{n(),t(r)});return n}function Sh(e,t){let n=Xr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){W(o,`event "${e}"`)}}function Ch(e,t){var n;if(!t){Xr.delete(e);return}(n=Xr.get(e))==null||n.delete(t)}function Su(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(h=n.updated)==null||h.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Ah(e){return Object.defineProperties(Ke.data,Object.getOwnPropertyDescriptors(e)),Ke.data}var Rh="0.12.5",xi={...Ta,version:Rh,config:w,reactive:X,ref:Ge,shallowRef:Ws,computed:an,effect:Pe,watch:Ie,watchEffect:Ys,nextTick:ft,toRaw:Me,markRaw:Rr,unref:Ks,stop:Pn,effectScope:qs,EffectScope:ot,flushSync:Is,data:Ah,store:ni,stores:$t,removeStore:_d,storeNames:ri,scope:Ke,component:jt,components:Ne,directive:Su,directives:Mt,magic:H,magics:Pr,createApp:qd,start:Rd,whenReady:Fr,whenElement:ei,walk:ne,refresh:Dd,destroy:Y,stopObserving:$d,getScope:it,findScope:Ce,addCleanup:Be,parseAttribute:Fn,parse:ze,tokenize:jo,evaluate:P,evaluateIn:q,stringify:Lt,clearParseCache:td,globals:Oe,http:he,request:Vt,HttpError:Ee,resource:gi,toast:st,storage:fe,session:ui,cookie:fi,cache:pi,url:_t,theme:mt,clipboard:vi,screen:Qe,network:Wt,enter:_r,leave:Wr,fadeIn:Qn,fadeOut:Jn,slideUp:mn,slideDown:pn,viewTransition:bi,injectStyle:Z,ensureTokens:ge,on:Mu,once:Mh,off:Ch,emit:Sh,use(e,t){Uo(xi,e,t)},onError(e){zs(e)},instances:Rt,Scope:St,PRIORITY:j,VoodooSyntaxError:te,VoodooRuntimeError:xe};Ud(xi);de();var $h=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function Ou(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function at(e){return e.length<2?e:Array.from(new Set(e))}function vn(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Oa(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function Fu(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Dh(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof vt)return e.toArray();if(typeof e=="string")return hn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=hn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function hn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Fu(o))return Oa(o);let i=[];for(let s of Dh(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return at(i)}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return at(o)}return[]}function Cu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Fu(r.trim())?Oa(r):[document.createTextNode(r)]}if(e instanceof vt)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function wi(e,t,n){let r=Ou(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!$h.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Ph(e,t){for(let[n,r]of Object.entries(t))wi(e,n,r)}function Au(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function Ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Iu=new WeakMap;function $u(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Du(e){e.removeAttribute("hidden");let t=Iu.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function Pu(e){let t=e.style.display;t&&t!=="none"&&Iu.set(e,t),e.style.display="none"}var Nu="input,select,textarea";function Hu(e){return e.matches(Nu)?[e]:Array.from(e.querySelectorAll(Nu))}function Nh(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var ki=new WeakMap;function Hh(e){let t=ki.get(e);return t||ki.set(e,t=[]),t}var vt=class e{constructor(t=[]){N(this,"length");N(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(at(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(at(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(at(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(at(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(at(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(at(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(at([...this.elements,...hn(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))Y(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))Y(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=vn(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=Au(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[Ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Ru(String(n));if(t.length<2){let i=this.elements[0];return i?Au(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)Ph(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Ou(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)wi(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)wi(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)wi(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=vn(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=vn(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=vn(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of Cu(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=hn(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=hn(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of Cu(t))r.insertBefore(o,n);Y(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=hn(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);Y(n),n.remove()}}return this}remove(){for(let t of this.elements)Y(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))Y(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of vn(t)){let d=u=>{if(!o){i.call(l,u);return}let f=u.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,u)};l.addEventListener(c,d,s),Hh(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?vn(t):null;for(let a of this.elements){let l=ki.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),f=o===null||d.selector===o,p=i===null||d.handler===i;u&&f&&p?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}ki.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)Du(t);return this}hide(){for(let t of this.elements)Pu(t);return this}toggle(t){for(let n of this.elements)(t===void 0?$u(n):t)?Du(n):Pu(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),Qn(n,t);return this}fadeOut(t=220){for(let n of this.elements)Jn(n,t);return this}slideUp(t=240){for(let n of this.elements)mn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),pn(n,t);return this}slideToggle(t=240){for(let n of this.elements)$u(n)?(n.removeAttribute("hidden"),pn(n,t)):mn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of Hu(t)){if(!Nh(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of Hu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(p):n[u]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[u]=p:n[u]=[m,p];continue}n[u]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&Y(n),ne(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)Y(t);return this}};function Fa(e,t){if(typeof e=="function"){Ia(e);let n=typeof document!="undefined"?document.documentElement:null;return new vt(n?[n]:[])}return new vt(hn(e,t))}function Ia(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Bd(()=>{try{e==null||e()}catch(n){W(n,"V.ready")}t()})})}function zu(e){return new vt(Oa(e))}de();ce();var gn=new Map,je={emit(e,t){let n=gn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=gn.get(e);return n||gn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=gn.get(e))==null||n.delete(t)},clear(e){e?gn.delete(e):gn.clear()},count(e){var t,n;return(n=(t=gn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},Ei="__voodooRoute",qu=10,ht=[],Vu=new Map,Ti=new Map,er="inicial",Li=!1,Uu=!1;function Oh(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ue=X(Oh());function Gr(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function _u(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function Fh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function qa(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=_u(t.slice(i+1)),t=t.slice(0,i)),{path:Gr(t),query:o,hash:n}}function Ih(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function Wu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?qa(window.location.hash.slice(1)||"/"):{path:Gr(Ih(window.location.pathname)),query:_u(window.location.search),hash:window.location.hash.slice(1)}}function Ku(e,t,n){let r=Fh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Va(e){let t=Ku(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var Ba=!1,Mi=!1;function Ua(e,t,n){if(!Ba)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;Ba=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){Mi=!0;try{window.location.hash=o}finally{setTimeout(()=>{Mi=!1},0)}}}function Yu(e,t){let n=e==="*"?"*":Gr(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function zh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(za).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(za(i)!==o.value)return null;r++;continue}n[o.value]=za(i),r++}return r===t.length?n:null}function za(e){try{return decodeURIComponent(e)}catch(t){return e}}function Bh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of ht){let o=zh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function _a(e){var t,n;return e&&(n=(t=ht.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function tr(e){let{path:t,query:n,hash:r}=qa(e);return Wa(t,n,r)}function Wa(e,t,n){var o,i;let r=Bh(e);return{path:e,fullPath:Ku(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function nr(){return{path:ue.path,fullPath:ue.fullPath,params:{...ue.params},query:{...ue.query},hash:ue.hash,name:ue.name,meta:ue.meta,matched:ue.matched}}function Ka(e){ue.path=e.path,ue.fullPath=e.fullPath,ue.params=e.params,ue.query=e.query,ue.hash=e.hash,ue.name=e.name,ue.meta=e.meta,ue.matched=e.matched;let t=_a(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ya(e,t){let n=_a(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function Ci(){typeof window!="undefined"&&Vu.set(er,window.scrollY)}function Xa(e,t,n){typeof window!="undefined"&&Se(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Kt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Xu();let n=nr(),r=tr(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>qu)return G(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ya(r,n);if(d===!1)return je.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=tr(d);continue}break}Ci();let o=le("rota"),i={...(a=t.state)!=null?a:{},[Ei]:o},s=Va(r);return Ua(i,s,t.replace===!0),er=o,Ka(r),t.scroll!==!1&&Xa(r,n,null),(l=U.afterEach)==null||l.call(U,nr(),n),je.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function jh(e){var c,d;if(Mi)return;let{path:t,query:n,hash:r}=Wu(),o=Wa(t,n,r),i=nr();if(o.fullPath===i.fullPath)return;let s=await Ya(o,i);if(s===!1){Ua({[Ei]:er},Va(i),!0),je.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Kt(s,{replace:!0});return}Ci();let a=e.state,l=a&&a[Ei]||le("rota");er=l,Ka(o),Xa(o,i,(c=Vu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,nr(),i),je.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function Si(e){jh(e)}function Xu(){Li||typeof window=="undefined"||(Li=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",Si),U.mode==="hash"&&window.addEventListener("hashchange",Si),window.addEventListener("beforeunload",Ci))}function qh(){!Li||typeof window=="undefined"||(Li=!1,window.removeEventListener("popstate",Si),window.removeEventListener("hashchange",Si),window.removeEventListener("beforeunload",Ci),Ba=!1,Mi=!1)}async function Vh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=Wu(),r=nr(),o=Wa(e,t,n);for(let s=0;;s++){if(s>qu){G("Router: too many redirects in the initial route.");return}let a=await Ya(o,r);if(a===!1)return;if(typeof a=="string"){o=tr(a);continue}break}er=le("rota"),Ua({[Ei]:er},Va(o),!0),Ka(o),o.hash&&Xa(o,r,null),(i=U.afterEach)==null||i.call(U,nr(),r)}function Uh(e,t){let n=Yu(e,t),r=ht.findIndex(o=>o.pattern===n.pattern);r>-1?ht.splice(r,1,n):ht.push(n)}function _h(e){let t=e==="*"?"*":Gr(e),n=ht.findIndex(r=>r.pattern===t);n>-1&&ht.splice(n,1)}function Wh(){return[...ht].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Kh(e){e?Ti.delete(e):Ti.clear()}function Yh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Gr((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,ht.length=0;for(let[u,f]of Object.entries((d=e.routes)!=null?d:{}))ht.push(Yu(u,f));return Uu=!0,Xu(),Vh(),Qr}var Xh={get current(){return ue},push:(e,t={})=>Kt(e,t),replace:(e,t={})=>Kt(e,{...t,replace:!0}),navigate:Kt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:tr,addRoute:Uh,removeRoute:_h,patterns:Wh,stop:qh,clearViewCache:Kh,get ready(){return Uu}},Qr=Object.defineProperties(Yh,Object.getOwnPropertyDescriptors(Xh));H("$route",()=>ue);H("$router",()=>Qr);async function Gh(e){let t=Ti.get(e);if(t!==void 0)return t;let n=await he.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return Ti.set(e,r),r}function Qh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Qo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))Y(u);e.textContent=""},c=(u,f)=>{if(l(),u!=null&&u.component){let p=document.createElement("div");p.setAttribute(`${w.prefix}component`,u.component),p.className="v-router-page",e.appendChild(p),ne(p,t);return}e.innerHTML=f!=null?f:i;for(let p of Array.from(e.childNodes))ne(p,t)},d=async(u,f)=>{let p=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{p=await Gh(u.view)}catch(m){W(m,`v-router-view loading "${u.view}"`),p=""}finally{e.classList.remove("v-router-loading")}if(f!==a)return}s?bi(()=>c(u,p)):c(u,p)};r(()=>{let u=ue.matched;Qh(ue.params);let f=_a(u);d(f,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var Jh=/^[a-z][a-z0-9+.-]*:/i;function Bu(e){return!!(!e||e.startsWith("//")||Jh.test(e))}function ju(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function ja(e,t){let{path:n}=qa(e);return n==="/"||t?ue.path===n:ue.path===n||ue.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=ju(e,t,i);d&&(Bu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Kt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=ju(e,t,i);if(!l||Bu(l))return;let c=ja(l,!0),d=c||ja(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?ja(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});de();ce();var Zh="voodoo:locale",z=X({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),rr=Zh,or="",Ga=new Map;function Ai(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function Ri(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var Gu=new Map;function eg(e,t){try{let n=Gu.get(e);return n||Gu.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var tg=["zero","one","two","few","many","other"];function ng(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=eg(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=tg.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var rg=/\{\s*([\w.$-]+)\s*\}/g;function og(e,t){return e.indexOf("{")===-1?e:e.replace(rg,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function ig(e){return e==null?{}:typeof e=="number"?{n:e}:e}function ir(e,t){var i,s;if(!e)return"";let n=ig(t),r=z.locale,o=null;for(let a of Ri(r))if(o=Ai(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of Ri(z.fallback))if(o=Ai(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=ng(l,Number.isNaN(a)?0:a,r)}return og(o,n)}function sg(e,t){let n=t!=null?t:z.locale;for(let r of Ri(n))if(Ai(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of Ri(z.fallback))if(Ai(r,e)!==null)return!0}return!1}function Qu(e,t={}){return wa(e,{...t,locale:z.locale})}function Ju(e,t){return xa(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Zu(e,t="short"){return ka(e,t,z.locale)}function ef(e){return Ea(e,z.locale)}function Di(){return z.locale}function ag(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function $i(e,t){let n=z.messages[e];return n?ii(n,t):z.messages[e]=t,e}async function Qa(e,t){if(typeof t!="string"){$i(e,t);return}let n=Ga.get(e);if(n)return n;let r=he.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&$i(e,o)}).catch(o=>{W(o,`i18n ao carregar "${t}"`)}).finally(()=>{Ga.delete(e)});return Ga.set(e,r),r}function Jr(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,ai(t,z.currency),rr&&fe.set(rr,t),typeof document!="undefined"&&(document.documentElement.lang=t),je.emit("locale",{from:n,to:t}),!z.messages[t]&&or?Qa(t,or.replace("{locale}",t)):Promise.resolve()}function tf(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function lg(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))$i(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,or=(a=e.loadPath)!=null?a:or,e.persist===!1?rr=null:typeof e.persist=="string"&&(rr=e.persist);let t=rr?fe.get(rr):void 0,n=e.detect===!1?null:tf(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,ai(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&or&&Qa(r,or.replace("{locale}",r)),Zr}var cg={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:ir,te:sg,n:Qu,c:Ju,d:Zu,rt:ef,setLocale:Jr,getLocale:Di,addMessages:$i,loadMessages:Qa,messagesOf:ag,detectLocale:tf},Zr=Object.defineProperties(lg,Object.getOwnPropertyDescriptors(cg));H("$t",()=>ir);H("$locale",()=>z.locale);H("$i18n",()=>Zr);H("$n",()=>Qu);H("$c",()=>Ju);H("$d",()=>Zu);H("$rt",()=>ef);var dg=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function ug(e,t){let n=e.trim();if(!n)return"";if(dg.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function fg(e,t){var o;let n=(o=Te(e,`${w.prefix}t-params`))!=null?o:Te(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=ug(n,o);if(!i)return;let s=ir(i,fg(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Jr(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});de();ce();Ae();Ae();ce();var Ja=new WeakMap;function Xt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Pi(e,t){return zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`)}function ee(e,t){let n=Ja.get(e);return n&&t in n?n[t]:Xt(e,t)}function Ni(e,t,n){var o;let r=(o=Ja.get(e))!=null?o:{};r[t]=n,Ja.set(e,r)}function K(e){y(e,({el:t,expression:n})=>{Ni(t,e,n)},{priority:j.BIND})}function pe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function gt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var pg=`
|
|
138
|
+
`)}))}function Zh(e){let t=e.tagName;if(t==="FORM")return"submit";if(t==="INPUT"||t==="SELECT"||t==="TEXTAREA"){let n=e.type;return n==="button"||n==="submit"?"click":"change"}return"click"}function eg({el:e,cleanup:t,run:n}){var d,u;let r=X(e,"trigger")||Zh(e),[o,...i]=r.split(/[.\s]+/),s=ie((d=X(e,"poll"))!=null?d:void 0,0);if(s>0){n();let f=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(f));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let f=new IntersectionObserver(p=>{for(let m of p)m.isIntersecting&&(n(),i.includes("repeat")||f.unobserve(e))},{rootMargin:"80px"});f.observe(e),t(()=>f.disconnect());return}let a=i.includes("once"),l=ie((u=X(e,"debounce"))!=null?u:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=dt(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var tg=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of tg)x(e,({el:n,scope:r,expression:o,cleanup:i})=>{eg({el:n,scope:r,cleanup:i,run:a=>{let l=yo(o,r);if(!l)return;let c=X(n,"body")||X(n,"data-body"),d=c?Y(c,r.child({$event:a}),"v-body"):void 0,u=X(n,"params"),f=u?Y(u,r,"v-params"):void 0;bo({el:n,scope:r,method:t,url:l,body:d,params:f,event:a})}})});function yo(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=Y(n,t,"URL");return typeof o=="string"?o:n}x("load",({el:e,scope:t,expression:n})=>{let r=yo(n,t);r&&bo({el:e,scope:t,method:"GET",url:r})});x("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=yo(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){bo({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),bo({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});x("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,f;let o=e,i=yo(n,t),s=X(e,"param")||o.getAttribute("name")||"q",a=ie((u=X(e,"debounce"))!=null?u:void 0,300),l=Number((f=X(e,"min-length"))!=null?f:0),c=dt(()=>{let p=o.value.trim();p.length<l||bo({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});x("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=X(e,"as")||"resource",s=n.trim();if(o>-1){let f=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(f)&&(i=f,s=n.slice(o+1).trim())}let a=_i(()=>yo(s,t),{method:(X(e,"method")||"GET").toUpperCase(),params:()=>X(e,"params")?Y(X(e,"params"),t,"v-params"):void 0,cache:ie((l=X(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=X(e,"retry"))!=null?c:0),timeout:ie((d=X(e,"timeout"))!=null?d:void 0,Le.defaults.timeout),jsonPath:X(e,"json-path"),poll:ie((u=X(e,"poll"))!=null?u:void 0,0),manual:pl(e,"manual"),onSuccess:f=>xr(e,"voodoo:success",{data:f}),onError:(f,p)=>xr(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:_.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])x(e,()=>{},{priority:_.TRANSITION});Jd(lu);au(Xt);mu(nf);$u();Hu();var xo=new Map;function tf(e,t){let n=xo.get(e);return n||xo.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ng(e,t){let n=tf(e,r=>{n(),t(r)});return n}function rg(e,t){let n=xo.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){te(o,`event "${e}"`)}}function og(e,t){var n;if(!t){xo.delete(e);return}(n=xo.get(e))==null||n.delete(t)}function nf(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;x(e,i=>{var d,u;let s,a=!1,l=f=>{var p,m;return{el:i.el,value:f,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(p=i.scope.owner)==null?void 0:p.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let f=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=f,(m=n.mounted)==null||m.call(n,i.el,l(f));return}if(f===s)return;let p=l(f);(h=n.updated)==null||h.call(n,i.el,p),s=f}),i.cleanup(()=>{var p,m;let f=l(s);(p=n.beforeUnmount)==null||p.call(n,i.el,f),(m=n.unmounted)==null||m.call(n,i.el,f)})},{priority:(r=n.priority)!=null?r:_.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function ig(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var sg="0.13.0",Yi={...tl,version:sg,config:w,reactive:ee,ref:mt,shallowRef:Ea,computed:Sn,effect:We,watch:Ze,watchEffect:La,nextTick:$t,toRaw:Ce,markRaw:to,unref:Ta,stop:Zn,effectScope:ha,EffectScope:Et,flushSync:fa,data:ig,store:Ri,stores:Qt,removeStore:bu,storeNames:$i,scope:ct,component:cn,components:Ke,directive:nf,directives:_t,magic:F,magics:ro,createApp:vu,start:ru,whenReady:ao,whenElement:Ai,walk:ue,refresh:iu,destroy:oe,stopObserving:ou,getScope:Tt,findScope:ze,addCleanup:tt,parseAttribute:or,parse:et,tokenize:vi,evaluate:P,evaluateIn:Y,stringify:Ut,clearParseCache:Ad,globals:Je,http:Le,request:un,HttpError:He,resource:_i,toast:Lt,storage:ke,session:zi,cookie:Bi,cache:ji,url:pn,theme:Pt,clipboard:Vi,screen:vt,network:mn,enter:ho,leave:go,fadeIn:br,fadeOut:yr,slideUp:Nn,slideDown:Pn,viewTransition:Wi,injectStyle:ae,ensureTokens:Me,on:tf,once:ng,off:og,emit:rg,use(e,t){bi(Yi,e,t)},onError(e){pa(e)},instances:Gt,Scope:Wt,PRIORITY:_,VoodooSyntaxError:de,VoodooRuntimeError:$e};gu(Yi);xe();var ag=new Set(["animation-iteration-count","aspect-ratio","border-image-slice","column-count","flex","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-row","line-height","opacity","order","orphans","scale","tab-size","widows","z-index","zoom"]);function ff(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Mt(e){return e.length<2?e:Array.from(new Set(e))}function Hn(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function ml(e){if(typeof document=="undefined")return[];let t=document.createElement("template");t.innerHTML=e.trim();let n=[];for(let r of Array.from(t.content.children))n.push(r);return n}function pf(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function lg(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Nt)return e.toArray();if(typeof e=="string")return On(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=On(e);return t.length?t:typeof document=="undefined"?[]:[document]}function On(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(pf(o))return ml(o);let i=[];for(let s of lg(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Mt(i)}if(e instanceof Nt)return e.toArray();if(typeof e=="function")return[];let n=e;if(typeof n.nodeType=="number"){if(n.nodeType===1)return[n];if(n.nodeType===9){let o=n;return o.documentElement?[o.documentElement]:[]}return n.nodeType===11?Array.from(n.children):[]}let r=e;if(typeof r.length=="number"){let o=[];for(let i=0;i<r.length;i++){let s=r[i];s&&s.nodeType===1&&o.push(s)}return Mt(o)}return[]}function rf(e){if(e==null)return[];if(typeof e=="string"){let r=e;return pf(r.trim())?ml(r):[document.createTextNode(r)]}if(e instanceof Nt)return e.toArray();if(typeof e=="function")return[];let t=e;if(typeof t.nodeType=="number")return[t];let n=e;if(typeof n.length=="number"){let r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r}return[]}function Xi(e,t,n){let r=ff(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!ag.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function cg(e,t){for(let[n,r]of Object.entries(t))Xi(e,n,r)}function of(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function sf(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var mf=new WeakMap;function af(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function lf(e){e.removeAttribute("hidden");let t=mf.get(e);t!==void 0&&t!=="none"?e.style.display=t:e.style.removeProperty("display"),e.isConnected&&getComputedStyle(e).display==="none"&&(e.style.display="block")}function cf(e){let t=e.style.display;t&&t!=="none"&&mf.set(e,t),e.style.display="none"}var df="input,select,textarea";function uf(e){return e.matches(df)?[e]:Array.from(e.querySelectorAll(df))}function dg(e){let t=e;if(!t.name||t.disabled)return!1;let n=(t.getAttribute("type")||"").toLowerCase();return!(n==="file"||n==="submit"||n==="reset"||n==="button"||(n==="checkbox"||n==="radio")&&!t.checked)}var Gi=new WeakMap;function ug(e){let t=Gi.get(e);return t||Gi.set(e,t=[]),t}var Nt=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(Mt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Mt(n))}parent(t){let n=[];for(let r of this.elements){let o=r.parentElement;o&&(!t||o.matches(t))&&n.push(o)}return new e(Mt(n))}parents(t){let n=[];for(let r of this.elements){let o=r.parentElement;for(;o;)(!t||o.matches(t))&&n.push(o),o=o.parentElement}return new e(Mt(n))}children(t){let n=[];for(let r of this.elements)for(let o of Array.from(r.children))(!t||o.matches(t))&&n.push(o);return new e(Mt(n))}siblings(t){let n=[];for(let r of this.elements){let o=r.parentElement;if(o)for(let i of Array.from(o.children))i!==r&&(!t||i.matches(t))&&n.push(i)}return new e(Mt(n))}next(t){let n=[];for(let r of this.elements){let o=r.nextElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Mt(n))}prev(t){let n=[];for(let r of this.elements){let o=r.previousElementSibling;o&&(!t||o.matches(t))&&n.push(o)}return new e(Mt(n))}first(){return this.eq(0)}last(){return this.eq(-1)}eq(t){let n=t<0?this.elements.length+t:t,r=this.elements[n];return new e(r?[r]:[])}filter(t){let n=this.elements.filter((r,o)=>typeof t=="function"?t(r,o):r.matches(t));return new e(n)}not(t){let n=this.elements.filter((r,o)=>typeof t=="function"?!t(r,o):!r.matches(t));return new e(n)}has(t){let n=this.elements.filter(r=>typeof t=="string"?r.querySelector(t)!==null:r.contains(t));return new e(n)}is(t){return this.elements.some((n,r)=>typeof t=="function"?t(n,r):n.matches(t))}map(t){return this.elements.map((n,r)=>t(n,r))}each(t){for(let n=0;n<this.elements.length;n++){let r=this.elements[n];if(t.call(r,r,n)===!1)break}return this}get(...t){if(!t.length)return this.toArray();let n=Number(t[0]);return this.elements[n<0?this.elements.length+n:n]}toArray(){return this.elements.slice()}add(t,n){return new e(Mt([...this.elements,...On(t,n)]))}slice(t,n){return new e(this.elements.slice(t,n))}text(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.textContent)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))oe(a);s.textContent=r}return this}html(...t){var o,i;if(!t.length)return(i=(o=this.elements[0])==null?void 0:o.innerHTML)!=null?i:"";let n=t[0],r=n==null?"":String(n);for(let s of this.elements){for(let a of Array.from(s.childNodes))oe(a);s.innerHTML=r}return this}val(...t){var r;if(!t.length){let o=this.elements[0];if(!o)return"";let i=o;return o.tagName==="SELECT"&&i.multiple?Array.from(i.selectedOptions).map(s=>s.value):o.type==="checkbox"?o.checked?o.value||"on":"":(r=o.value)!=null?r:""}let n=t[0];for(let o of this.elements){let i=o,s=o;if(i.tagName==="SELECT"&&s.multiple){let a=(Array.isArray(n)?n:[n]).map(String);for(let l of Array.from(s.options))l.selected=a.includes(l.value);continue}if(i.type==="checkbox"||i.type==="radio"){i.checked=Array.isArray(n)?n.map(String).includes(i.value):n===!0||String(n)===i.value;continue}i.value=n==null?"":String(n)}return this}attr(...t){var i,s;let n=t[0];if(n!==null&&typeof n=="object"){for(let a of this.elements)for(let[l,c]of Object.entries(n))c===null||c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":String(c));return this}let r=String(n);if(t.length<2)return(s=(i=this.elements[0])==null?void 0:i.getAttribute(r))!=null?s:void 0;let o=t[1];for(let a of this.elements)o===null||o===!1?a.removeAttribute(r):a.setAttribute(r,o===!0?"":String(o));return this}removeAttr(t){let n=Hn(t);for(let r of this.elements)for(let o of n)r.removeAttribute(o);return this}prop(...t){let n=String(t[0]);if(t.length<2){let r=this.elements[0];return r?r[n]:void 0}for(let r of this.elements)r[n]=t[1];return this}data(...t){let n=t[0];if(!t.length){let i=this.elements[0];if(!i)return{};let s={};for(let[a,l]of Object.entries(i.dataset))s[a]=of(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[sf(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=sf(String(n));if(t.length<2){let i=this.elements[0];return i?of(i.dataset[r]):void 0}let o=t[1];for(let i of this.elements)i.dataset[r]=typeof o=="string"?o:JSON.stringify(o!=null?o:null);return this}css(...t){let n=t[0];if(n!==null&&typeof n=="object"){for(let o of this.elements)cg(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=ff(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Xi(o,r,t[1]);return this}width(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().width:0}for(let n of this.elements)Xi(n,"width",t[0]);return this}height(...t){if(!t.length){let n=this.elements[0];return n?n.getBoundingClientRect().height:0}for(let n of this.elements)Xi(n,"height",t[0]);return this}offset(){let t=this.elements[0];if(!t)return{top:0,left:0};let n=t.getBoundingClientRect();return{top:n.top+window.scrollY,left:n.left+window.scrollX}}position(){let t=this.elements[0];return t?{top:t.offsetTop,left:t.offsetLeft}:{top:0,left:0}}scrollTop(...t){var r,o;if(!t.length)return(o=(r=this.elements[0])==null?void 0:r.scrollTop)!=null?o:0;let n=Number(t[0])||0;for(let i of this.elements)i.scrollTop=n;return this}addClass(t){let n=Hn(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Hn(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Hn(t);for(let o of this.elements)for(let i of r)n===void 0?o.classList.toggle(i):o.classList.toggle(i,n);return this}hasClass(t){let n=Hn(t);return n.length?this.elements.some(r=>n.every(o=>r.classList.contains(o))):!1}insert(t,n){let r=this.elements.length;for(let o=0;o<r;o++){let i=this.elements[o];for(let s of rf(t))n(i,o===r-1?s:s.cloneNode(!0))}return this}append(t){return this.insert(t,(n,r)=>n.appendChild(r))}prepend(t){return this.insert(t,(n,r)=>n.insertBefore(r,n.firstChild))}before(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n)})}after(t){return this.insert(t,(n,r)=>{var o;return(o=n.parentNode)==null?void 0:o.insertBefore(r,n.nextSibling)})}appendTo(t){let n=On(t);for(let r=0;r<n.length;r++)for(let o of this.elements)n[r].appendChild(r===n.length-1?o:o.cloneNode(!0));return this}prependTo(t){let n=On(t);for(let r=0;r<n.length;r++){let o=n[r],i=this.elements.map(s=>r===n.length-1?s:s.cloneNode(!0));for(let s=i.length-1;s>=0;s--)o.insertBefore(i[s],o.firstChild)}return this}replaceWith(t){for(let n of this.elements){let r=n.parentNode;if(r){for(let o of rf(t))r.insertBefore(o,n);oe(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=On(t)[0];if(!o)continue;let i=o.cloneNode(!0);(n=r.parentNode)==null||n.insertBefore(i,r);let s=i;for(;s.firstElementChild;)s=s.firstElementChild;s.appendChild(r)}return this}unwrap(){let t=new Set;for(let n of this.elements){let r=n.parentElement;r&&r!==document.body&&t.add(r)}for(let n of t){let r=n.parentNode;if(r){for(;n.firstChild;)r.insertBefore(n.firstChild,n);oe(n),n.remove()}}return this}remove(){for(let t of this.elements)oe(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))oe(n);t.replaceChildren()}return this}clone(t=!0){return new e(this.elements.map(n=>n.cloneNode(t)))}on(t,...n){var a;let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0],s=(a=r?n[2]:n[1])!=null?a:{};if(typeof i!="function")return this;for(let l of this.elements)for(let c of Hn(t)){let d=u=>{if(!o){i.call(l,u);return}let f=u.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,u)};l.addEventListener(c,d,s),ug(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?Hn(t):null;for(let a of this.elements){let l=Gi.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),f=o===null||d.selector===o,p=i===null||d.handler===i;u&&f&&p?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}Gi.set(a,c)}return this}once(t,...n){let r=typeof n[0]=="string",o=r?n[0]:null,i=r?n[1]:n[0];if(typeof i!="function")return this;let s=this,a=function(l){return o?s.off(t,o,a):s.off(t,a),i.call(this,l)};return o?this.on(t,o,a):this.on(t,a)}trigger(t,n){for(let r of this.elements){if(n===void 0&&typeof r[t]=="function"){r[t]();continue}let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}emit(t,n){for(let r of this.elements){let o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});o.__voodoo=!0,r.dispatchEvent(o)}return this}show(){for(let t of this.elements)lf(t);return this}hide(){for(let t of this.elements)cf(t);return this}toggle(t){for(let n of this.elements)(t===void 0?af(n):t)?lf(n):cf(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),br(n,t);return this}fadeOut(t=220){for(let n of this.elements)yr(n,t);return this}slideUp(t=240){for(let n of this.elements)Nn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Pn(n,t);return this}slideToggle(t=240){for(let n of this.elements)af(n)?(n.removeAttribute("hidden"),Pn(n,t)):Nn(n,t);return this}animate(t,n=300){for(let r of this.elements)typeof r.animate=="function"&&r.animate(t,n);return this}scrollIntoView(t={behavior:"smooth",block:"start"}){var n;return(n=this.elements[0])==null||n.scrollIntoView(t),this}serialize(){let t=this.elements[0];if(!t)return"";let n=new URLSearchParams;for(let r of uf(t)){if(!dg(r))continue;let o=r,i=r;if(o.tagName==="SELECT"&&i.multiple){for(let s of Array.from(i.selectedOptions))n.append(o.name,s.value);continue}n.append(o.name,o.value)}return n.toString()}serializeObject(){var r,o,i,s;let t=this.elements[0],n={};if(!t)return n;for(let a of uf(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;p=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;p=l.value}else c==="file"?p=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&f.multiple?p=Array.from(f.selectedOptions).map(m=>m.value):c==="number"||c==="range"?p=l.value===""?null:Number(l.value):p=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(p):n[u]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[u]=p:n[u]=[m,p];continue}n[u]=p}return n}focus(t){var n;return(n=this.elements[0])==null||n.focus(t),this}blur(){for(let t of this.elements)t.blur();return this}select(){for(let t of this.elements){let n=t;typeof n.select=="function"&&n.select()}return this}walk(t=!1){for(let n of this.elements)t&&oe(n),ue(n,ze(n.parentNode));return this}destroy(){for(let t of this.elements)oe(t);return this}};function vl(e,t){if(typeof e=="function"){hl(e);let n=typeof document!="undefined"?document.documentElement:null;return new Nt(n?[n]:[])}return new Nt(On(e,t))}function hl(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{pu(()=>{try{e==null||e()}catch(n){te(n,"V.ready")}t()})})}function vf(e){return new Nt(ml(e))}xe();ye();var In=new Map,nt={emit(e,t){let n=In.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=In.get(e);return n||In.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=In.get(e))==null||n.delete(t)},clear(e){e?In.delete(e):In.clear()},count(e){var t,n;return(n=(t=In.get(e))==null?void 0:t.size)!=null?n:0}};var Q={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},Qi="__voodooRoute",bf=10,Ht=[],yf=new Map,Ji=new Map,wr="inicial",Zi=!1,xf=!1;function fg(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var we=ee(fg());function wo(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function wf(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function pg(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function xl(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=wf(t.slice(i+1)),t=t.slice(0,i)),{path:wo(t),query:o,hash:n}}function mg(e){let t=Q.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function kf(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:Q.mode==="hash"?xl(window.location.hash.slice(1)||"/"):{path:wo(mg(window.location.pathname)),query:wf(window.location.search),hash:window.location.hash.slice(1)}}function Ef(e,t,n){let r=pg(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function wl(e){let t=Ef(e.path,e.query,e.hash);if(Q.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${Q.base==="/"?"":Q.base.replace(/\/$/,"")}${t}`||"/"}var bl=!1,es=!1;function kl(e,t,n){if(!bl)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;bl=!0}if(Q.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){es=!0;try{window.location.hash=o}finally{setTimeout(()=>{es=!1},0)}}}function Tf(e,t){let n=e==="*"?"*":wo(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function vg(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(gl).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(gl(i)!==o.value)return null;r++;continue}n[o.value]=gl(i),r++}return r===t.length?n:null}function gl(e){try{return decodeURIComponent(e)}catch(t){return e}}function hg(e){let t=e.split("/").filter(Boolean),n=null;for(let r of Ht){let o=vg(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function El(e){var t,n;return e&&(n=(t=Ht.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function kr(e){let{path:t,query:n,hash:r}=xl(e);return Tl(t,n,r)}function Tl(e,t,n){var o,i;let r=hg(e);return{path:e,fullPath:Ef(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Er(){return{path:we.path,fullPath:we.fullPath,params:{...we.params},query:{...we.query},hash:we.hash,name:we.name,meta:we.meta,matched:we.matched}}function Ll(e){we.path=e.path,we.fullPath=e.fullPath,we.params=e.params,we.query=e.query,we.hash=e.hash,we.name=e.name,we.meta=e.meta,we.matched=e.matched;let t=El(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=Q.titleTemplate.includes("%s")?Q.titleTemplate.replace("%s",t.title):t.title)}async function Ml(e,t){let n=El(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(Q.beforeEach){let r=await Q.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function ns(){typeof window!="undefined"&&yf.set(wr,window.scrollY)}function Sl(e,t,n){typeof window!="undefined"&&Fe(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(Q.scrollBehavior){let i=Q.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function vn(e,t={}){var a,l;if(typeof window=="undefined")return!1;Lf();let n=Er(),r=kr(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>bf)return re(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ml(r,n);if(d===!1)return nt.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=kr(d);continue}break}ns();let o=ge("rota"),i={...(a=t.state)!=null?a:{},[Qi]:o},s=wl(r);return kl(i,s,t.replace===!0),wr=o,Ll(r),t.scroll!==!1&&Sl(r,n,null),(l=Q.afterEach)==null||l.call(Q,Er(),n),nt.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function gg(e){var c,d;if(es)return;let{path:t,query:n,hash:r}=kf(),o=Tl(t,n,r),i=Er();if(o.fullPath===i.fullPath)return;let s=await Ml(o,i);if(s===!1){kl({[Qi]:wr},wl(i),!0),nt.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){vn(s,{replace:!0});return}ns();let a=e.state,l=a&&a[Qi]||ge("rota");wr=l,Ll(o),Sl(o,i,(c=yf.get(l))!=null?c:0),(d=Q.afterEach)==null||d.call(Q,Er(),i),nt.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function ts(e){gg(e)}function Lf(){Zi||typeof window=="undefined"||(Zi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",ts),Q.mode==="hash"&&window.addEventListener("hashchange",ts),window.addEventListener("beforeunload",ns))}function bg(){!Zi||typeof window=="undefined"||(Zi=!1,window.removeEventListener("popstate",ts),window.removeEventListener("hashchange",ts),window.removeEventListener("beforeunload",ns),bl=!1,es=!1)}async function yg(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=kf(),r=Er(),o=Tl(e,t,n);for(let s=0;;s++){if(s>bf){re("Router: too many redirects in the initial route.");return}let a=await Ml(o,r);if(a===!1)return;if(typeof a=="string"){o=kr(a);continue}break}wr=ge("rota"),kl({[Qi]:wr},wl(o),!0),Ll(o),o.hash&&Sl(o,r,null),(i=Q.afterEach)==null||i.call(Q,Er(),r)}function xg(e,t){let n=Tf(e,t),r=Ht.findIndex(o=>o.pattern===n.pattern);r>-1?Ht.splice(r,1,n):Ht.push(n)}function wg(e){let t=e==="*"?"*":wo(e),n=Ht.findIndex(r=>r.pattern===t);n>-1&&Ht.splice(n,1)}function kg(){return[...Ht].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function Eg(e){e?Ji.delete(e):Ji.clear()}function Tg(e){var t,n,r,o,i,s,a,l,c,d;Q.mode=(t=e.mode)!=null?t:"history",Q.base=wo((n=e.base)!=null?n:"/"),Q.beforeEach=(r=e.beforeEach)!=null?r:null,Q.afterEach=(o=e.afterEach)!=null?o:null,Q.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",Q.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",Q.transition=(a=e.transition)!=null?a:!0,Q.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",Q.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,Ht.length=0;for(let[u,f]of Object.entries((d=e.routes)!=null?d:{}))Ht.push(Tf(u,f));return xf=!0,Lf(),yg(),ko}var Lg={get current(){return we},push:(e,t={})=>vn(e,t),replace:(e,t={})=>vn(e,{...t,replace:!0}),navigate:vn,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:kr,addRoute:xg,removeRoute:wg,patterns:kg,stop:bg,clearViewCache:Eg,get ready(){return xf}},ko=Object.defineProperties(Tg,Object.getOwnPropertyDescriptors(Lg));F("$route",()=>we);F("$router",()=>ko);async function Mg(e){let t=Ji.get(e);if(t!==void 0)return t;let n=await Le.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return Ji.set(e,r),r}function Sg(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}x("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{Li(e);let i=e.innerHTML,s=Q.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))oe(u);e.textContent=""},c=(u,f)=>{if(l(),u!=null&&u.component){let p=document.createElement("div");p.setAttribute(`${w.prefix}component`,u.component),p.className="v-router-page",e.appendChild(p),ue(p,t);return}e.innerHTML=f!=null?f:i;for(let p of Array.from(e.childNodes))ue(p,t)},d=async(u,f)=>{let p=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{p=await Mg(u.view)}catch(m){te(m,`v-router-view loading "${u.view}"`),p=""}finally{e.classList.remove("v-router-loading")}if(f!==a)return}s?Wi(()=>c(u,p)):c(u,p)};r(()=>{let u=we.matched;Sg(we.params);let f=El(u);d(f,++a)}),o(()=>{a++,l()})},{priority:_.DEFAULT});var Ag=/^[a-z][a-z0-9+.-]*:/i;function hf(e){return!!(!e||e.startsWith("//")||Ag.test(e))}function gf(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return Q.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function yl(e,t){let{path:n}=xl(e);return n==="/"||t?we.path===n:we.path===n||we.path.startsWith(`${n}/`)}x("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=gf(e,t,i);d&&(hf(d)||Q.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),vn(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=gf(e,t,i);if(!l||hf(l))return;let c=yl(l,!0),d=c||yl(l,!1);e.classList.toggle(Q.linkActiveClass,d),e.classList.toggle(Q.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});x("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?yl(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});xe();ye();var Cg="voodoo:locale",U=ee({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Tr=Cg,Lr="",Al=new Map;function rs(e,t){let n=U.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function os(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(U.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var Mf=new Map;function Rg(e,t){try{let n=Mf.get(e);return n||Mf.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var $g=["zero","one","two","few","many","other"];function Dg(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=Rg(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=$g.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var Pg=/\{\s*([\w.$-]+)\s*\}/g;function Ng(e,t){return e.indexOf("{")===-1?e:e.replace(Pg,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Hg(e){return e==null?{}:typeof e=="number"?{n:e}:e}function Mr(e,t){var i,s;if(!e)return"";let n=Hg(t),r=U.locale,o=null;for(let a of os(r))if(o=rs(a,e),o!==null)break;if(o===null&&U.fallback&&U.fallback!==r){for(let a of os(U.fallback))if(o=rs(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=Dg(l,Number.isNaN(a)?0:a,r)}return Ng(o,n)}function Og(e,t){let n=t!=null?t:U.locale;for(let r of os(n))if(rs(r,e)!==null)return!0;if(U.fallback&&U.fallback!==n){for(let r of os(U.fallback))if(rs(r,e)!==null)return!0}return!1}function Sf(e,t={}){return Ja(e,{...t,locale:U.locale})}function Af(e,t){return Qa(e,{locale:U.locale,currency:t!=null?t:U.currency})}function Cf(e,t="short"){return Za(e,t,U.locale)}function Rf(e){return el(e,U.locale)}function ss(){return U.locale}function Ig(e){var t;return(t=U.messages[e!=null?e:U.locale])!=null?t:{}}function is(e,t){let n=U.messages[e];return n?Pi(n,t):U.messages[e]=t,e}async function Cl(e,t){if(typeof t!="string"){is(e,t);return}let n=Al.get(e);if(n)return n;let r=Le.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&is(e,o)}).catch(o=>{te(o,`i18n ao carregar "${t}"`)}).finally(()=>{Al.delete(e)});return Al.set(e,r),r}function Eo(e){let t=e==null?void 0:e.trim();if(!t||t===U.locale)return Promise.resolve();let n=U.locale;return U.locale=t,U.currency=U.currency||w.currency,w.locale=t,Hi(t,U.currency),Tr&&ke.set(Tr,t),typeof document!="undefined"&&(document.documentElement.lang=t),nt.emit("locale",{from:n,to:t}),!U.messages[t]&&Lr?Cl(t,Lr.replace("{locale}",t)):Promise.resolve()}function $f(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(U.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function Fg(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))is(l,c);U.fallback=(o=e.fallback)!=null?o:U.fallback,U.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:U.currency,Lr=(a=e.loadPath)!=null?a:Lr,e.persist===!1?Tr=null:typeof e.persist=="string"&&(Tr=e.persist);let t=Tr?ke.get(Tr):void 0,n=e.detect===!1?null:$f(),r=t||n||e.locale||U.locale||U.fallback;return U.locale=r,w.locale=r,Hi(r,U.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!U.messages[r]&&Lr&&Cl(r,Lr.replace("{locale}",r)),To}var zg={get locale(){return U.locale},get fallback(){return U.fallback},get locales(){return Object.keys(U.messages)},t:Mr,te:Og,n:Sf,c:Af,d:Cf,rt:Rf,setLocale:Eo,getLocale:ss,addMessages:is,loadMessages:Cl,messagesOf:Ig,detectLocale:$f},To=Object.defineProperties(Fg,Object.getOwnPropertyDescriptors(zg));F("$t",()=>Mr);F("$locale",()=>U.locale);F("$i18n",()=>To);F("$n",()=>Sf);F("$c",()=>Af);F("$d",()=>Cf);F("$rt",()=>Rf);var Bg=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function jg(e,t){let n=e.trim();if(!n)return"";if(Bg.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function qg(e,t){var o;let n=(o=Oe(e,`${w.prefix}t-params`))!=null?o:Oe(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}x("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=jg(n,o);if(!i)return;let s=Mr(i,qg(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});x("t-params",()=>{});x("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&Eo(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===U.locale)})});xe();ye();Be();Be();ye();var Rl=new WeakMap;function gn(e,t){var n;return(n=Oe(e,`${w.prefix}${t}`))!=null?n:Oe(e,`data-v-${t}`)}function as(e,t){return ln(e,`${w.prefix}${t}`)||ln(e,`data-v-${t}`)}function le(e,t){let n=Rl.get(e);return n&&t in n?n[t]:gn(e,t)}function ls(e,t,n){var o;let r=(o=Rl.get(e))!=null?o:{};r[t]=n,Rl.set(e,r)}function ne(e){x(e,({el:t,expression:n})=>{ls(t,e,n)},{priority:_.BIND})}function Ee(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ot(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=Y(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Vg=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
|
-
`,
|
|
141
|
+
`,hn=null;function ht(e){if(typeof document=="undefined")return;ae("ui-live",Vg),(!hn||!hn.isConnected)&&(hn=document.createElement("div"),hn.className="v-visually-hidden",hn.setAttribute("role","status"),hn.setAttribute("aria-live","polite"),document.body.appendChild(hn));let t=hn;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function cs(e,t,n){return Ti(e,t).filter(r=>sr(r,n)===e)}Be();ye();var Ug=`
|
|
142
142
|
.v-draggable,.v-sortable>*{-webkit-user-select:none;user-select:none}
|
|
143
143
|
.v-drag-handle{cursor:grab;touch-action:none}
|
|
144
144
|
.v-drag-handle:active{cursor:grabbing}
|
|
@@ -162,7 +162,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
162
162
|
@media (prefers-reduced-motion: reduce){
|
|
163
163
|
.v-drag-ghost{transition:none !important}
|
|
164
164
|
}
|
|
165
|
-
`;function to(){ge(),Z("dnd",mg)}var sr=new Map,ar=new Map;function el(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function bt(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function vg(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function nf(e){return bt(e).map((t,n)=>vg(t,n))}function rf(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var $=null,eo=0;function hg(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function of(e,t){if(!($!=null&&$.ghost))return;let n=$.axis==="y"?$.lastX:e,r=$.axis==="x"?$.lastY:t;$.ghost.style.transform=`translate3d(${Math.round(n-$.grabX)}px, ${Math.round(r-$.grabY)}px, 0)`}function gg(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function bg(){if(!$)return;let e=56,t=16,n=$.lastX,r=$.lastY,o=document.elementFromPoint(n,r),i=gg(o!=null?o:$.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function yg(){let e=()=>{!$||$.keyboard||(bg(),eo=requestAnimationFrame(e))};eo=requestAnimationFrame(e)}function xg(){eo&&cancelAnimationFrame(eo),eo=0}function sf(e,t){let n=sr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function tl(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function af(e,t){for(let n of ar.values())n.el.classList.toggle("v-drop-active",t&&tl(n,e));for(let n of sr.values())n.el.classList.toggle("v-drop-active",t&&sf(n.el,e))}function wg(e,t,n,r){let o=rf(e),i=null;for(let s of bt(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function nl(e,t){to();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;$={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?bt(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):($.ghost=hg(e,n),of(t.x,t.y),yg()),af($,!0),document.addEventListener("keydown",cf,!0),pe(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function kg(e,t){var a,l,c;if(!$)return;$.lastX=e,$.lastY=t,of(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;$.mode==="sort"&&r&&sf(r,$)?($.overList&&$.overList!==r&&$.overList.classList.remove("v-drop-over"),$.overList=r,r.classList.add("v-drop-over"),wg(r,$.item,e,t)):$.overList&&!r&&$.overList.classList.remove("v-drop-over");let i=o?ar.get(o):void 0,s=i?tl(i,$):!1;$.overDrop&&$.overDrop!==o&&($.overDrop.classList.remove("v-drop-over"),$.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),$.overDrop=o),(c=$.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Eg(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function lf(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),af(e,!1),xg(),document.removeEventListener("keydown",cf,!0),$=null}function rl(){var i;let e=$;if(!e)return;let t=e.item.parentElement,n=t?bt(t).indexOf(e.item):-1,r=e.overDrop,o=r?ar.get(r):void 0;if(e.mode==="sort"&&t&&sr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:nf(t)};pe(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&pe(e.startList,"voodoo:sorted",{...a,order:nf(e.startList)}),Je(`Item moved to position ${n+1} of ${bt(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),gt(o.expression,o.scope,r,a,s),Je("Item dropped in drop zone")}pe(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),lf(e)}function Za(){let e=$;e&&(Eg(e),pe(e.item,"voodoo:drag-cancel",{item:e.item}),Je("Drag canceled"),lf(e))}function cf(e){!$||e.key!=="Escape"||(e.preventDefault(),Za())}function df(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=p=>{if(p.pointerId===o){if(!a){if(Math.hypot(p.clientX-i,p.clientY-s)<4||!r)return;a=!0,nl(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),kg(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=p=>{p.pointerId===o&&(a&&rl(),c())},u=()=>{a&&Za(),c()},f=p=>{if(p.button!==0||$)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&Za(),c()})}function Tg(e){return e?Array.from(sr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function Lg(e,t){if(!$)return!1;let n=e.parentElement;if(!n)return!1;let r=rf(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=bt(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),Je(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Tg($.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),Je(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Mg(e){return Array.from(ar.values()).filter(t=>tl(t,e)).map(t=>t.el)}y("dnd-group",({el:e,expression:t})=>{to();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});y("sortable",({el:e,expression:t,cleanup:n})=>{to(),e.classList.add("v-sortable");let r=ee(e,"sortable-handle")||t.trim()||null,o={el:e,group:el(e,ee(e,"sortable-group")),handle:r};sr.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of bt(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of bt(e))i(l)});s==null||s.observe(e,{childList:!0}),df(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=bt(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=bt(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),$&&$.item===d){rl(),Je("Item dropped");return}if($)return;nl(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Je("Item grabbed. Use arrow keys to move and space to drop.");return}!$||$.item!==d||l.key.startsWith("Arrow")&&Lg(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),sr.delete(e)})});K("sortable-group");K("sortable-handle");y("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;to(),e.classList.add("v-draggable");let o=ee(e,"draggable-handle")||null,i=(ee(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=ee(e,"draggable-data")||t.trim(),l=el(e,ee(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let c=()=>a?q(a,n,"v-draggable-data"):null;df(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,f=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!$||($.overDrop=h,ve.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),Je(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},p=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),$&&$.item===e){rl(),d=[];return}if($)return;nl(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=$?Mg($):[],u=0,d.length?f():Je("No targets available");return}if(!(!$||$.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,f();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let h of d)h.classList.remove("v-drop-over")})});K("draggable-handle");K("draggable-axis");K("draggable-data");K("draggable-group");y("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{to(),e.classList.add("v-droppable");let o={el:e,group:el(e,ee(e,"droppable-group")),accept:ee(e,"droppable-accept"),expression:t,scope:n};ar.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{ar.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});K("droppable-accept");K("droppable-group");var Sg=`
|
|
165
|
+
`;function Mo(){Me(),ae("dnd",Ug)}var Sr=new Map,Ar=new Map;function Dl(e,t){if(t&&t.trim())return t.trim();let n=e.closest("[data-v-dnd-group]");return(n==null?void 0:n.getAttribute("data-v-dnd-group"))||null}function It(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function _g(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Df(e){return It(e).map((t,n)=>_g(t,n))}function Pf(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var D=null,Lo=0;function Wg(e,t){let n=e.cloneNode(!0);n.classList.add("v-drag-ghost"),n.classList.remove("v-dragging","v-grabbed"),n.removeAttribute("id");for(let r of Array.from(n.querySelectorAll("[id]")))r.removeAttribute("id");return n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function Nf(e,t){if(!(D!=null&&D.ghost))return;let n=D.axis==="y"?D.lastX:e,r=D.axis==="x"?D.lastY:t;D.ghost.style.transform=`translate3d(${Math.round(n-D.grabX)}px, ${Math.round(r-D.grabY)}px, 0)`}function Kg(e){let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){let n=getComputedStyle(t),r=(n.overflowY==="auto"||n.overflowY==="scroll")&&t.scrollHeight>t.clientHeight+2,o=(n.overflowX==="auto"||n.overflowX==="scroll")&&t.scrollWidth>t.clientWidth+2;if(r||o)return t;t=t.parentElement}return null}function Yg(){if(!D)return;let e=56,t=16,n=D.lastX,r=D.lastY,o=document.elementFromPoint(n,r),i=Kg(o!=null?o:D.overList);if(i){let s=i.getBoundingClientRect();r-s.top<e?i.scrollTop-=t:s.bottom-r<e&&(i.scrollTop+=t),n-s.left<e?i.scrollLeft-=t:s.right-n<e&&(i.scrollLeft+=t);return}r<e?window.scrollBy(0,-t):window.innerHeight-r<e&&window.scrollBy(0,t),n<e?window.scrollBy(-t,0):window.innerWidth-n<e&&window.scrollBy(t,0)}function Xg(){let e=()=>{!D||D.keyboard||(Yg(),Lo=requestAnimationFrame(e))};Lo=requestAnimationFrame(e)}function Gg(){Lo&&cancelAnimationFrame(Lo),Lo=0}function Hf(e,t){let n=Sr.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Pl(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Of(e,t){for(let n of Ar.values())n.el.classList.toggle("v-drop-active",t&&Pl(n,e));for(let n of Sr.values())n.el.classList.toggle("v-drop-active",t&&Hf(n.el,e))}function Qg(e,t,n,r){let o=Pf(e),i=null;for(let s of It(e)){if(s===t)continue;let a=s.getBoundingClientRect(),l=o?a.left+a.width/2:a.top+a.height/2;if((o?n:r)<l){i=s;break}}if(i){(t.nextElementSibling!==i||t.parentElement!==e)&&e.insertBefore(t,i);return}e.lastElementChild!==t&&e.appendChild(t)}function Nl(e,t){Mo();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;D={item:e,mode:t.mode,data:t.data,group:t.group,axis:t.axis,ghost:null,pointerId:t.pointerId,grabX:t.keyboard?n.width/2:t.x-n.left,grabY:t.keyboard?n.height/2:t.y-n.top,startParent:e.parentElement,startNext:e.nextSibling,startList:r,startIndex:r?It(r).indexOf(e):-1,overDrop:null,overList:r,keyboard:!!t.keyboard,lastX:t.x,lastY:t.y},e.classList.add("v-dragging"),e.setAttribute("aria-grabbed","true"),t.keyboard?e.classList.add("v-grabbed"):(D.ghost=Wg(e,n),Nf(t.x,t.y),Xg()),Of(D,!0),document.addEventListener("keydown",Ff,!0),Ee(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Jg(e,t){var a,l,c;if(!D)return;D.lastX=e,D.lastY=t,Nf(e,t);let n=document.elementFromPoint(e,t),r=(a=n==null?void 0:n.closest(".v-sortable"))!=null?a:null,o=(l=n==null?void 0:n.closest(".v-droppable"))!=null?l:null;D.mode==="sort"&&r&&Hf(r,D)?(D.overList&&D.overList!==r&&D.overList.classList.remove("v-drop-over"),D.overList=r,r.classList.add("v-drop-over"),Qg(r,D.item,e,t)):D.overList&&!r&&D.overList.classList.remove("v-drop-over");let i=o?Ar.get(o):void 0,s=i?Pl(i,D):!1;D.overDrop&&D.overDrop!==o&&(D.overDrop.classList.remove("v-drop-over"),D.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),D.overDrop=o),(c=D.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Zg(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function If(e){var t,n,r;(t=e.ghost)==null||t.remove(),e.item.classList.remove("v-dragging","v-grabbed"),e.item.setAttribute("aria-grabbed","false"),(n=e.overDrop)==null||n.classList.remove("v-drop-over"),(r=e.overList)==null||r.classList.remove("v-drop-over"),Of(e,!1),Gg(),document.removeEventListener("keydown",Ff,!0),D=null}function Hl(){var i;let e=D;if(!e)return;let t=e.item.parentElement,n=t?It(t).indexOf(e.item):-1,r=e.overDrop,o=r?Ar.get(r):void 0;if(e.mode==="sort"&&t&&Sr.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Df(t)};Ee(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&Ee(e.startList,"voodoo:sorted",{...a,order:Df(e.startList)}),ht(`Item moved to position ${n+1} of ${It(t).length}`)}if(r&&o){let s={item:e.item,data:e.data,from:(i=e.startList)!=null?i:e.startParent,to:r,index:n},a=new CustomEvent("voodoo:drop",{detail:s,bubbles:!0});r.dispatchEvent(a),Ot(o.expression,o.scope,r,a,s),ht("Item dropped in drop zone")}Ee(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),If(e)}function $l(){let e=D;e&&(Zg(e),Ee(e.item,"voodoo:drag-cancel",{item:e.item}),ht("Drag canceled"),If(e))}function Ff(e){!D||e.key!=="Escape"||(e.preventDefault(),$l())}function zf(e,t,n){let r=null,o=-1,i=0,s=0,a=!1,l=p=>{if(p.pointerId===o){if(!a){if(Math.hypot(p.clientX-i,p.clientY-s)<4||!r)return;a=!0,Nl(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),Jg(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),r=null,o=-1,a=!1},d=p=>{p.pointerId===o&&(a&&Hl(),c())},u=()=>{a&&$l(),c()},f=p=>{if(p.button!==0||D)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let h=t.itemFrom(m);h&&(r=h,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",d),window.addEventListener("pointercancel",u))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&$l(),c()})}function eb(e){return e?Array.from(Sr.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function tb(e,t){if(!D)return!1;let n=e.parentElement;if(!n)return!1;let r=Pf(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=It(n),a=s.indexOf(e);if(o||i){let l=a+(o?1:-1);return l<0||l>=s.length?!1:(o?n.insertBefore(e,s[l].nextSibling):n.insertBefore(e,s[l]),ht(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=eb(D.group),c=l.indexOf(n);if(c===-1)return!1;let d=l[c+(t==="ArrowRight"?1:-1)];return d?(d.appendChild(e),ht(`Moved to list ${l.indexOf(d)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function nb(e){return Array.from(Ar.values()).filter(t=>Pl(t,e)).map(t=>t.el)}x("dnd-group",({el:e,expression:t})=>{Mo();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});x("sortable",({el:e,expression:t,cleanup:n})=>{Mo(),e.classList.add("v-sortable");let r=le(e,"sortable-handle")||t.trim()||null,o={el:e,group:Dl(e,le(e,"sortable-group")),handle:r};Sr.set(e,o),e.hasAttribute("aria-label")||e.setAttribute("aria-label","Sortable list");let i=l=>{var c;l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),l.hasAttribute("aria-grabbed")||l.setAttribute("aria-grabbed","false"),r?(c=l.querySelector(r))==null||c.classList.add("v-drag-handle"):l.classList.add("v-drag-handle")};for(let l of It(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of It(e))i(l)});s==null||s.observe(e,{childList:!0}),zf(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=It(e).find(d=>d===l||d.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let d=It(e).find(u=>u===c||u.contains(c));if(d){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),D&&D.item===d){Hl(),ht("Item dropped");return}if(D)return;Nl(d,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),ht("Item grabbed. Use arrow keys to move and space to drop.");return}!D||D.item!==d||l.key.startsWith("Arrow")&&tb(d,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),Sr.delete(e)})});ne("sortable-group");ne("sortable-handle");x("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;Mo(),e.classList.add("v-draggable");let o=le(e,"draggable-handle")||null,i=(le(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=le(e,"draggable-data")||t.trim(),l=Dl(e,le(e,"draggable-group"));o?(m=e.querySelector(o))==null||m.classList.add("v-drag-handle"):e.classList.add("v-drag-handle"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("aria-grabbed","false"),e.hasAttribute("aria-roledescription")||e.setAttribute("aria-roledescription","draggable item");let c=()=>a?Y(a,n,"v-draggable-data"):null;zf(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let d=[],u=0,f=()=>{d.forEach((v,g)=>v.classList.toggle("v-drop-over",g===u));let h=d[u];!h||!D||(D.overDrop=h,Te.reducedMotion?h.scrollIntoView({block:"nearest"}):h.scrollIntoView({block:"nearest",behavior:"smooth"}),ht(h.getAttribute("aria-label")||`Target ${u+1} of ${d.length}`))},p=h=>{if(h.key===" "||h.key==="Spacebar"){if(h.preventDefault(),D&&D.item===e){Hl(),d=[];return}if(D)return;Nl(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),d=D?nb(D):[],u=0,d.length?f():ht("No targets available");return}if(!(!D||D.item!==e||!d.length)){if(h.key==="ArrowDown"||h.key==="ArrowRight"){h.preventDefault(),u=(u+1)%d.length,f();return}(h.key==="ArrowUp"||h.key==="ArrowLeft")&&(h.preventDefault(),u=(u-1+d.length)%d.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let h of d)h.classList.remove("v-drop-over")})});ne("draggable-handle");ne("draggable-axis");ne("draggable-data");ne("draggable-group");x("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{Mo(),e.classList.add("v-droppable");let o={el:e,group:Dl(e,le(e,"droppable-group")),accept:le(e,"droppable-accept"),expression:t,scope:n};Ar.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{Ar.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});ne("droppable-accept");ne("droppable-group");var rb=`
|
|
166
166
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
167
167
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
168
168
|
.v-focus-ring:focus-visible{outline:2px solid var(--v-primary,#6D3BF5);outline-offset:2px;
|
|
@@ -267,8 +267,8 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
267
267
|
transition-duration:.01ms !important}
|
|
268
268
|
.v-skeleton{animation-duration:.01ms !important}
|
|
269
269
|
}
|
|
270
|
-
`;function we(){ge(),Z("ui",Sg)}function lr(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function Dt(e,t){return e.id||(e.id=le(`${t}-`)),e.id}var gf='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function no(e){return Array.from(e.querySelectorAll(gf)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Ii(e,t){let n=no(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function qe(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var ol=0,bf="";function yf(){if(ol++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;bf=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function xf(){ol!==0&&(--ol>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=bf))}function wf(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Cg(e,t=!0){if(e.removeAttribute("hidden"),t&&!ve.reducedMotion){Qn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function Ag(e,t=!0){if(t&&!ve.reducedMotion){Jn(e);return}e.style.display="none"}var Rg={top:"bottom",bottom:"top",left:"right",right:"left"};function kf(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Ef(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=Rg[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let f=0,p=0;return u==="top"||u==="bottom"?(f=u==="top"?i.top-s.height-o:i.bottom+o,p=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&p+s.width>a-o&&(p=i.right-s.width)):(p=u==="left"?i.left-s.width-o:i.right+o,f=r==="start"?i.top:i.top+i.height/2-s.height/2),p=Math.min(Math.max(o,p),Math.max(o,a-s.width-o)),f=Math.min(Math.max(o,f),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(p)}px`,t.style.top=`${Math.round(f)}px`,t.setAttribute("data-placement",u),u}var Oi=[],uf=!1,$g={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},Dg=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function ll(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?Dg?n.meta=!0:n.ctrl=!0:n.key=(r=$g[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function Pg(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function Ng(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function Tf(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function Hg(e){if(e.defaultPrevented)return;let t=Ng(e.target);for(let n of[...Oi])for(let r of n.combos)if(Pg(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function ro(e,t,n={}){let r=e.split(",").map(i=>ll(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Oi.push(o),uf||(uf=!0,document.addEventListener("keydown",Hg)),()=>{let i=Oi.indexOf(o);i>-1&&Oi.splice(i,1)}}y("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{we();let o=lr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Dt(o,"v-toggle")),qe(e,r);let a=i?o.classList.contains(i):!wf(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(Ag(o,s),a=!1):(Cg(o,s),a=!0),l(),pe(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var il=class{constructor(t){N(this,"panel");N(this,"triggers",new Set);N(this,"listeners",new Set);N(this,"open");N(this,"duration");this.panel=t,this.duration=Q(ee(t,"collapse-duration"),240);let n=(ee(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!wf(t),t.classList.add("v-collapse-panel"),Dt(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),ve.reducedMotion?this.panel.style.removeProperty("display"):pn(this.panel,this.duration),this.sync(),pe(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ve.reducedMotion?this.panel.style.display="none":mn(this.panel,this.duration),this.sync(),pe(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},ff=new WeakMap;function cl(e){let t=ff.get(e);return t||ff.set(e,t=new il(e)),t}y("collapse",({el:e})=>{we(),cl(e)});var sl=new WeakSet;y("collapse-toggle",({el:e,expression:t,cleanup:n})=>{we();let r=lr(e,t);if(!r)return;let o=cl(r);o.triggers.add(e),o.sync(),qe(e,n),sl.add(e),n(()=>sl.delete(e));let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});K("collapse-duration");var Fi=class{constructor(t,n,r){N(this,"trigger");N(this,"panel");N(this,"kind");N(this,"placement");N(this,"open",!1);N(this,"lastFocus",null);N(this,"homeParent");N(this,"homeNext");N(this,"reposition",()=>{this.open&&Ef(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});N(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});N(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Ii(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=kf(ee(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Dt(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?Lf(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=no(this.panel)[0])==null||t.focus()),pe(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};ve.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),pe(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function Lf(e){we(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}y("dropdown-menu",({el:e})=>{Lf(e)});y("dropdown",({el:e,expression:t,cleanup:n})=>{we();let r=lr(e,t);if(!r)return;let o=new Fi(e,r,"menu");qe(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});y("popover",({el:e,expression:t,cleanup:n})=>{we();let r=lr(e,t);if(!r)return;let o=new Fi(e,r,"dialog");qe(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});K("dropdown-position");K("popover-position");y("tooltip",({el:e,expression:t,cleanup:n})=>{we();let r=t.trim();if(!r)return;let o=kf(ee(e,"tooltip-position"),"top"),i=Q(ee(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(gf);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=le("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&Ef(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),ve.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&f()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),e.addEventListener("mouseleave",f),e.addEventListener("focusout",f),e.addEventListener("keydown",m),n(()=>{f(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",p),e.removeEventListener("focusin",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});K("tooltip-position");K("tooltip-delay");y("tabs",({el:e,expression:t,cleanup:n})=>{we();let r=Hi(e,"tab","tabs"),o=Hi(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>Xt(v,"tab")||String(g),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let l=Pi(e,"tabs-url")?Xt(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),x=o.find(T=>Xt(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),Dt(v,"v-tab"),x&&(Dt(x,"v-panel"),x.setAttribute("role","tabpanel"),x.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",x.id))});let c="",d=(v,g=!1)=>{if(r.some((b,x)=>i(b,x)===v)){c=v,r.forEach((b,x)=>{let T=i(b,x)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=Xt(b,"tab-panel")!==v;l&&_t.set(l,v),pe(e,"voodoo:tab",{id:v})}},u=v=>{let g=zn(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},f=v=>{let g=zn(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),x=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",E=-1;v.key===x?E=(b+1)%r.length:v.key===T?E=(b-1+r.length)%r.length:v.key==="Home"?E=0:v.key==="End"&&(E=r.length-1),E!==-1&&(v.preventDefault(),d(i(r[E],E),!0))},p=()=>{if(!l)return;let v=_t.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let h=(l?_t.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});K("tab");K("tab-panel");K("tabs-url");y("accordion",({el:e,cleanup:t})=>{we();let n=Hi(e,"accordion-item","accordion");if(!n.length)return;let r=Pi(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(Xt(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let f=cl(d);f.triggers.add(c),f.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),Dt(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",Dt(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d],f=sl.has(c);if(r&&(f?u.open:!u.open))for(let m of i)m!==u&&m.hide();f||u.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});K("accordion-item");K("accordion-single");var al=class{constructor(t){N(this,"origem",null);N(this,"panel");N(this,"triggers",new Set);N(this,"open",!1);N(this,"backdrop",null);N(this,"lastFocus",null);N(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Ii(this.panel,t)}});N(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(ee(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),Dt(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",Dt(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),yf();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ve.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=no(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),pe(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};ve.reducedMotion?t():setTimeout(t,300),xf(),(r=this.lastFocus)==null||r.focus(),this.sync(),pe(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},pf=new WeakMap;function dl(e){let t=pf.get(e);return t||pf.set(e,t=new al(e)),t}y("drawer-content",({el:e})=>{we(),dl(e)});function Mf(e,t,n){we();let r=lr(e,t);if(!r)return;let o=dl(r);o.triggers.add(e),o.sync(),qe(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}y("drawer",({el:e,expression:t,cleanup:n})=>{Mf(e,t,n)});y("offcanvas",({el:e,expression:t,cleanup:n})=>{Mf(e,t,n)});y("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?lr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:zn(e,"drawer-content");if(!r)return;qe(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),dl(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});K("drawer-side");y("theme-toggle",({el:e,cleanup:t})=>{qe(e,t);let n=()=>{let i=mt.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=mt.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),mt.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});y("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){Se(i);return}r(()=>{o()&&Se(i)})},{priority:j.INIT});y("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Ii(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Se(()=>{var l;return((l=no(e)[0])!=null?l:e).focus()}),i=a}):Se(()=>{var a;return((a=no(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});y("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||gt(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});y("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||gt(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});y("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=ro(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=ll(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Tf(s)),r(i)});y("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(ee(e,"scroll-offset")||"0")||0,a=ve.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let l=null;try{l=document.querySelector(i)}catch(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=ee(e,"scrollspy-class")||"v-active",o=parseFloat(ee(e,"scroll-offset")||"0")||0,i=n.map(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}pe(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=zr(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Se(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});K("scroll-offset");K("scrollspy-class");y("sticky",({el:e,expression:t,cleanup:n})=>{we();let r=parseFloat(t.trim()||ee(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});K("sticky-offset");y("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){gt(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(gt(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});y("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=ee(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let d=gt(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});K("infinite-distance");function Sf(e,t,n,r){if(we(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let l=ee(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}y("lazy-src",({el:e,expression:t,cleanup:n})=>{Sf(e,t.trim(),n,!1)});y("lazy-bg",({el:e,expression:t,cleanup:n})=>{Sf(e,t.trim(),n,!0)});K("lazy-error");y("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{we();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function ul(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function fl(e,t){we();let n=ee(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Je(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function Cf(e,t){var r;let n=ee(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}y("copy",({el:e,expression:t,cleanup:n})=>{we(),qe(e,n);let r=o=>{o.preventDefault();let i=Cf(e,t);i&&ul(i).then(s=>{fl(e,s),pe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("copy-from",({el:e,expression:t,cleanup:n})=>{if(we(),Ni(e,"copy-from",t),Pi(e,"copy"))return;qe(e,n);let r=o=>{o.preventDefault();let i=Cf(e,"");i&&ul(i).then(s=>{fl(e,s),pe(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("copy-label");function Og(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
|
|
271
|
-
`);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${I(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}y("print",({el:e,expression:t,cleanup:n})=>{qe(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Og(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});y("share",({el:e,expression:t,cleanup:n})=>{we(),qe(e,n);let r=o=>{o.preventDefault();let i=t.trim()||ee(e,"share-url")||location.href,s={title:ee(e,"share-title")||document.title,url:i},a=ee(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>pe(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}ul(i).then(c=>{fl(e,c),pe(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("share-title");K("share-url");K("share-text");y("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;qe(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});y("download",({el:e,expression:t,cleanup:n})=>{qe(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=ee(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),pe(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});K("download-name");y("resizable",({el:e,expression:t,cleanup:n})=>{we();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let l=(c,d)=>{let u=0,f=0,p=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,p+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-f)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),pe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var x;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,f=g.clientY,p=b.width,m=b.height,(x=c.setPointerCapture)==null||x.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,x=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${x.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,x.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${x.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,x.height-b)}px`:T=!1,T&&(g.preventDefault(),pe(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function mf(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Fg(){let e=[];for(let t of Go(document,"command-item")){let n=(Xt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:ee(t,"command-hint")||"",el:t}))}return e}function vf(){if(we(),document.querySelector(".v-command"))return;let e=Fg(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=le("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),yf();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),xf(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let x=document.createElement("span");if(x.textContent=v.label,b.appendChild(x),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},f=()=>{let m=mf(o.value.trim());s=m?e.filter(h=>mf(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&Ii(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}y("command",({el:e,expression:t,cleanup:n})=>{we();let r=t.trim()||ee(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),vf()},i=ro(r,()=>vf(),{allowInInput:!0}),s=ll(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Tf(s)),qe(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});y("command-item",({el:e,expression:t})=>{Ni(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});K("command-key");K("command-hint");var hf=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];y("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=Q(ee(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,gt(t,n,e,void 0,{idle:!0,after:o}),pe(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of hf)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of hf)window.removeEventListener(d,c)})});K("idle-after");function Af(e,t,n,r,o,i){let s=a=>{gt(t,n,e,a,{online:navigator.onLine}),pe(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Se(()=>s())}y("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Af(e,t,n,o,"online",!!r.immediate)});y("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{Af(e,t,n,o,"offline",r["no-immediate"]!==!0)});de();ce();Ae();de();ce();Ae();var lt={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function $f(e,t){var i,s,a,l,c,d;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((l=r[0])!=null?l:"").trim(),max:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,f)=>f in o?o[f]:u)}var ji=new Map;function J(e,t,n){let r=e.toLowerCase();ji.set(r,{name:r,fn:t,message:n}),n&&!lt[r]&&(lt[r]=n),y(`validate-${r}`,({el:o,cleanup:i})=>{Xi(o,i)})}function Pt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function Ig(e,t){return Pt(e,t)!==null}var zg=new Set(["INPUT","SELECT","TEXTAREA"]),Bg=new Set(["submit","button","reset","image"]);function Ze(e){var t;return!!e&&typeof e=="object"&&zg.has((t=e.tagName)!=null?t:"")}function yt(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function so(e){var n;let t=yt(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function vl(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function jg(e){var o,i;let t=Pt(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${zi(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function zi(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function qi(e,t){var s,a,l;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return Ze(c)?c:null}let o=r.querySelector(`[name="${zi(n)}"]`);if(Ze(o))return o;let i=document.getElementById(n);return Ze(i)?i:null}var qg=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,Vg=/^-?\d+$/,Ug=/^-?\d+(?:[.,]\d+)?$/,_g=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,Wg=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function ao(e){return e.replace(/\D/g,"")}function Vi(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Kg(e){let t=ao(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function Yg(e){let t=ao(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function Xg(e){let t=ao(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function Gg(e){let t=ao(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function bn(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function Ui(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=bn(e);if(r)return r;let o=qi(t,e);return o?bn(so(o)):null}J("required",(e,t,n)=>{let r=yt(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});J("email",e=>qg.test(e.trim()));J("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});J("number",e=>e.trim()!==""&&Number.isFinite(Vi(e)));J("integer",e=>Vg.test(e.trim()));J("decimal",(e,t)=>{var i;let n=e.trim();if(!Ug.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});J("alpha",e=>_g.test(e.trim().replace(/\s+/g,"")));J("alphanumeric",e=>Wg.test(e.trim().replace(/\s+/g,"")));J("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));J("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));J("min",(e,t,n)=>{let r=Ui(t,n);if(r&&yt(n).startsWith("date")){let o=bn(e);return!o||o.getTime()>=r.getTime()}return Vi(e)>=Number(t!=null?t:0)});J("max",(e,t,n)=>{let r=Ui(t,n);if(r&&yt(n).startsWith("date")){let o=bn(e);return!o||o.getTime()<=r.getTime()}return Vi(e)<=Number(t!=null?t:1/0)});J("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Vi(e);return Number.isFinite(o)&&o>=n&&o<=r});J("match",(e,t,n)=>{if(!t)return!0;let r=qi(n,t);return r?so(r)===e:!0});J("same",(e,t,n)=>{if(!t)return!0;let r=qi(n,t);return!r||so(r)===e});J("different",(e,t,n)=>{if(!t)return!0;let r=qi(n,t);return!r||so(r)!==e});J("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=Pt(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return G(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});J("date",e=>bn(e)!==null);J("after",(e,t,n)=>{let r=Ui(t,n),o=bn(e);return!r||!o?!0:o.getTime()>r.getTime()});J("before",(e,t,n)=>{let r=Ui(t,n),o=bn(e);return!r||!o?!0:o.getTime()<r.getTime()});J("accepted",(e,t,n)=>{let r=yt(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});J("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));J("phone",e=>Gg(e));J("cpf",e=>Kg(e));J("cnpj",e=>Yg(e));J("cep",e=>ao(e).length===8);J("creditcard",e=>Xg(e));J("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:$f(lt.strongpassword,{param:String(n)})});J("unique",async(e,t,n)=>{let r=t||Pt(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await he.get(r,{params:{value:e,field:vl(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:lt.unique:o?lt.unique:!0}catch(o){if(o instanceof Ee){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return lt.unique}return!0}});var Qg={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Jg=new Set(["required","accepted"]);function Zg(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=Qg[t])!=null?o:t;return ji.has(r)?r:null}function hl(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!ji.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of kd(e)){let f=Zg(d);if(f){if(u.trim()==="false"){n.add(f);continue}r(f,u)}}let o=yt(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var eb=`
|
|
270
|
+
`;function De(){Me(),ae("ui",rb)}function Cr(e,t){var r;let n=t.trim();if(n)try{let o=document.querySelector(n);if(o)return o}catch(o){}return(r=e.nextElementSibling)!=null?r:null}function Jt(e,t){return e.id||(e.id=ge(`${t}-`)),e.id}var Wf='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,summary,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function So(e){return Array.from(e.querySelectorAll(Wf)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function fs(e,t){let n=So(e);if(!n.length){t.preventDefault(),e.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;if(t.shiftKey&&(i===r||!e.contains(i))){t.preventDefault(),o.focus();return}!t.shiftKey&&i===o&&(t.preventDefault(),r.focus())}function rt(e,t){let n=e.tagName;if(n==="BUTTON"||n==="A"||n==="INPUT"||n==="SUMMARY"){e.classList.add("v-focus-ring");return}e.hasAttribute("role")||e.setAttribute("role","button"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.classList.add("v-focus-ring");let r=o=>{o.key!=="Enter"&&o.key!==" "||(o.preventDefault(),e.click())};e.addEventListener("keydown",r),t(()=>e.removeEventListener("keydown",r))}var Ol=0,Kf="";function Yf(){if(Ol++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Kf=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Xf(){Ol!==0&&(--Ol>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Kf))}function Gf(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function ob(e,t=!0){if(e.removeAttribute("hidden"),t&&!Te.reducedMotion){br(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function ib(e,t=!0){if(t&&!Te.reducedMotion){yr(e);return}e.style.display="none"}var sb={top:"bottom",bottom:"top",left:"right",right:"left"};function Qf(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Jf(e,t,n,r="center",o=8){t.style.position="fixed",t.style.left="0px",t.style.top="0px";let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c={top:i.top,bottom:l-i.bottom,left:i.left,right:a-i.right},d={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},u=n;if(c[u]<d[u]){let m=sb[u];if(c[m]>=d[m])u=m;else for(let h of Object.keys(c))c[h]-d[h]>c[u]-d[u]&&(u=h)}let f=0,p=0;return u==="top"||u==="bottom"?(f=u==="top"?i.top-s.height-o:i.bottom+o,p=r==="start"?i.left:i.left+i.width/2-s.width/2,r==="start"&&p+s.width>a-o&&(p=i.right-s.width)):(p=u==="left"?i.left-s.width-o:i.right+o,f=r==="start"?i.top:i.top+i.height/2-s.height/2),p=Math.min(Math.max(o,p),Math.max(o,a-s.width-o)),f=Math.min(Math.max(o,f),Math.max(o,l-s.height-o)),t.style.left=`${Math.round(p)}px`,t.style.top=`${Math.round(f)}px`,t.setAttribute("data-placement",u),u}var ds=[],Bf=!1,ab={esc:"escape",space:" ",spacebar:" ",enter:"enter",ret:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+",minus:"-",comma:",",period:".",slash:"/",question:"?"},lb=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Bl(e){var r;let t=e.trim().toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:"",hasModifier:!1};for(let o of t)o==="ctrl"||o==="control"?n.ctrl=!0:o==="shift"?n.shift=!0:o==="alt"||o==="option"?n.alt=!0:o==="meta"||o==="cmd"||o==="command"||o==="super"?n.meta=!0:o==="mod"?lb?n.meta=!0:n.ctrl=!0:n.key=(r=ab[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function cb(e,t){return e.ctrl!==t.ctrlKey||e.alt!==t.altKey||e.meta!==t.metaKey||t.key.toLowerCase()!==e.key?!1:e.key.length===1&&!/^[a-z0-9 ]$/.test(e.key)?e.shift?t.shiftKey:!0:e.shift===t.shiftKey}function db(e){let t=e;return!t||typeof t.tagName!="string"?!1:t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"?!0:t.isContentEditable===!0}function Zf(e){let t=[];return e.ctrl&&t.push("Control"),e.alt&&t.push("Alt"),e.shift&&t.push("Shift"),e.meta&&t.push("Meta"),t.push(e.key===" "?"Space":e.key.length===1?e.key.toUpperCase():e.key),t.join("+")}function ub(e){if(e.defaultPrevented)return;let t=db(e.target);for(let n of[...ds])for(let r of n.combos)if(cb(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Ao(e,t,n={}){let r=e.split(",").map(i=>Bl(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return ds.push(o),Bf||(Bf=!0,document.addEventListener("keydown",ub)),()=>{let i=ds.indexOf(o);i>-1&&ds.splice(i,1)}}x("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{De();let o=Cr(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Jt(o,"v-toggle")),rt(e,r);let a=i?o.classList.contains(i):!Gf(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=d=>{d.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(ib(o,s),a=!1):(ob(o,s),a=!0),l(),Ee(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Il=class{constructor(t){H(this,"panel");H(this,"triggers",new Set);H(this,"listeners",new Set);H(this,"open");H(this,"duration");this.panel=t,this.duration=ie(le(t,"collapse-duration"),240);let n=(le(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Gf(t),t.classList.add("v-collapse-panel"),Jt(t,"v-collapse"),this.open||(t.style.display="none"),this.sync()}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id);for(let t of this.listeners)t(this.open)}show(){this.open||(this.open=!0,this.panel.removeAttribute("hidden"),Te.reducedMotion?this.panel.style.removeProperty("display"):Pn(this.panel,this.duration),this.sync(),Ee(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,Te.reducedMotion?this.panel.style.display="none":Nn(this.panel,this.duration),this.sync(),Ee(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},jf=new WeakMap;function jl(e){let t=jf.get(e);return t||jf.set(e,t=new Il(e)),t}x("collapse",({el:e})=>{De(),jl(e)});var Fl=new WeakSet;x("collapse-toggle",({el:e,expression:t,cleanup:n})=>{De();let r=Cr(e,t);if(!r)return;let o=jl(r);o.triggers.add(e),o.sync(),rt(e,n),Fl.add(e),n(()=>Fl.delete(e));let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});ne("collapse-duration");var us=class{constructor(t,n,r){H(this,"trigger");H(this,"panel");H(this,"kind");H(this,"placement");H(this,"open",!1);H(this,"lastFocus",null);H(this,"homeParent");H(this,"homeNext");H(this,"reposition",()=>{this.open&&Jf(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});H(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});H(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&fs(this.panel,t);return}let n=this.items();if(!n.length)return;let r=n.indexOf(document.activeElement);if(t.key==="Enter"||t.key===" "){let o=n[r];if(!o)return;t.preventDefault(),this.hide(!0),o.click();return}if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault();let o=t.key==="ArrowDown"?1:-1,i=(r+o+n.length)%n.length;n[r===-1&&o===-1?n.length-1:i].focus();return}if(t.key==="Home"){t.preventDefault(),n[0].focus();return}if(t.key==="End"){t.preventDefault(),n[n.length-1].focus();return}t.key==="Tab"&&this.hide()});this.trigger=t,this.panel=n,this.kind=r,this.homeParent=n.parentElement,this.homeNext=n.nextSibling,this.placement=Qf(le(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Jt(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?ep(n):n.setAttribute("role","dialog"),t.setAttribute("aria-haspopup",r==="menu"?"menu":"dialog"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false")}items(){return Array.from(this.panel.querySelectorAll('[role="menuitem"]'))}show(){var t;this.open||(this.open=!0,this.lastFocus=document.activeElement,this.panel.parentElement!==document.body&&document.body.appendChild(this.panel),this.panel.hidden=!1,this.reposition(),requestAnimationFrame(()=>this.panel.classList.add("v-in")),this.trigger.setAttribute("aria-expanded","true"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!0),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("resize",this.reposition),window.addEventListener("scroll",this.reposition,!0),this.kind==="dialog"&&((t=So(this.panel)[0])==null||t.focus()),Ee(this.trigger,"voodoo:popup",{open:!0,panel:this.panel}))}hide(t=!1){var r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-in"),this.trigger.setAttribute("aria-expanded","false"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0);let n=()=>{this.open||(this.panel.hidden=!0)};Te.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),Ee(this.trigger,"voodoo:popup",{open:!1,panel:this.panel})}toggle(){this.open?this.hide(!0):this.show()}dispose(){this.hide(),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!0),document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("resize",this.reposition),window.removeEventListener("scroll",this.reposition,!0),!(!this.homeParent||this.panel.parentElement===this.homeParent)&&(this.homeNext&&this.homeNext.parentNode===this.homeParent?this.homeParent.insertBefore(this.panel,this.homeNext):this.homeParent.appendChild(this.panel))}};function ep(e){De(),e.classList.add("v-dropdown-menu"),e.hasAttribute("role")||e.setAttribute("role","menu");for(let t of Array.from(e.children)){let n=t;n.hasAttribute("role")||n.matches("a,button,[tabindex]")&&(n.setAttribute("role","menuitem"),n.setAttribute("tabindex","-1"))}}x("dropdown-menu",({el:e})=>{ep(e)});x("dropdown",({el:e,expression:t,cleanup:n})=>{De();let r=Cr(e,t);if(!r)return;let o=new us(e,r,"menu");rt(e,n);let i=a=>{a.preventDefault(),o.toggle()},s=a=>{var c;if(a.key==="ArrowDown"||a.key==="ArrowUp"){a.preventDefault(),o.open||o.show();let d=o.items();d.length&&d[a.key==="ArrowDown"?0:d.length-1].focus();return}if(a.key!=="Enter"&&a.key!==" ")return;let l=a.defaultPrevented;a.preventDefault(),l||o.toggle(),o.open&&((c=o.items()[0])==null||c.focus())};e.addEventListener("click",i),e.addEventListener("keydown",s),n(()=>{e.removeEventListener("click",i),e.removeEventListener("keydown",s),o.dispose()})});x("popover",({el:e,expression:t,cleanup:n})=>{De();let r=Cr(e,t);if(!r)return;let o=new us(e,r,"dialog");rt(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});ne("dropdown-position");ne("popover-position");x("tooltip",({el:e,expression:t,cleanup:n})=>{De();let r=t.trim();if(!r)return;let o=Qf(le(e,"tooltip-position"),"top"),i=ie(le(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Wf);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let v=document.createElement("div");return v.className="v-tooltip",v.setAttribute("role","tooltip"),v.id=ge("v-tip-"),v.textContent=r,document.body.appendChild(v),v},d=()=>{a&&Jf(e,a,o)},u=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),d(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let v=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),v.classList.remove("v-in"),Te.reducedMotion?v.remove():setTimeout(()=>v.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,u()},i))},m=v=>{v.key==="Escape"&&f()},h=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",u),e.addEventListener("pointerdown",h),e.addEventListener("mouseleave",f),e.addEventListener("focusout",f),e.addEventListener("keydown",m),n(()=>{f(),s&&e.removeAttribute("tabindex"),e.removeEventListener("mouseenter",p),e.removeEventListener("focusin",u),e.removeEventListener("pointerdown",h),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});ne("tooltip-position");ne("tooltip-delay");x("tabs",({el:e,expression:t,cleanup:n})=>{De();let r=cs(e,"tab","tabs"),o=cs(e,"tab-panel","tabs");if(!r.length)return;let i=(v,g)=>gn(v,"tab")||String(g),s=r[0].parentElement;s&&!s.hasAttribute("role")&&s.setAttribute("role","tablist");let a=((s==null?void 0:s.getAttribute("aria-orientation"))||"").trim().toLowerCase()==="vertical";s==null||s.setAttribute("aria-orientation",a?"vertical":"horizontal");let l=as(e,"tabs-url")?gn(e,"tabs-url")||"tab":null;r.forEach((v,g)=>{let b=i(v,g),y=o.find(T=>gn(T,"tab-panel")===b);v.classList.add("v-tab","v-focus-ring"),v.setAttribute("role","tab"),Jt(v,"v-tab"),y&&(Jt(y,"v-panel"),y.setAttribute("role","tabpanel"),y.setAttribute("aria-labelledby",v.id),v.setAttribute("aria-controls",y.id))});let c="",d=(v,g=!1)=>{if(r.some((b,y)=>i(b,y)===v)){c=v,r.forEach((b,y)=>{let T=i(b,y)===v;b.setAttribute("aria-selected",String(T)),b.setAttribute("tabindex",T?"0":"-1"),b.classList.toggle("v-active",T),T&&g&&b.focus()});for(let b of o)b.hidden=gn(b,"tab-panel")!==v;l&&pn.set(l,v),Ee(e,"voodoo:tab",{id:v})}},u=v=>{let g=sr(v.target,"tab");!g||!r.includes(g)||(v.preventDefault(),d(i(g,r.indexOf(g))))},f=v=>{let g=sr(v.target,"tab");if(!g||!r.includes(g))return;let b=r.indexOf(g),y=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",E=-1;v.key===y?E=(b+1)%r.length:v.key===T?E=(b-1+r.length)%r.length:v.key==="Home"?E=0:v.key==="End"&&(E=r.length-1),E!==-1&&(v.preventDefault(),d(i(r[E],E),!0))},p=()=>{if(!l)return;let v=pn.get(l);v&&v!==c&&d(v)};e.addEventListener("click",u),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",u),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let h=(l?pn.get(l):void 0)||t.trim()||i(r[0],0);d(h),c||d(i(r[0],0))});ne("tab");ne("tab-panel");ne("tabs-url");x("accordion",({el:e,cleanup:t})=>{De();let n=cs(e,"accordion-item","accordion");if(!n.length)return;let r=as(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,d=l.lastElementChild;if(!c||!d||c===d)continue;let u=(gn(l,"accordion-item")||"").trim().toLowerCase();u!=="open"&&u!=="true"&&(d.style.display="none");let f=jl(d);f.triggers.add(c),f.sync(),c.classList.add("v-accordion-header","v-focus-ring"),c.hasAttribute("role")||c.setAttribute("role","button"),c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),Jt(d,"v-accordion-panel"),c.setAttribute("aria-controls",d.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!d.hasAttribute("role")&&(d.setAttribute("role","region"),d.setAttribute("aria-labelledby",Jt(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var p;let c=(p=l.target)==null?void 0:p.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;l.preventDefault();let u=i[d],f=Fl.has(c);if(r&&(f?u.open:!u.open))for(let m of i)m!==u&&m.hide();f||u.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let d=o.indexOf(c);if(d===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let u=-1;l.key==="ArrowDown"?u=(d+1)%o.length:l.key==="ArrowUp"?u=(d-1+o.length)%o.length:l.key==="Home"?u=0:l.key==="End"&&(u=o.length-1),u!==-1&&(l.preventDefault(),o[u].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});ne("accordion-item");ne("accordion-single");var zl=class{constructor(t){H(this,"origem",null);H(this,"panel");H(this,"triggers",new Set);H(this,"open",!1);H(this,"backdrop",null);H(this,"lastFocus",null);H(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&fs(this.panel,t)}});H(this,"onPointerDown",t=>{let n=t.target;if(!(!n||this.panel.contains(n))){for(let r of this.triggers)if(r.contains(n))return;this.hide()}});this.panel=t;let n=(le(t,"drawer-side")||"right").trim().toLowerCase();t.classList.add("v-drawer-panel"),t.setAttribute("data-side",["left","right","top","bottom"].includes(n)?n:"right"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),Jt(t,"v-drawer"),t.hidden=!0,this.label()}label(){let t=this.panel;if(t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-label"))return;let n=t.querySelector("[data-drawer-title],h1,h2,h3,h4");n&&t.setAttribute("aria-labelledby",Jt(n,"v-drawer-title"))}sync(){for(let t of this.triggers)t.setAttribute("aria-expanded",String(this.open)),t.setAttribute("aria-controls",this.panel.id),t.setAttribute("aria-haspopup","dialog")}show(){var n,r;if(this.open)return;this.open=!0,this.lastFocus=document.activeElement,this.backdrop=document.createElement("div"),this.backdrop.className="v-drawer-backdrop",this.backdrop.addEventListener("click",()=>this.hide()),document.body.appendChild(this.backdrop),this.panel.parentElement!==document.body&&(this.origem=document.createComment(" v-drawer "),(n=this.panel.parentNode)==null||n.insertBefore(this.origem,this.panel),document.body.appendChild(this.panel)),this.panel.hidden=!1,this.label(),Yf();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};Te.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=So(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),Ee(this.panel,"voodoo:drawer",{open:!0})}hide(){var n,r;if(!this.open)return;this.open=!1,this.panel.classList.remove("v-open"),(n=this.backdrop)==null||n.classList.remove("v-in"),document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);let t=()=>{var o;this.open||(this.panel.hidden=!0,(o=this.backdrop)==null||o.remove(),this.backdrop=null,this.origem&&this.origem.parentNode&&(this.origem.parentNode.insertBefore(this.panel,this.origem),this.origem.remove(),this.origem=null))};Te.reducedMotion?t():setTimeout(t,300),Xf(),(r=this.lastFocus)==null||r.focus(),this.sync(),Ee(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},qf=new WeakMap;function ql(e){let t=qf.get(e);return t||qf.set(e,t=new zl(e)),t}x("drawer-content",({el:e})=>{De(),ql(e)});function tp(e,t,n){De();let r=Cr(e,t);if(!r)return;let o=ql(r);o.triggers.add(e),o.sync(),rt(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}x("drawer",({el:e,expression:t,cleanup:n})=>{tp(e,t,n)});x("offcanvas",({el:e,expression:t,cleanup:n})=>{tp(e,t,n)});x("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?Cr(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:sr(e,"drawer-content");if(!r)return;rt(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),ql(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});ne("drawer-side");x("theme-toggle",({el:e,cleanup:t})=>{rt(e,t);let n=()=>{let i=Pt.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=Pt.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),Pt.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});x("focus",({el:e,expression:t,modifiers:n,effect:r,evaluate:o})=>{let i=()=>{e.focus({preventScroll:!!n.quiet});let s=e;n.select&&typeof s.select=="function"&&s.select()};if(!t.trim()){Fe(i);return}r(()=>{o()&&Fe(i)})},{priority:_.INIT});x("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&fs(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&Fe(()=>{var l;return((l=So(e)[0])!=null?l:e).focus()}),i=a}):Fe(()=>{var a;return((a=So(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});x("click-outside",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{if(!e.isConnected)return;let s=i.target;!s||e===s||e.contains(s)||Ot(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});x("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||Ot(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});x("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Ao(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Bl(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Zf(s)),r(i)});x("scroll-to",({el:e,expression:t,cleanup:n})=>{let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=parseFloat(le(e,"scroll-offset")||"0")||0,a=Te.reducedMotion?"auto":"smooth";if(i==="top"||i==="#top"){window.scrollTo({top:0,behavior:a});return}if(i==="bottom"){window.scrollTo({top:document.body.scrollHeight,behavior:a});return}let l=null;try{l=document.querySelector(i)}catch(u){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let d=l;d.hasAttribute("tabindex")||d.setAttribute("tabindex","-1"),d.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});x("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=le(e,"scrollspy-class")||"v-active",o=parseFloat(le(e,"scroll-offset")||"0")||0,i=n.map(c=>{let d=c.getAttribute("href")||"",u=d.length>1?document.querySelector(d):null;return u?{link:c,section:u}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let d of i)d.section.getBoundingClientRect().top-o<=8&&(c=d);if(c.link!==s){s=c.link;for(let d of i){let u=d.link===s;d.link.classList.toggle(r,u),u?d.link.setAttribute("aria-current","true"):d.link.removeAttribute("aria-current")}Ee(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=co(a,100);window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),Fe(a),t(()=>{l.cancel(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)})});ne("scroll-offset");ne("scrollspy-class");x("sticky",({el:e,expression:t,cleanup:n})=>{De();let r=parseFloat(t.trim()||le(e,"sticky-offset")||"0")||0;if(e.classList.add("v-sticky"),e.style.setProperty("--v-sticky-offset",`${r}px`),typeof IntersectionObserver=="undefined")return;let o=new IntersectionObserver(i=>{for(let s of i){let a=s.intersectionRatio<1&&s.boundingClientRect.top<=r+1;e.classList.toggle("v-stuck",a)}},{threshold:[1],rootMargin:`-${r+1}px 0px 0px 0px`});o.observe(e),n(()=>o.disconnect())});ne("sticky-offset");x("visible",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{var c;let i=!!r.repeat,s=Number((c=r.threshold)!=null?c:.1)||.1,a=typeof r.margin=="string"?r.margin:"0px";if(typeof IntersectionObserver=="undefined"){Ot(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&(Ot(t,n,e,void 0,u),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});x("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=le(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let d=Ot(t,n,e,void 0,{page:"next"}),u=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};d&&typeof d.then=="function"?d.then(u,u):setTimeout(u,300)};if(typeof IntersectionObserver=="undefined")return;let l=document.createElement("div");l.className="v-infinite-sentinel",l.setAttribute("aria-hidden","true"),l.style.cssText="width:100%;height:1px;pointer-events:none",e.appendChild(l);let c=new IntersectionObserver(d=>{for(let u of d)u.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});ne("infinite-distance");function np(e,t,n,r){if(De(),!t)return;e.classList.add("v-lazy");let o=a=>{r?e.style.backgroundImage=`url("${a}")`:e.src=a,e.classList.add("v-lazy-loaded")},i=()=>{let a=new Image;a.onload=()=>o(t),a.onerror=()=>{let l=le(e,"lazy-error");e.classList.add("v-lazy-failed"),l?o(l):e.classList.add("v-lazy-loaded")},a.src=t};if(!r&&e.tagName==="IMG"){let a=e;a.hasAttribute("loading")||(a.loading="lazy"),a.hasAttribute("decoding")||(a.decoding="async")}if(typeof IntersectionObserver=="undefined"){i();return}let s=new IntersectionObserver(a=>{for(let l of a)l.isIntersecting&&(s.disconnect(),i())},{rootMargin:"200px"});s.observe(e),n(()=>s.disconnect())}x("lazy-src",({el:e,expression:t,cleanup:n})=>{np(e,t.trim(),n,!1)});x("lazy-bg",({el:e,expression:t,cleanup:n})=>{np(e,t.trim(),n,!0)});ne("lazy-error");x("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{De();let i=l=>{e.classList.toggle("v-skeleton",l),l?e.setAttribute("aria-busy","true"):e.removeAttribute("aria-busy")};if(t.trim()){n(()=>i(!!r()));return}let s=()=>{var l;return((l=e.textContent)!=null?l:"").trim().length>0||e.querySelector("img,svg,video,canvas")!==null};if(s()){i(!1);return}if(i(!0),typeof MutationObserver=="undefined")return;let a=new MutationObserver(()=>{s()&&(i(!1),a.disconnect())});a.observe(e,{childList:!0,subtree:!0,characterData:!0}),o(()=>a.disconnect())});async function Vl(e){var t;try{if((t=navigator.clipboard)!=null&&t.writeText)return await navigator.clipboard.writeText(e),!0}catch(n){}try{let n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:-1000px;left:-1000px;opacity:0",document.body.appendChild(n),n.select();let r=document.execCommand("copy");return n.remove(),r}catch(n){return!1}}function Ul(e,t){De();let n=le(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),ht(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function rp(e,t){var r;let n=le(e,"copy-from");if(n){let o=document.querySelector(n);if(o){let i=o;return typeof i.value=="string"&&i.value?i.value:((r=o.textContent)!=null?r:"").trim()}}return t.trim()}x("copy",({el:e,expression:t,cleanup:n})=>{De(),rt(e,n);let r=o=>{o.preventDefault();let i=rp(e,t);i&&Vl(i).then(s=>{Ul(e,s),Ee(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});x("copy-from",({el:e,expression:t,cleanup:n})=>{if(De(),ls(e,"copy-from",t),as(e,"copy"))return;rt(e,n);let r=o=>{o.preventDefault();let i=rp(e,"");i&&Vl(i).then(s=>{Ul(e,s),Ee(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});ne("copy-label");function fb(e,t){let n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.setAttribute("title","Print"),n.style.cssText="position:fixed;right:0;bottom:0;width:0;height:0;border:0;visibility:hidden";let r=Array.from(document.querySelectorAll('link[rel="stylesheet"],style')).map(o=>o.outerHTML).join(`
|
|
271
|
+
`);n.srcdoc=`<!doctype html><html><head><meta charset="utf-8"><title>${V(t)}</title>${r}</head><body>${e.outerHTML}</body></html>`,n.addEventListener("load",()=>{let o=n.contentWindow;if(!o){n.remove();return}o.focus(),o.print(),setTimeout(()=>n.remove(),1e3)}),document.body.appendChild(n)}x("print",({el:e,expression:t,cleanup:n})=>{rt(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&fb(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});x("share",({el:e,expression:t,cleanup:n})=>{De(),rt(e,n);let r=o=>{o.preventDefault();let i=t.trim()||le(e,"share-url")||location.href,s={title:le(e,"share-title")||document.title,url:i},a=le(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>Ee(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Vl(i).then(c=>{Ul(e,c),Ee(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});ne("share-title");ne("share-url");ne("share-text");x("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;rt(e,n);let r=t.trim()&&(s=document.querySelector(t.trim()))!=null?s:e,o=()=>{e.setAttribute("aria-pressed",String(document.fullscreenElement===r))},i=a=>{var c;if(a.preventDefault(),document.fullscreenElement){document.exitFullscreen().catch(()=>{});return}let l=r;typeof r.requestFullscreen=="function"?r.requestFullscreen().catch(()=>{}):(c=l.webkitRequestFullscreen)==null||c.call(l)};o(),e.addEventListener("click",i),document.addEventListener("fullscreenchange",o),n(()=>{e.removeEventListener("click",i),document.removeEventListener("fullscreenchange",o)})});x("download",({el:e,expression:t,cleanup:n})=>{rt(e,n);let r=o=>{let i=t.trim()||e.getAttribute("href")||"";if(!i)return;o.preventDefault();let s=document.createElement("a");s.href=i,s.rel="noopener",s.download=le(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),Ee(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});ne("download-name");x("resizable",({el:e,expression:t,cleanup:n})=>{De();let r=(t.trim()||"both").toLowerCase(),o=r==="both"||r==="horizontal",i=r==="both"||r==="vertical";e.classList.add("v-resizable"),getComputedStyle(e).position==="static"&&(e.style.position="relative");let s=[],a=[];o&&a.push("right"),i&&a.push("bottom"),o&&i&&a.push("corner");let l=(c,d)=>{let u=0,f=0,p=0,m=0,h=g=>{d!=="bottom"&&(e.style.width=`${Math.max(32,p+g.clientX-u)}px`),d!=="right"&&(e.style.height=`${Math.max(32,m+g.clientY-f)}px`)},v=g=>{var b;(b=c.releasePointerCapture)==null||b.call(c,g.pointerId),c.removeEventListener("pointermove",h),c.removeEventListener("pointerup",v),c.removeEventListener("pointercancel",v),Ee(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",g=>{var y;if(g.button!==0)return;g.preventDefault();let b=e.getBoundingClientRect();u=g.clientX,f=g.clientY,p=b.width,m=b.height,(y=c.setPointerCapture)==null||y.call(c,g.pointerId),c.addEventListener("pointermove",h),c.addEventListener("pointerup",v),c.addEventListener("pointercancel",v)}),c.addEventListener("keydown",g=>{let b=g.shiftKey?4:16,y=e.getBoundingClientRect(),T=!0;g.key==="ArrowRight"&&d!=="bottom"?e.style.width=`${y.width+b}px`:g.key==="ArrowLeft"&&d!=="bottom"?e.style.width=`${Math.max(32,y.width-b)}px`:g.key==="ArrowDown"&&d!=="right"?e.style.height=`${y.height+b}px`:g.key==="ArrowUp"&&d!=="right"?e.style.height=`${Math.max(32,y.height-b)}px`:T=!1,T&&(g.preventDefault(),Ee(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let d=document.createElement("div");d.className="v-resize-handle",d.setAttribute("data-dir",c),d.setAttribute("role","separator"),d.setAttribute("tabindex","0"),d.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),d.setAttribute("aria-label","Resize"),l(d,c),e.appendChild(d),s.push(d)}n(()=>{for(let c of s)c.remove()})});function Vf(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function pb(){let e=[];for(let t of Ti(document,"command-item")){let n=(gn(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:le(t,"command-hint")||"",el:t}))}return e}function Uf(){if(De(),document.querySelector(".v-command"))return;let e=pb(),t=document.activeElement,n=document.createElement("div");n.className="v-command",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-label","Command palette"),n.tabIndex=-1;let r=document.createElement("div");r.className="v-command-box";let o=document.createElement("input");o.className="v-command-input",o.type="search",o.placeholder="Search command...",o.setAttribute("aria-label","Search command"),o.setAttribute("role","combobox"),o.setAttribute("aria-expanded","true"),o.setAttribute("autocomplete","off");let i=document.createElement("ul");i.className="v-command-list",i.id=ge("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Yf();let s=e,a=0,l=m=>{let h=m.target;!h||n.contains(h)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),Xf(),t==null||t.focus()},d=()=>{let m=s[a];m&&(c(),m.el.click())},u=()=>{var h;if(i.replaceChildren(),!s.length){let v=document.createElement("li");v.className="v-command-empty",v.textContent="No command found",i.appendChild(v);return}s.forEach((v,g)=>{let b=document.createElement("li");b.className="v-command-option",b.id=`${i.id}-${g}`,b.setAttribute("role","option"),b.setAttribute("aria-selected",String(g===a));let y=document.createElement("span");if(y.textContent=v.label,b.appendChild(y),v.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=v.hint,b.appendChild(T)}b.addEventListener("click",()=>{a=g,d()}),b.addEventListener("pointermove",()=>{a!==g&&(a=g,u())}),i.appendChild(b)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(h=m.scrollIntoView)==null||h.call(m,{block:"nearest"}))},f=()=>{let m=Vf(o.value.trim());s=m?e.filter(h=>Vf(`${h.label} ${h.hint}`).includes(m)):e,a=0,u()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,u();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,u();return}if(m.key==="Enter"){m.preventDefault(),d();return}m.key==="Tab"&&fs(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),u(),o.focus(),document.addEventListener("focusin",l,!0)}x("command",({el:e,expression:t,cleanup:n})=>{De();let r=t.trim()||le(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Uf()},i=Ao(r,()=>Uf(),{allowInInput:!0}),s=Bl(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Zf(s)),rt(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});x("command-item",({el:e,expression:t})=>{ls(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});ne("command-key");ne("command-hint");var _f=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];x("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=ie(le(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,Ot(t,n,e,void 0,{idle:!0,after:o}),Ee(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let d of _f)window.addEventListener(d,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let d of _f)window.removeEventListener(d,c)})});ne("idle-after");function op(e,t,n,r,o,i){let s=a=>{Ot(t,n,e,a,{online:navigator.onLine}),Ee(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&Fe(()=>s())}x("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{op(e,t,n,o,"online",!!r.immediate)});x("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{op(e,t,n,o,"offline",r["no-immediate"]!==!0)});xe();ye();Be();xe();ye();Be();var St={required:"Please fill in this field.",email:"Enter a valid email address.",url:"Enter a valid URL.",number:"Enter a valid number.",integer:"Enter a whole number.",decimal:"Enter a valid decimal number.",alpha:"Use letters only.",alphanumeric:"Use letters and numbers only.",minlength:"Use at least {param} characters.",maxlength:"Use at most {param} characters.",min:"The smallest allowed value is {param}.",max:"The largest allowed value is {param}.",between:"Enter a value between {min} and {max}.",match:"The fields do not match.",regex:"That format is not valid.",date:"Enter a valid date.",after:"The date has to be later than {param}.",before:"The date has to be earlier than {param}.",accepted:"You have to tick this to continue.",same:"The values have to be the same.",different:"The values have to be different.",in:"Choose one of the allowed options.",notin:"That value is not allowed.",phone:"Enter a valid phone number, including the area code.",cpf:"Invalid CPF.",cnpj:"Invalid CNPJ.",cep:"Invalid postcode.",creditcard:"Invalid card number.",strongpassword:"Use {param} characters or more, with an upper case letter, a lower case letter, a number and a symbol.",unique:"That value is already taken.",invalid:"Invalid value."};function sp(e,t){var i,s,a,l,c,d;let n=(i=t.param)!=null?i:"",r=n.split(","),o={param:n,field:(s=t.field)!=null?s:"field",value:(a=t.value)!=null?a:"",min:((l=r[0])!=null?l:"").trim(),max:((d=(c=r[1])!=null?c:r[0])!=null?d:"").trim()};return e.replace(/\{(\w+)\}/g,(u,f)=>f in o?o[f]:u)}var vs=new Map;function se(e,t,n){let r=e.toLowerCase();vs.set(r,{name:r,fn:t,message:n}),n&&!St[r]&&(St[r]=n),x(`validate-${r}`,({el:o,cleanup:i})=>{Es(o,i)})}function Zt(e,t){var n;return(n=Oe(e,`${w.prefix}${t}`))!=null?n:Oe(e,`data-v-${t}`)}function mb(e,t){return Zt(e,t)!==null}var vb=new Set(["INPUT","SELECT","TEXTAREA"]),hb=new Set(["submit","button","reset","image"]);function gt(e){var t;return!!e&&typeof e=="object"&&vb.has((t=e.tagName)!=null?t:"")}function Ft(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function $o(e){var n;let t=Ft(e);if(t==="checkbox"||t==="radio")return e.checked?e.value||"on":"";if(t==="file"){let r=e.files;return r&&r.length?String(r.length):""}return(n=e.value)!=null?n:""}function Kl(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function gb(e){var o,i;let t=Zt(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${ps(e.id)}"]`),a=(o=s==null?void 0:s.textContent)==null?void 0:o.trim();if(a)return a.replace(/\s*\*$/,"")}let n=e.closest("label"),r=(i=n==null?void 0:n.textContent)==null?void 0:i.trim();return r?r.replace(/\s*\*$/,""):e.getAttribute("aria-label")||e.getAttribute("placeholder")||e.name||"field"}function ps(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function hs(e,t){var s,a,l;let n=t.trim();if(!n||typeof document=="undefined")return null;let r=(a=(s=e.form)!=null?s:e.closest("form"))!=null?a:document;if(/^[#.[]/.test(n)){let c=(l=r.querySelector(n))!=null?l:document.querySelector(n);return gt(c)?c:null}let o=r.querySelector(`[name="${ps(n)}"]`);if(gt(o))return o;let i=document.getElementById(n);return gt(i)?i:null}var bb=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,yb=/^-?\d+$/,xb=/^-?\d+(?:[.,]\d+)?$/,wb=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,kb=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function Do(e){return e.replace(/\D/g,"")}function gs(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Eb(e){let t=Do(e);if(t.length!==11||/^(\d)\1{10}$/.test(t))return!1;let n=0;for(let i=0;i<9;i++)n+=Number(t[i])*(10-i);let r=n*10%11;if(r===10&&(r=0),r!==Number(t[9]))return!1;n=0;for(let i=0;i<10;i++)n+=Number(t[i])*(11-i);let o=n*10%11;return o===10&&(o=0),o===Number(t[10])}function Tb(e){let t=Do(e);if(t.length!==14||/^(\d)\1{13}$/.test(t))return!1;let n=r=>{let o=r-7,i=0;for(let a=0;a<r;a++)i+=Number(t[a])*o--,o<2&&(o=9);let s=i%11;return s<2?0:11-s};return n(12)===Number(t[12])&&n(13)===Number(t[13])}function Lb(e){let t=Do(e);if(t.length<13||t.length>19)return!1;let n=0,r=!1;for(let o=t.length-1;o>=0;o--){let i=Number(t[o]);r&&(i*=2,i>9&&(i-=9)),n+=i,r=!r}return n%10===0}function Mb(e){let t=Do(e);return!(t.length!==10&&t.length!==11||Number(t.slice(0,2))<11||t.length===11&&t[2]!=="9"||t.length===10&&Number(t[2])<2)}function Fn(e){let t=e.trim();if(!t)return null;let n=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(t);if(n){let i=new Date(Number(n[3]),Number(n[2])-1,Number(n[1]));return i.getFullYear()===Number(n[3])&&i.getMonth()===Number(n[2])-1&&i.getDate()===Number(n[1])?i:null}let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(r){let i=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return i.getFullYear()===Number(r[1])&&i.getMonth()===Number(r[2])-1&&i.getDate()===Number(r[3])?i:null}let o=Date.parse(t);return Number.isNaN(o)?null:new Date(o)}function bs(e,t){if(!e)return null;let n=e.trim().toLowerCase();if(n==="hoje"||n==="today"||n==="now"||n==="agora")return new Date;let r=Fn(e);if(r)return r;let o=hs(t,e);return o?Fn($o(o)):null}se("required",(e,t,n)=>{let r=Ft(n);if(r==="checkbox"||r==="radio")return n.checked;if(r==="file"){let o=n.files;return!!o&&o.length>0}return e.trim().length>0});se("email",e=>bb.test(e.trim()));se("url",e=>{let t=e.trim();if(!t)return!1;try{let n=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`https://${t}`);return n.hostname.includes(".")&&!n.hostname.endsWith(".")}catch(n){return!1}});se("number",e=>e.trim()!==""&&Number.isFinite(gs(e)));se("integer",e=>yb.test(e.trim()));se("decimal",(e,t)=>{var i;let n=e.trim();if(!xb.test(n))return!1;if(!t)return!0;let r=Number(t);return Number.isFinite(r)?((i=n.split(/[.,]/)[1])!=null?i:"").length<=r:!0});se("alpha",e=>wb.test(e.trim().replace(/\s+/g,"")));se("alphanumeric",e=>kb.test(e.trim().replace(/\s+/g,"")));se("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));se("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));se("min",(e,t,n)=>{let r=bs(t,n);if(r&&Ft(n).startsWith("date")){let o=Fn(e);return!o||o.getTime()>=r.getTime()}return gs(e)>=Number(t!=null?t:0)});se("max",(e,t,n)=>{let r=bs(t,n);if(r&&Ft(n).startsWith("date")){let o=Fn(e);return!o||o.getTime()<=r.getTime()}return gs(e)<=Number(t!=null?t:1/0)});se("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=gs(e);return Number.isFinite(o)&&o>=n&&o<=r});se("match",(e,t,n)=>{if(!t)return!0;let r=hs(n,t);return r?$o(r)===e:!0});se("same",(e,t,n)=>{if(!t)return!0;let r=hs(n,t);return!r||$o(r)===e});se("different",(e,t,n)=>{if(!t)return!0;let r=hs(n,t);return!r||$o(r)!==e});se("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=Zt(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return re(`Invalid regular expression in ${w.prefix}regex: ${t}`),!0}});se("date",e=>Fn(e)!==null);se("after",(e,t,n)=>{let r=bs(t,n),o=Fn(e);return!r||!o?!0:o.getTime()>r.getTime()});se("before",(e,t,n)=>{let r=bs(t,n),o=Fn(e);return!r||!o?!0:o.getTime()<r.getTime()});se("accepted",(e,t,n)=>{let r=Ft(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});se("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));se("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));se("phone",e=>Mb(e));se("cpf",e=>Eb(e));se("cnpj",e=>Tb(e));se("cep",e=>Do(e).length===8);se("creditcard",e=>Lb(e));se("strongpassword",(e,t)=>{let n=Number(t)>0?Number(t):8;return e.length>=n&&/[a-zà-ÿ]/.test(e)&&/[A-ZÀ-ß]/.test(e)&&/\d/.test(e)&&/[^\w\s]/.test(e)?!0:sp(St.strongpassword,{param:String(n)})});se("unique",async(e,t,n)=>{let r=t||Zt(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await Le.get(r,{params:{value:e,field:Kl(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:St.unique:o?St.unique:!0}catch(o){if(o instanceof He){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return St.unique}return!0}});var Sb={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},Ab=new Set(["required","accepted"]);function Cb(e){var o;let t=null;if(e.startsWith(w.prefix)?t=e.slice(w.prefix.length):e.startsWith("data-v-")&&(t=e.slice(7)),!t)return null;let n=t.indexOf(".");if(n>-1&&(t=t.slice(0,n)),t==="validate")return null;t.startsWith("validate-")&&(t=t.slice(9));let r=(o=Sb[t])!=null?o:t;return vs.has(r)?r:null}function Yl(e){let t=[],n=new Set,r=(d,u)=>{n.has(d)||!vs.has(d)||(n.add(d),t.push({name:d,param:u}))};for(let[d,u]of Xd(e)){let f=Cb(d);if(f){if(u.trim()==="false"){n.add(f);continue}r(f,u)}}let o=Ft(e);e.hasAttribute("required")&&r("required",""),o==="email"&&r("email",""),o==="url"&&r("url",""),(o==="number"||o==="range")&&r("number","");let i=e.getAttribute("minlength");i&&r("minlength",i);let s=e.getAttribute("maxlength");s&&r("maxlength",s);let a=e.getAttribute("min");a&&r("min",a);let l=e.getAttribute("max");l&&r("max",l);let c=e.getAttribute("pattern");return c&&r("regex",c),t.sort((d,u)=>d.name==="required"?-1:u.name==="required"?1:0),t}var Rb=`
|
|
272
272
|
.v-field-error{display:block;margin-top:6px;color:var(--v-danger,#FF4D4D);
|
|
273
273
|
font:500 12.5px/1.45 var(--v-font-sans,system-ui,-apple-system,sans-serif);
|
|
274
274
|
animation:v-field-error-in .18s var(--v-ease,ease) both}
|
|
@@ -283,7 +283,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
283
283
|
font:500 13px/1.5 var(--v-font-sans,system-ui,-apple-system,sans-serif)}
|
|
284
284
|
.v-form-error ul{margin:0;padding-left:18px}
|
|
285
285
|
@media (prefers-reduced-motion: reduce){.v-field-error{animation:none}}
|
|
286
|
-
`;function _i(){ge(),Z("forms-validate",eb)}function Df(e){var r,o,i;let t=Pt(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};G(`Target for ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function Pf(e){let t=Df(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function Wi(e,t){_i(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=Pf(e);if(!n){let o=Df(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:le("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function pl(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=Pf(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function lo(e){for(let n of Yi(e,!1))pl(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function gl(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function tb(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${zi(i)}"]`);if(Ze(s))return s}let o=e.querySelector(`#${zi(t)}`);return Ze(o)?o:null}function Ki(e,t){let n=gl(t),r=[];for(let[o,i]of Object.entries(n)){let s=tb(e,o);s?Wi(s,i):r.push(i)}return r.length&&nb(e,r),n}function nb(e,t){_i();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function bl(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function Yi(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)Ze(o)&&(o.disabled||Bg.has(yt(o))||t&&hl(o).length===0||r.push(o));return r}async function yl(e,t={}){var s,a;if(!Ze(e))return{valid:!0};let n=hl(e);if(!n.length)return t.silent||pl(e),{valid:!0};let r=so(e),o=Pt(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!Jg.has(l.name))continue;let c=ji.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(p){G(`Rule "${l.name}" failed to execute`,p);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=lt[l.name])!=null?s:c.message)!=null?a:lt.invalid,f=$f(u,{field:jg(e),param:l.param,value:r});return t.silent||(Wi(e,f),Rf(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(pl(e,!i),Rf(e,{valid:!0})),{valid:!0}}function xl(e){return Ze(e)?yl(e):wl(e)}async function wl(e){let t=Yi(e),n=await Promise.all(t.map(o=>yl(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[vl(o)]=(a=s.message)!=null?a:lt.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function Rf(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:vl(e),...t}}))}function rb(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function ob(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function ib(e,t){var a,l,c,d;let n=Yi(e,!1),r=[],o=new Map;for(let u of n)yt(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let f=yt(u);if(f==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(f==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let p=(d=u.value)!=null?d:"";if(i&&typeof p=="string"&&(p=p.trim()),s&&(f==="number"||f==="range")&&p!==""){let m=Number(p);Number.isFinite(m)&&(p=m)}r.push({name:u.name,value:p})}return r}function sb(e){for(let t of Yi(e,!1)){if(yt(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function Nf(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)Nf(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function cr(e,t={}){let n=ib(e,t);if(t.formData||sb(e)){let o=new FormData;for(let i of n)Nf(o,i.name,i.value);return o}let r={};for(let o of n)ob(r,rb(o.name),o.value);return r}var oo=new WeakSet,io=new WeakSet;async function Bi(e){(await yl(e)).valid?io.delete(e):io.add(e)}function Xi(e,t){if(!Ze(e)){G(`${w.prefix}validate only works on input, select, or textarea.`);return}if(oo.has(e))return;oo.add(e),_i();let n=()=>{Bi(e)},r=()=>{io.has(e)&&Bi(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{oo.delete(e),io.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var ml=new WeakSet;function Hf(e){return ml.has(e)||Ig(e,"validate")}function ab(e,t){ml.add(e),_i(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Ze(i)||oo.has(i)||hl(i).length!==0&&Bi(i)},r=o=>{let i=o.target;!Ze(i)||oo.has(i)||io.has(i)&&Bi(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{ml.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}y("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){ab(e,t);return}Xi(e,t)});var lb=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of lb)y(e,({el:t,cleanup:n})=>{Xi(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])y(e,({el:t,cleanup:n})=>{Ze(t)&&Xi(t,n)});function Ff(){return X({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var dr=new WeakMap,Tl=new WeakMap,cb=Ff();function co(e){let t=dr.get(e);return t||(t=Ff(),dr.set(e,t)),t}function db(e){let t=e;for(;t;){let n=Tl.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?dr.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?dr.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=dr.get(n);if(r)return r}return cb}H("$form",e=>db(e));var ur=new WeakMap,ub=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function Of(e){return ub.some(t=>zt(e,`${w.prefix}${t}`)||zt(e,`data-v-${t}`))}function Re(e,t){var i,s,a;let n=Pt(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=Pt(r,t);if(l!==null)return l}let o=(a=(i=ur.get(e))==null?void 0:i[t])!=null?a:r?(s=ur.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Ji(e,t){return Re(e,t)!==null}function et(e,t){y(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=ur.get(o))!=null?l:{};if(i[e]=r,ur.set(o,i),!Of(o)&&!Of(n)){G(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&G(s)})}var fb=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];et("method",e=>e&&!fb.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);et("redirect");et("reset-success");et("disable-loading");et("loading-class");et("on-success");et("on-error");et("on-complete");et("toast-success");et("toast-error");et("confirm");et("form-data");y("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=ur.get(n))!=null?s:{};r.loading=t,ur.set(n,r);let o=If(t);if(!o){G(`${w.prefix}loading element not found: ${t}`);return}zf(o,!1)});var pb=`
|
|
286
|
+
`;function ys(){Me(),ae("forms-validate",Rb)}function ap(e){var r,o,i;let t=Zt(e,"error-target");if(t&&typeof document!="undefined"){let s=(i=(o=(r=e.form)!=null?r:e.closest("form"))==null?void 0:o.querySelector(t))!=null?i:document.querySelector(t);if(s)return{parent:s,anchor:null};re(`Target for ${w.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function lp(e){let t=ap(e);if(!t)return null;if(t.anchor){let n=t.anchor.nextElementSibling;return n&&n.classList.contains("v-field-error")?n:null}return t.parent.querySelector(".v-field-error")}function xs(e,t){ys(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=lp(e);if(!n){let o=ap(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ge("v-error-"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),o.anchor?o.anchor.insertAdjacentElement("afterend",n):o.parent.appendChild(n)}n.textContent=t;let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.push(n.id),e.setAttribute("aria-describedby",r.join(" "))}function _l(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=lp(e);if(n){let r=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(o=>o&&o!==n.id);r.length?e.setAttribute("aria-describedby",r.join(" ")):e.removeAttribute("aria-describedby"),n.remove()}}function Po(e){for(let n of ks(e,!1))_l(n);for(let n of Array.from(e.querySelectorAll(".v-field-error")))n.remove();let t=e.querySelector(".v-form-error");t&&t.remove();for(let n of Array.from(e.querySelectorAll(".v-invalid, .v-valid")))n.classList.remove("v-invalid","v-valid"),n.removeAttribute("aria-invalid")}function Xl(e){let t={};if(!e||typeof e!="object")return t;let n=e,r=n.errors&&typeof n.errors=="object"?n.errors:n;for(let[o,i]of Object.entries(r))o==="message"||o==="mensagem"||o==="errors"||(typeof i=="string"?t[o]=i:Array.isArray(i)&&typeof i[0]=="string"&&(t[o]=i[0]));return t}function $b(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${ps(i)}"]`);if(gt(s))return s}let o=e.querySelector(`#${ps(t)}`);return gt(o)?o:null}function ws(e,t){let n=Xl(t),r=[];for(let[o,i]of Object.entries(n)){let s=$b(e,o);s?xs(s,i):r.push(i)}return r.length&&Db(e,r),n}function Db(e,t){ys();let n=e.querySelector(".v-form-error");if(n||(n=document.createElement("div"),n.className="v-form-error",n.setAttribute("role","alert"),e.prepend(n)),n.textContent="",t.length===1){n.textContent=t[0];return}let r=document.createElement("ul");for(let o of t){let i=document.createElement("li");i.textContent=o,r.appendChild(i)}n.appendChild(r)}function Gl(e){let t=e.querySelector(".v-invalid");if(!t)return!1;try{t.focus({preventScroll:!0})}catch(r){t.focus()}let n=typeof window!="undefined"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;return typeof t.scrollIntoView=="function"&&t.scrollIntoView({block:"center",behavior:n?"auto":"smooth"}),!0}function ks(e,t=!0){let n=e.tagName==="FORM"?Array.from(e.elements):Array.from(e.querySelectorAll("input, select, textarea")),r=[];for(let o of n)gt(o)&&(o.disabled||hb.has(Ft(o))||t&&Yl(o).length===0||r.push(o));return r}async function Ql(e,t={}){var s,a;if(!gt(e))return{valid:!0};let n=Yl(e);if(!n.length)return t.silent||_l(e),{valid:!0};let r=$o(e),o=Zt(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!Ab.has(l.name))continue;let c=vs.get(l.name);if(!c)continue;let d;try{d=await c.fn(r,l.param||void 0,e)}catch(p){re(`Rule "${l.name}" failed to execute`,p);continue}if(d===!0)continue;let u=o!=null?o:typeof d=="string"?d:(a=(s=St[l.name])!=null?s:c.message)!=null?a:St.invalid,f=sp(u,{field:gb(e),param:l.param,value:r});return t.silent||(xs(e,f),ip(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(_l(e,!i),ip(e,{valid:!0})),{valid:!0}}function Jl(e){return gt(e)?Ql(e):Zl(e)}async function Zl(e){let t=ks(e),n=await Promise.all(t.map(o=>Ql(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Kl(o)]=(a=s.message)!=null?a:St.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function ip(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Kl(e),...t}}))}function Pb(e){let t=e.indexOf("[");if(t===-1)return[e];let n=[e.slice(0,t)],r=/\[([^\]]*)\]/g,o;for(;(o=r.exec(e))!==null;)n.push(o[1]);return n}function Nb(e,t,n){let r=e;for(let o=0;o<t.length;o++){let i=t[o],s=o===t.length-1,a=t[o+1];if(i===""){if(!Array.isArray(r))return;if(s){r.push(n);return}let c=a===""?[]:{};r.push(c),r=c;continue}if(Array.isArray(r)){let c=Number(i);if(!Number.isInteger(c))return;if(s){r[c]=n;return}let d=r[c];(d==null||typeof d!="object")&&(d=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=d),r=d;continue}if(s){r[i]=n;return}let l=r[i];(l==null||typeof l!="object")&&(l=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[i]=l),r=l}}function Hb(e,t){var a,l,c,d;let n=ks(e,!1),r=[],o=new Map;for(let u of n)Ft(u)==="checkbox"&&u.name&&o.set(u.name,((a=o.get(u.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let u of n){if(!u.name||u.disabled&&!t.includeDisabled)continue;let f=Ft(u);if(f==="file"){let m=Array.from((l=u.files)!=null?l:[]);if(!m.length)continue;let h=u.multiple||u.name.endsWith("[]");r.push({name:u.name,value:h?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(u.name))!=null?c:1)>1||u.name.endsWith("[]")){if(!u.checked)continue;let h=u.name.endsWith("[]")?u.name:`${u.name}[]`;r.push({name:h,value:u.value||"on"})}else r.push({name:u.name,value:u.checked});continue}if(f==="radio"){if(!u.checked)continue;r.push({name:u.name,value:u.value});continue}if(u.tagName==="SELECT"&&u.multiple){let m=Array.from(u.selectedOptions).map(v=>v.value),h=u.name.endsWith("[]")?u.name:`${u.name}[]`;for(let v of m)r.push({name:h,value:v});continue}let p=(d=u.value)!=null?d:"";if(i&&typeof p=="string"&&(p=p.trim()),s&&(f==="number"||f==="range")&&p!==""){let m=Number(p);Number.isFinite(m)&&(p=m)}r.push({name:u.name,value:p})}return r}function Ob(e){for(let t of ks(e,!1)){if(Ft(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function cp(e,t,n){if(n instanceof File||typeof Blob!="undefined"&&n instanceof Blob){e.append(t,n);return}if(Array.isArray(n)){let r=t.endsWith("[]")?t:`${t}[]`;for(let o of n)cp(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function Rr(e,t={}){let n=Hb(e,t);if(t.formData||Ob(e)){let o=new FormData;for(let i of n)cp(o,i.name,i.value);return o}let r={};for(let o of n)Nb(r,Pb(o.name),o.value);return r}var Co=new WeakSet,Ro=new WeakSet;async function ms(e){(await Ql(e)).valid?Ro.delete(e):Ro.add(e)}function Es(e,t){if(!gt(e)){re(`${w.prefix}validate only works on input, select, or textarea.`);return}if(Co.has(e))return;Co.add(e),ys();let n=()=>{ms(e)},r=()=>{Ro.has(e)&&ms(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Co.delete(e),Ro.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Wl=new WeakSet;function dp(e){return Wl.has(e)||mb(e,"validate")}function Ib(e,t){Wl.add(e),ys(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!gt(i)||Co.has(i)||Yl(i).length!==0&&ms(i)},r=o=>{let i=o.target;!gt(i)||Co.has(i)||Ro.has(i)&&ms(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Wl.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}x("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${w.prefix}submit`)){Ib(e,t);return}Es(e,t)});var Fb=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of Fb)x(e,({el:t,cleanup:n})=>{Es(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])x(e,({el:t,cleanup:n})=>{gt(t)&&Es(t,n)});function fp(){return ee({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var $r=new WeakMap,nc=new WeakMap,zb=fp();function No(e){let t=$r.get(e);return t||(t=fp(),$r.set(e,t)),t}function Bb(e){let t=e;for(;t;){let n=nc.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?$r.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?$r.get(s):void 0;if(a)return a}t=t.parent}if(typeof document!="undefined")for(let n of Array.from(document.forms)){let r=$r.get(n);if(r)return r}return zb}F("$form",e=>Bb(e));var Dr=new WeakMap,jb=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function up(e){return jb.some(t=>ln(e,`${w.prefix}${t}`)||ln(e,`data-v-${t}`))}function je(e,t){var i,s,a;let n=Zt(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=Zt(r,t);if(l!==null)return l}let o=(a=(i=Dr.get(e))==null?void 0:i[t])!=null?a:r?(s=Dr.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function Ms(e,t){return je(e,t)!==null}function bt(e,t){x(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=Dr.get(o))!=null?l:{};if(i[e]=r,Dr.set(o,i),!up(o)&&!up(n)){re(`${w.prefix}${e} needs an element with ${w.prefix}submit, ${w.prefix}upload, ${w.prefix}dropzone, or ${w.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&re(s)})}var qb=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];bt("method",e=>e&&!qb.includes(e.trim().toUpperCase())?`${w.prefix}method received an unknown verb: ${e}`:null);bt("redirect");bt("reset-success");bt("disable-loading");bt("loading-class");bt("on-success");bt("on-error");bt("on-complete");bt("toast-success");bt("toast-error");bt("confirm");bt("form-data");x("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=Dr.get(n))!=null?s:{};r.loading=t,Dr.set(n,r);let o=pp(t);if(!o){re(`${w.prefix}loading element not found: ${t}`);return}mp(o,!1)});var Vb=`
|
|
287
287
|
form.v-loading{cursor:progress}
|
|
288
288
|
form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
289
289
|
.v-progress{position:relative;overflow:hidden;width:100%;height:8px;margin-top:8px;
|
|
@@ -312,11 +312,11 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
|
312
312
|
.v-autosave-status[data-state="saved"]{color:var(--v-success,#2ED9A5)}
|
|
313
313
|
.v-autosave-status[data-state="error"]{color:var(--v-danger,#FF4D4D)}
|
|
314
314
|
@media (prefers-reduced-motion: reduce){.v-progress-bar,.v-dropzone{transition:none}}
|
|
315
|
-
`;function uo(){ge(),Z("forms-ajax",pb)}function Gt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Zi(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=q(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function Ll(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function Ml(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>Ml(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))Ml(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function mb(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function If(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var kl=new WeakMap;function zf(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=kl.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}kl.has(e)||kl.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Qi(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=Re(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Ji(n,"disable-loading"))for(let a of mb(r))a.disabled=t;let s=Re(n,"loading");if(s){let a=If(s);a&&zf(a,t)}}function es(e,t,n,r){let o=Re(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=q(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function vb(e,t){let n=Re(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){G(`${w.prefix}target destination not found: ${n}`);return}let o=(Re(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=Ce(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))Y(l);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":Y(r),r.replaceWith(...s);break;default:G(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&ne(l,a)}function Bf(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=Ll(t),vb(e,t),Ji(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),lo(o));let s=Re(i,"toast-success");s!==null&&st.success(s||r.message||"All set!"),es(e,"on-success",t,{status:n}),Gt(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=Re(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?Zi(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function Sl(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof Ee?t:new Ee(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=Ll(s)||i.message;let a=gl(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Ki(r,s),bl(r));let l=Re(o,"toast-error");l!==null&&st.error(l||Ll(s)||"Could not submit the form."),es(e,"on-error",s,i),Gt(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function jf(e,t){es(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),Gt(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function hb(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=Re(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(Hf(r)){lo(r);let f=await wl(r);if(o.errors=f.errors,!f.valid){bl(r),Gt(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(Re(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Zi(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=cr(r,{formData:Ji(n,"form-data")}),d=a==="GET"||a==="HEAD";Qi(e,!0),o.success=!1,o.progress=0,Gt(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let f=await Vt({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?Ml(c):void 0});u=!0,Bf(e,f.data,f.status)}catch(f){Sl(e,f)}finally{Qi(e,!1),jf(e,u)}}y("submit",({el:e,scope:t,expression:n,cleanup:r})=>{uo();let o=e,i=co(o),s=t.child({$form:i},o);Tl.set(s,i),Tl.set(t,i),Bt(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Bt(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),hb(a,n)},c=d=>{var p;let u=d.detail;if(!u||!u.field)return;let f={...i.errors};u.valid?delete f[u.field]:f[u.field]=(p=u.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{dr.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:j.DATA-1});function gb(e){let t=Re(e,"progress");if(t){let o=document.querySelector(t);return o||(G(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;uo();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Gi(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function bb(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=cr(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function qf(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Zi(t,e.scope);if(!a){G(`${w.prefix}upload needs a destination URL.`);return}let l=gb(s),c=bb(s,n,r);Qi(e,!0),o.success=!1,o.progress=0,Gi(l,0,"loading"),Gt(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(Re(s,"method")||"POST").trim().toUpperCase(),f=await he.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:p=>{o.progress=p,Gi(l,p,"loading"),Gt(i,"voodoo:progress",{percent:p,form:i,state:o})}});d=!0,o.progress=100,Gi(l,100,"done"),Bf(e,f,200)}catch(u){Gi(l,o.progress,"error"),Sl(e,u)}finally{Qi(e,!1),jf(e,d)}}y("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){G(`${w.prefix}upload needs an <input type="file">.`);return}uo();let i=(c=o.closest("form"))!=null?c:o,s=co(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&qf(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});y("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,x,T;uo(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(x=e.closest("form"))!=null?x:e,i=co(o),s={host:e,form:o,scope:t,state:i},a=Re(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=E=>{E.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),qf(s,n,E,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=E=>{E.preventDefault(),d++,e.classList.add("v-dropzone-over")},f=E=>{E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="copy")},p=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=E=>{var D,A;E.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let C=Array.from((A=(D=E.dataTransfer)==null?void 0:D.files)!=null?A:[]);c(l.multiple?C:C.slice(0,1))},h=E=>{E.target!==l&&l.click()},v=E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),l.click())},g=()=>{var C;let E=Array.from((C=l.files)!=null?C:[]);c(E),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var yb={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function xb(e){let t=Re(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;G(`${w.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function El(e,t){e.setAttribute("data-state",t),e.textContent=yb[t]}y("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;uo();let i=e,s=co(i),a={host:i,form:i,scope:t,state:s},l=xb(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:Re(i,"autosave-delay"))!=null?v:1e3,d=Q(c,1e3),u=async()=>{let g=Zi(n,t);if(!g){G(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,El(l,"saving");let b=(Re(i,"method")||"POST").trim().toUpperCase();try{let x=await Vt({url:g,method:b,body:cr(i,{formData:Ji(i,"form-data")})});s.data=x.data,s.status=x.status,s.dirty=!1,s.success=!0,El(l,"saved"),es(a,"on-success",x.data,{status:x.status}),Gt(i,"voodoo:autosave",{data:x.data,status:x.status,form:i,state:s})}catch(x){El(l,"error"),Sl(a,x)}finally{s.saving=!1}},f=Ye(()=>{u()},d),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});y("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=co(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});de();ce();function fo(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Me(r)}catch(o){}return t}function Vf(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}y("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:Vf(e,"voodoo:persist"),i=fe.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=Ye(()=>{fe.set(o,fo(t.data))},120),a=Ie(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:j.DATA-1});y("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||Vf(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=Ye(()=>{if(!a)try{i.postMessage({from:s,state:fo(t.data)})}catch(d){W(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[f,p]of Object.entries(u.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=Ie(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:j.DATA-1});var Cl=new WeakMap;function Al(e){let t=e;for(;t;){let n=Cl.get(t);if(n)return n;t=t.parentElement}return null}y("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(fo(t.data)))],s=0,a=!1,l=X({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(fo(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=Ye(()=>{if(a)return;let m=JSON.stringify(fo(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,c())},Q((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=Ie(t.data,()=>u(),{deep:!0});Cl.set(e,l),t.set("$history",l),r(()=>{f(),u.cancel(),Cl.delete(e)})},{priority:j.DATA-1});y("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Al(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=Al(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});y("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=fe.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{fe.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?Al(e.el):null);ce();de();Ae();var fr=null,Qt=.35,Nt=!1,Uf=!1,Rl="voodoo:sound:volume",Yf="voodoo:sound:muted",_f=Ge(0);function yn(){if(Uf)return;Uf=!0;let e=fe.get(Rl);typeof e=="number"&&e>=0&&e<=1&&(Qt=e);let t=fe.get(Yf);typeof t=="boolean"&&(Nt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&fe.get(Rl)===void 0&&(Qt=.18)}function Wf(){var t;if(typeof window=="undefined")return null;if(fr)return fr.state==="suspended"&&fr.resume(),fr;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return fr=new e,fr}catch(n){return null}}function Kf(e,t,n){var c,d,u,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=Qt*n*((u=t.volume)!=null?u:1),l=(f=t.ataque)!=null?f:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var ts={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},wb={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function ns(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=wb[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var rs=new Map;function kb(e,t){let n=rs.get(e);n||(n=new Audio(e),n.preload="auto",rs.set(e,n)),n.volume=Math.max(0,Math.min(1,Qt*t)),n.currentTime=0,n.play().catch(()=>{})}function Xf(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var Jt={play(e,t={}){var l,c,d;if(yn(),Nt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Xf(n)){kb(n,r);return}let o=ts[n];if(!o){let u=ns(n);u!==null&&this.tone(u,200,{volume:r});return}let i=Wf();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)Kf(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(yn(),Nt)return;let r=Wf();r&&Kf(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=ns(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){yn(),!Nt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:ns(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return yn(),e===void 0||(Qt=Math.max(0,Math.min(1,e)),fe.set(Rl,Qt)),Qt},mute(e=!0){yn(),Nt=e,fe.set(Yf,Nt),_f.value++},unmute(){this.mute(!1)},toggle(){return yn(),this.mute(!Nt),Nt},get muted(){return _f.value,yn(),Nt},get names(){return Object.keys(ts)},define(e,t){ts[e]=t},preload(...e){for(let t of e){if(rs.has(t))continue;let n=new Audio(t);n.preload="auto",rs.set(t,n)}}};y("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(ts[u]||Xf(u)||ns(u)!==null)return u;let f=s();return typeof f=="string"?f:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{Jt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});var Eb=`
|
|
315
|
+
`;function Ho(){Me(),ae("forms-ajax",Vb)}function bn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ss(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=Y(i.trim(),t,`${w.prefix}submit`);return s==null?o:String(s)}));let r=w.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function rc(e){var r;if(!e||typeof e!="object")return"";let t=e,n=(r=t.message)!=null?r:t.mensagem;return typeof n=="string"?n:""}function oc(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>oc(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))oc(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Ub(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function pp(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var ec=new WeakMap;function mp(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=ec.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}ec.has(e)||ec.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function Ls(e,t){let{host:n,form:r,state:o}=e;o.loading=t,r.classList.toggle("v-loading",t),r.setAttribute("aria-busy",t?"true":"false");let i=je(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(Ms(n,"disable-loading"))for(let a of Ub(r))a.disabled=t;let s=je(n,"loading");if(s){let a=pp(s);a&&mp(a,t)}}function As(e,t,n,r){let o=je(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=Y(o,i,`${w.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function _b(e,t){let n=je(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){re(`${w.prefix}target destination not found: ${n}`);return}let o=(je(e.host,"swap")||"innerHTML").trim().toLowerCase();if(o==="none")return;if(o==="text"){r.textContent=t;return}let i=document.createElement("template");i.innerHTML=t;let s=Array.from(i.content.childNodes),a=ze(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))oe(l);r.textContent="",r.append(...s);break;case"afterbegin":case"prepend":r.prepend(...s);break;case"beforeend":case"append":r.append(...s);break;case"beforebegin":r.before(...s);break;case"afterend":r.after(...s);break;case"outer":case"outerhtml":case"replace":oe(r),r.replaceWith(...s);break;default:re(`Unknown mode in ${w.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&ue(l,a)}function vp(e,t,n){var l;let{state:r,form:o,host:i}=e;r.success=!0,r.errors={},r.data=t,r.status=n,r.dirty=!1,r.message=rc(t),_b(e,t),Ms(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),Po(o));let s=je(i,"toast-success");s!==null&&Lt.success(s||r.message||"All set!"),As(e,"on-success",t,{status:n}),bn(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=je(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,d=e.scope.child({$data:t,$form:r}),u=a?Ss(a,d):String(c!=null?c:"");u&&window.location.assign(u)}}function ic(e,t){var c,d;let{state:n,form:r,host:o}=e,i=t instanceof He?t:new He(t instanceof Error?t.message:String(t)),s=(d=(c=i.response)==null?void 0:c.data)!=null?d:null;n.success=!1,n.data=s,n.status=i.status,n.message=rc(s)||i.message;let a=Xl(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=ws(r,s),Gl(r));let l=je(o,"toast-error");l!==null&&Lt.error(l||rc(s)||"Could not submit the form."),As(e,"on-error",s,i),bn(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function hp(e,t){As(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),bn(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Wb(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=je(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(dp(r)){Po(r);let f=await Zl(r);if(o.errors=f.errors,!f.valid){Gl(r),bn(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(je(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=Ss(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=Rr(r,{formData:Ms(n,"form-data")}),d=a==="GET"||a==="HEAD";Ls(e,!0),o.success=!1,o.progress=0,bn(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let u=!1;try{let f=await un({url:l,method:a,body:d?void 0:c,params:d&&!(c instanceof FormData)?oc(c):void 0});u=!0,vp(e,f.data,f.status)}catch(f){ic(e,f)}finally{Ls(e,!1),hp(e,u)}}x("submit",({el:e,scope:t,expression:n,cleanup:r})=>{Ho();let o=e,i=No(o),s=t.child({$form:i},o);nc.set(s,i),nc.set(t,i),Xt(o,s);for(let d of Array.from(o.childNodes))d.nodeType===1&&Xt(d,s);let a={host:o,form:o,scope:s,state:i},l=d=>{d.preventDefault(),Wb(a,n)},c=d=>{var p;let u=d.detail;if(!u||!u.field)return;let f={...i.errors};u.valid?delete f[u.field]:f[u.field]=(p=u.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{$r.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:_.DATA-1});function Kb(e){let t=je(e,"progress");if(t){let o=document.querySelector(t);return o||(re(`${w.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;Ho();let r=document.createElement("div");return r.className="v-progress",r.setAttribute("role","progressbar"),r.setAttribute("aria-valuemin","0"),r.setAttribute("aria-valuemax","100"),r.innerHTML='<span class="v-progress-bar"></span>',e.insertAdjacentElement("afterend",r),r}function Ts(e,t,n){if(!e)return;let r=Math.max(0,Math.min(100,Math.round(t)));if(e.tagName==="PROGRESS")e.value=r,e.max=100;else{let o=e.classList.contains("v-progress-bar")?e:e.querySelector(".v-progress-bar, [data-progress-bar]");o?o.style.width=`${r}%`:e.style.width=`${r}%`}e.setAttribute("aria-valuenow",String(r)),n?e.setAttribute("data-state",n):e.removeAttribute("data-state")}function Yb(e,t,n){let r=new FormData,i=t.length>1||n.endsWith("[]")?n.endsWith("[]")?n:`${n}[]`:n;for(let a of t)r.append(i,a);let s=e.closest("form");if(s){let a=Rr(s,{formData:!0});if(a instanceof FormData)for(let[l,c]of a.entries())c instanceof File||r.append(l,c)}return r}async function gp(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=Ss(t,e.scope);if(!a){re(`${w.prefix}upload needs a destination URL.`);return}let l=Kb(s),c=Yb(s,n,r);Ls(e,!0),o.success=!1,o.progress=0,Ts(l,0,"loading"),bn(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let d=!1;try{let u=(je(s,"method")||"POST").trim().toUpperCase(),f=await Le.upload(a,c,{method:u==="PUT"||u==="PATCH"?u:"POST",onProgress:p=>{o.progress=p,Ts(l,p,"loading"),bn(i,"voodoo:progress",{percent:p,form:i,state:o})}});d=!0,o.progress=100,Ts(l,100,"done"),vp(e,f,200)}catch(u){Ts(l,o.progress,"error"),ic(e,u)}finally{Ls(e,!1),hp(e,d)}}x("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){re(`${w.prefix}upload needs an <input type="file">.`);return}Ho();let i=(c=o.closest("form"))!=null?c:o,s=No(i),a={host:o,form:i,scope:t,state:s},l=()=>{var u;let d=Array.from((u=o.files)!=null?u:[]);d.length&&gp(a,n,d,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});x("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var b,y,T;Ho(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(b=e.textContent)!=null&&b.trim()||(e.textContent="Drag files here or click to choose");let o=(y=e.closest("form"))!=null?y:e,i=No(o),s={host:e,form:o,scope:t,state:i},a=je(e,"field")||"file",l=document.createElement("input");l.type="file",l.hidden=!0,l.tabIndex=-1,e.hasAttribute("accept")&&(l.accept=(T=e.getAttribute("accept"))!=null?T:""),e.hasAttribute("multiple")&&(l.multiple=!0),e.appendChild(l);let c=E=>{E.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),gp(s,n,E,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},d=0,u=E=>{E.preventDefault(),d++,e.classList.add("v-dropzone-over")},f=E=>{E.preventDefault(),E.dataTransfer&&(E.dataTransfer.dropEffect="copy")},p=()=>{d=Math.max(0,d-1),d===0&&e.classList.remove("v-dropzone-over")},m=E=>{var C,R;E.preventDefault(),d=0,e.classList.remove("v-dropzone-over");let A=Array.from((R=(C=E.dataTransfer)==null?void 0:C.files)!=null?R:[]);c(l.multiple?A:A.slice(0,1))},h=E=>{E.target!==l&&l.click()},v=E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),l.click())},g=()=>{var A;let E=Array.from((A=l.files)!=null?A:[]);c(E),l.value=""};e.addEventListener("dragenter",u),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",h),e.addEventListener("keydown",v),l.addEventListener("change",g),r(()=>{e.removeEventListener("dragenter",u),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",h),e.removeEventListener("keydown",v),l.removeEventListener("change",g),l.remove()})});var Xb={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Gb(e){let t=je(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;re(`${w.prefix}autosave-status element not found: ${t}`)}let n=e.querySelector(".v-autosave-status");if(n)return n;let r=document.createElement("span");return r.className="v-autosave-status",r.setAttribute("aria-live","polite"),e.appendChild(r),r}function tc(e,t){e.setAttribute("data-state",t),e.textContent=Xb[t]}x("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,h,v;Ho();let i=e,s=No(i),a={host:i,form:i,scope:t,state:s},l=Gb(i),c=(v=(h=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(g=>/^[\d.]+(ms|s|m)?$/.test(g)))!=null?h:je(i,"autosave-delay"))!=null?v:1e3,d=ie(c,1e3),u=async()=>{let g=Ss(n,t);if(!g){re(`${w.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,tc(l,"saving");let b=(je(i,"method")||"POST").trim().toUpperCase();try{let y=await un({url:g,method:b,body:Rr(i,{formData:Ms(i,"form-data")})});s.data=y.data,s.status=y.status,s.dirty=!1,s.success=!0,tc(l,"saved"),As(a,"on-success",y.data,{status:y.status}),bn(i,"voodoo:autosave",{data:y.data,status:y.status,form:i,state:s})}catch(y){tc(l,"error"),ic(a,y)}finally{s.saving=!1}},f=dt(()=>{u()},d),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});x("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=No(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=d=>{!o.dirty||o.loading||(d.preventDefault(),d.returnValue=i)};r.addEventListener("input",s),r.addEventListener("change",s),r.addEventListener("reset",a),r.addEventListener("voodoo:success",a),window.addEventListener("beforeunload",l),n(()=>{r.removeEventListener("input",s),r.removeEventListener("change",s),r.removeEventListener("reset",a),r.removeEventListener("voodoo:success",a),window.removeEventListener("beforeunload",l)})});xe();ye();function Oo(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=Ce(r)}catch(o){}return t}function bp(e,t){if(e.id)return`${t}:${location.pathname}:#${e.id}`;let n=[],r=e;for(;r&&r!==document.body;){let o=r.parentElement,i=o?Array.from(o.children).indexOf(r):0;n.unshift(`${r.tagName.toLowerCase()}${i}`),r=o}return`${t}:${location.pathname}:${n.join(">")}`}x("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:bp(e,"voodoo:persist"),i=ke.get(o);if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))l in t.data&&(t.data[l]=c);let s=dt(()=>{ke.set(o,Oo(t.data))},120),a=Ze(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:_.DATA-1});x("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||bp(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=dt(()=>{if(!a)try{i.postMessage({from:s,state:Oo(t.data)})}catch(d){te(d,"v-sync")}},60);i.addEventListener("message",d=>{let u=d.data;if(!(!u||u.from===s)){a=!0;for(let[f,p]of Object.entries(u.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=Ze(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:_.DATA-1});var sc=new WeakMap;function ac(e){let t=e;for(;t;){let n=sc.get(t);if(n)return n;t=t.parentElement}return null}x("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Oo(t.data)))],s=0,a=!1,l=ee({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,d())},redo(){s>=i.length-1||(s++,d())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Oo(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function d(){a=!0;let m=i[s];for(let[h,v]of Object.entries(m))t.data[h]=JSON.parse(JSON.stringify(v));c(),queueMicrotask(()=>{a=!1})}let u=dt(()=>{if(a)return;let m=JSON.stringify(Oo(t.data));m!==JSON.stringify(i[s])&&(i.splice(s+1),i.push(JSON.parse(m)),i.length>o&&i.shift(),s=i.length-1,c())},ie((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=Ze(t.data,()=>u(),{deep:!0});sc.set(e,l),t.set("$history",l),r(()=>{f(),u.cancel(),sc.delete(e)})},{priority:_.DATA-1});x("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ac(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});x("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ac(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});x("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=ke.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{ke.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});F("$history",e=>e.el?ac(e.el):null);ye();xe();Be();var Pr=null,yn=.35,en=!1,yp=!1,lc="voodoo:sound:volume",Ep="voodoo:sound:muted",xp=mt(0);function zn(){if(yp)return;yp=!0;let e=ke.get(lc);typeof e=="number"&&e>=0&&e<=1&&(yn=e);let t=ke.get(Ep);typeof t=="boolean"&&(en=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&ke.get(lc)===void 0&&(yn=.18)}function wp(){var t;if(typeof window=="undefined")return null;if(Pr)return Pr.state==="suspended"&&Pr.resume(),Pr;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return Pr=new e,Pr}catch(n){return null}}function kp(e,t,n){var c,d,u,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(d=t.forma)!=null?d:"sine",i.frequency.setValueAtTime(t.frequencia,r),t.ate!==void 0&&t.ate!==t.frequencia&&i.frequency.exponentialRampToValueAtTime(Math.max(1,t.ate),o);let s=e.createGain(),a=yn*n*((u=t.volume)!=null?u:1),l=(f=t.ataque)!=null?f:.008;s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(Math.max(1e-4,a),r+l),s.gain.exponentialRampToValueAtTime(1e-4,o),i.connect(s),s.connect(e.destination),i.start(r),i.stop(o+.02)}var Cs={click:{volume:.5,camadas:[{frequencia:660,ate:440,duracao:.06,forma:"triangle"}]},pop:{volume:.5,camadas:[{frequencia:880,ate:1320,duracao:.07,forma:"sine"}]},hover:{volume:.22,camadas:[{frequencia:1200,duracao:.035,forma:"sine"}]},success:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:783.99,duracao:.18,forma:"sine",atraso:.09}]},complete:{volume:.6,camadas:[{frequencia:523.25,duracao:.1,forma:"sine"},{frequencia:659.25,duracao:.1,forma:"sine",atraso:.09},{frequencia:1046.5,duracao:.22,forma:"sine",atraso:.18}]},error:{volume:.6,camadas:[{frequencia:392,duracao:.12,forma:"square",volume:.5},{frequencia:261.63,duracao:.24,forma:"square",volume:.5,atraso:.1}]},warning:{volume:.55,camadas:[{frequencia:587.33,duracao:.1,forma:"triangle"},{frequencia:587.33,duracao:.14,forma:"triangle",atraso:.14}]},notify:{volume:.5,camadas:[{frequencia:987.77,duracao:.14,forma:"sine"},{frequencia:1318.51,duracao:.3,forma:"sine",atraso:.08,volume:.6}]},type:{volume:.18,camadas:[{frequencia:2200,duracao:.018,forma:"square"}]},open:{volume:.4,camadas:[{frequencia:330,ate:660,duracao:.14,forma:"sine"}]},close:{volume:.4,camadas:[{frequencia:660,ate:330,duracao:.14,forma:"sine"}]},deny:{volume:.5,camadas:[{frequencia:220,duracao:.08,forma:"square",volume:.5},{frequencia:180,duracao:.12,forma:"square",volume:.5,atraso:.07}]},coin:{volume:.45,camadas:[{frequencia:987.77,duracao:.06,forma:"square"},{frequencia:1318.51,duracao:.16,forma:"square",atraso:.05}]},levelup:{volume:.55,camadas:[{frequencia:523.25,duracao:.08,forma:"square"},{frequencia:659.25,duracao:.08,forma:"square",atraso:.07},{frequencia:783.99,duracao:.08,forma:"square",atraso:.14},{frequencia:1046.5,duracao:.26,forma:"square",atraso:.21}]},drop:{volume:.5,camadas:[{frequencia:180,ate:90,duracao:.12,forma:"triangle"}]}},Qb={do:261.63,"do#":277.18,re:293.66,"re#":311.13,mi:329.63,fa:349.23,"fa#":369.99,sol:392,"sol#":415.3,la:440,"la#":466.16,si:493.88,c:261.63,d:293.66,e:329.63,f:349.23,g:392,a:440,b:493.88};function Rs(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Qb[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var $s=new Map;function Jb(e,t){let n=$s.get(e);n||(n=new Audio(e),n.preload="auto",$s.set(e,n)),n.volume=Math.max(0,Math.min(1,yn*t)),n.currentTime=0,n.play().catch(()=>{})}function Tp(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var xn={play(e,t={}){var l,c,d;if(zn(),en||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Tp(n)){Jb(n,r);return}let o=Cs[n];if(!o){let u=Rs(n);u!==null&&this.tone(u,200,{volume:r});return}let i=wp();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((d=o.volume)!=null?d:1)*r;for(let u of o.camadas)kp(i,s===1?u:{...u,frequencia:u.frequencia*s,ate:u.ate===void 0?void 0:u.ate*s},a)},tone(e,t=200,n={}){var o,i;if(zn(),en)return;let r=wp();r&&kp(r,{frequencia:e,duracao:t/1e3,forma:(o=n.forma)!=null?o:"sine"},(i=n.volume)!=null?i:.5)},note(e,t=250,n={}){let r=Rs(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){zn(),!en&&e.forEach((r,o)=>{let i=typeof r=="number"?r:Rs(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return zn(),e===void 0||(yn=Math.max(0,Math.min(1,e)),ke.set(lc,yn)),yn},mute(e=!0){zn(),en=e,ke.set(Ep,en),xp.value++},unmute(){this.mute(!1)},toggle(){return zn(),this.mute(!en),en},get muted(){return xp.value,zn(),en},get names(){return Object.keys(Cs)},define(e,t){Cs[e]=t},preload(...e){for(let t of e){if($s.has(t))continue;let n=new Audio(t);n.preload="auto",$s.set(t,n)}}};x("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let u=n.trim();if(!u)return"click";if(Cs[u]||Tp(u)||Rs(u)!==null)return u;let f=s();return typeof f=="string"?f:u},c=r.volume!==void 0?Number(r.volume):void 0,d=()=>{xn.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,d),i(()=>e.removeEventListener(a,d))});var Zb=`
|
|
316
316
|
.v-muted{opacity:.55}
|
|
317
317
|
.v-muted::after{content:" \\1F507";font-size:.9em}
|
|
318
318
|
.v-mute-on::after{content:" \\1F50A";font-size:.9em}
|
|
319
|
-
`;y("mute",({el:e,cleanup:t})=>{Z("mute",Eb);let n=()=>{let o=Jt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o),e.classList.toggle("v-mute-on",!o)},r=()=>{Jt.toggle(),n(),Jt.muted||Jt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>Jt);de();ce();function po(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var mr=new Set,wn=0;function tp(e){wn=0;let t=Array.from(mr);for(let n of t)mr.has(n)&&n(e);mr.size>0&&(wn=requestAnimationFrame(tp))}function np(e){typeof requestAnimationFrame=="function"&&(mr.add(e),wn||(wn=requestAnimationFrame(tp)))}function ss(e){mr.delete(e),mr.size===0&&wn&&(cancelAnimationFrame(wn),wn=0)}var rp=12e3;function Tb(e){return e*e*(2.70158*e-1.70158)}var mo={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*Tb(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function Lb(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=mo[e];if(t)return t}return mo.easeOut}var Il={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},Mb={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},op={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},zl={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},Sb={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},Cb=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),Pl=new WeakMap,Nl=new WeakMap;function as(e){let t=Pl.get(e);return t||(t={...Il},Pl.set(e,t)),t}function ip(e){let t=Nl.get(e);return t||(t={...zl},Nl.set(e,t)),t}function $e(e){return Math.round(e*1e3)/1e3}function Hl(e){let t=Pl.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${$e(t.x)}px, ${$e(r)}px, ${$e(t.z)}px)`),t.rotateX&&n.push(`rotateX(${$e(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${$e(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${$e(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${$e(t.skewX)}deg, ${$e(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${$e(o)}, ${$e(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function Ab(e){let t=Nl.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${$e(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${$e(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${$e(t.saturate)})`),t.grayscale&&n.push(`grayscale(${$e(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${$e(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var Rb=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,sp=/^#([0-9a-f]{3,8})$/i;function os(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||sp.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function $b(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function Gf(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=sp.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var f;let d=(f=r[c])!=null?f:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=$b(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function Db(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${$e(t)})`}function ap(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function lp(e,t,n,r){if(t==="transform")return as(e)[n];if(t==="filter")return ip(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function Pb(e,t,n){var u;let r=(u=op[t])!=null?u:t,o=r in Il?"transform":r in zl?"filter":"style",i=o==="style"?ap(r):r,s=o==="transform"?Mb[r]:o==="filter"?Sb[r]:Cb.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[lp(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(os(a[0])||os(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=os(a[0])?Gf(String(a[0])):[0,0,0,0],l.toColor=os(a[1])?Gf(String(a[1])):[0,0,0,0],l);let c=Qf(a[0],s),d=Qf(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function Qf(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=Rb.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function pr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){as(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){ip(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,Db(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${$e(s)}${i.unit}`)}r&&Hl(e),o&&Ab(e)}function cp(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=Pb(e,r,o);i&&n.push(i)}return n}function Jf(e,t){for(let n of Bl(e))pr(n,cp(n,t),0)}function Nb(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=op[o])!=null?r:o,s=i in Il?"transform":i in zl?"filter":"style";n[o]=lp(e,s,i,s==="style"?ap(i):i)}return n}function $l(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function Bl(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter($l);if($l(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];$l(o)&&n.push(o)}return n}function ls(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function Ol(e,t,n){var x,T,E,C,D,A,se;let r=cp(e,t);if(po()&&!n.force)return pr(e,r,1),(x=n.onUpdate)==null||x.call(n,1),(T=n.onComplete)==null||T.call(n),ls();let o=Math.max(0,(E=n.duration)!=null?E:400),i=Math.max(0,(C=n.delay)!=null?C:0),s=Lb(n.easing),a=Math.max(0,Math.floor((D=n.repeat)!=null?D:0)),l=(A=n.repeatType)!=null?A:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(O=>{d=O}),f=!0,p=-1,m=-1,h=0,v=(se=c==null?void 0:c.velocity)!=null?se:0;function g(O){var nn,An,Ac,Rc,$c,Dc,Pc;if(!f)return;p<0&&(p=O,m=O);let me=O-p-i;if(me<0)return;let ae=Math.min(64,Math.max(0,O-m));if(m=O,me>rp){b(1);return}if(c){let Em=(nn=c.stiffness)!=null?nn:170,Tm=(An=c.damping)!=null?An:26,Lm=(Ac=c.mass)!=null?Ac:1,Nc=Math.max(1,Math.round(ae)),Hc=ae/Nc/1e3;for(let Oc=0;Oc<Nc;Oc++){let Cm=(-Em*(h-1)-Tm*v)/Lm;v+=Cm*Hc,h+=v*Hc}let Mm=(Rc=c.restDelta)!=null?Rc:.001,Sm=($c=c.restSpeed)!=null?$c:.01;if(Math.abs(1-h)<Mm&&Math.abs(v)<Sm){b(1);return}pr(e,r,h),(Dc=n.onUpdate)==null||Dc.call(n,h);return}if(o===0){b(1);return}let R=a+1,S=Math.floor(me/o),B=(me-S*o)/o,_e=!1;S>=R&&(S=R-1,B=1,_e=!0);let We;if(S%2===1&&l==="reverse"?We=s(1-B):S%2===1&&l==="mirror"?We=1-s(B):We=s(B),_e){b(We);return}pr(e,r,We),(Pc=n.onUpdate)==null||Pc.call(n,We)}function b(O){var me,ae;f&&(f=!1,ss(g),pr(e,r,O),(me=n.onUpdate)==null||me.call(n,O),d(),(ae=n.onComplete)==null||ae.call(n))}return pr(e,r,c?h:s(0)),np(g),{finished:u,stop(){f&&(f=!1,ss(g),d())}}}function Ht(e,t,n={}){let r=Bl(e);if(r.length===0)return ls();if(r.length===1)return Ol(r[0],t,n);let o=r.map(i=>Ol(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function jl(e,t,n={}){var g,b,x,T,E,C,D,A;if(po())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),ls();let r=(x=n.stiffness)!=null?x:170,o=(T=n.damping)!=null?T:26,i=(E=n.mass)!=null?E:1,s=Math.abs(t-e)||1,a=(C=n.restDelta)!=null?C:s*.001,l=(D=n.restSpeed)!=null?D:s*.01,c=e,d=(A=n.velocity)!=null?A:0,u=!0,f=-1,p=0,m,h=new Promise(se=>{m=se});function v(se){var S,B,_e,We;if(!u)return;if(f<0){f=se,(S=n.onUpdate)==null||S.call(n,c);return}let O=Math.min(64,Math.max(0,se-f));f=se,p+=O;let me=Math.max(1,Math.round(O)),ae=O/me/1e3;for(let nn=0;nn<me;nn++){let An=(-r*(c-t)-o*d)/i;d+=An*ae,c+=d*ae}if(Math.abs(t-c)<a&&Math.abs(d)<l||p>rp){u=!1,ss(v),c=t,(B=n.onUpdate)==null||B.call(n,t),m(),(_e=n.onComplete)==null||_e.call(n);return}(We=n.onUpdate)==null||We.call(n,c)}return np(v),{finished:h,stop(){u&&(u=!1,ss(v),m())}}}function dp(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function ql(e,t,n={}){var l,c,d;let r=Bl(e);if(r.length===0)return ls();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,f)=>Ol(u,t,{...n,delay:i+dp(f,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function Hb(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function cs(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:Hb(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function Vl(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var Ob={opacity:[0,1],duration:420,easing:"easeOut"},Fb={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},Ib={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},zb={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},Bb={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},jb={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},qb={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},Vb={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},Ub={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},xn={fadeIn:Ob,fadeUp:Fb,fadeDown:Ib,scaleIn:zb,slideLeft:Bb,slideRight:jb,pop:qb,blurIn:Vb,flip:Ub},_b=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function ds(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(_b.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function up(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function vo(e,t){let n=e.trim();if(!n)return null;if(xn[n])return xn[n];if(!up(n))return null;let r=t();return typeof r=="string"&&xn[r]?xn[r]:r&&typeof r=="object"?r:null}function xt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Zf(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var fp=new WeakMap;function pp(e){let t=xt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function Wb(e){return Zf(e,"motion")||Zf(e,"motion-scroll")}function mp(e){let t=e.parentElement;if(!t)return 0;let n=fp.get(t);if(!n){let i=xt(t,"motion-stagger");if(i===null)return 0;n={step:Q(i,60),from:pp(t)}}let r=Array.from(t.children).filter(Wb),o=r.indexOf(e);return o<0?0:dp(o,r.length,n.step,n.from)}y("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=vo(t,n);if(!o){G(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=ds(o),a=mp(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=Ht(e,i,s);r(()=>l.stop())});y("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=vo(t,n);if(!i){G(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=ds(i),l=mp(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=xt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;po()||Jf(e,s);let f=null,p=cs(e,()=>{if(f==null||f.stop(),f=Ht(e,s,a),!c)return()=>{f==null||f.stop(),po()||Jf(e,s)}},{once:c,amount:u,margin:(h=xt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{p(),f==null||f.stop()})});y("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:Q(t,60);fp.set(e,{step:o,from:pp(e)})},{priority:j.BIND});function vp(e,t,n,r,o,i){let{keyframes:s,options:a}=ds(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=Ht(e,m,l)},f=()=>{c||(c=Nb(e,s)),u(s)},p=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,f);for(let m of r)e.addEventListener(m,p);i(()=>{for(let m of n)e.removeEventListener(m,f);for(let m of r)e.removeEventListener(m,p);d==null||d.stop()})}y("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=vo(t,n);if(!o){G(`v-motion-hover did not recognize the variant "${t}".`);return}vp(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});y("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=vo(t,n);if(!o){G(`v-motion-tap did not recognize the variant "${t}".`);return}vp(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});y("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(po()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;as(e).parallax=(d/2-u)*i,Hl(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),as(e).parallax=0,Hl(e),e.style.removeProperty("will-change")})});var is=new Map,Dl=null,Fl=!1;function ep(){Fl||typeof requestAnimationFrame!="function"||(Fl=!0,requestAnimationFrame(Kb))}function Kb(){var e;Fl=!1;for(let t of is.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=Ht(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function Yb(){var t;if(Dl||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(Dl=new MutationObserver(ep),Dl.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",ep))}y("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=vo(t,n),i=o?ds(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),Yb(),is.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=is.get(e))==null?void 0:s.control)==null||a.stop(),is.delete(e)})});function Xb(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}y("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var f,p,m,h,v;let o=Q((f=xt(e,"count-duration"))!=null?f:void 0,1400),i=Math.max(0,Math.min(6,parseInt((p=xt(e,"count-decimals"))!=null?p:"0",10)||0)),s=(m=xt(e,"count-format"))!=null?m:"number",a=(h=xt(e,"count-prefix"))!=null?h:"",l=(v=xt(e,"count-suffix"))!=null?v:"",c=Xb(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,x=d;u==null||u.stop(),u=Ht(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=x+(b-x)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});y("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=Q((l=xt(e,"typewriter-speed"))!=null?l:void 0,45),s=up(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=Ht(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(f){let p=Math.round(f*c.length);p!==d&&(d=p,e.textContent=c.slice(0,p))}})}),o(()=>a==null?void 0:a.stop())});Ae();ce();function Gb(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:ve.reducedMotion}var ho=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],Qb=`
|
|
319
|
+
`;x("mute",({el:e,cleanup:t})=>{ae("mute",Zb);let n=()=>{let o=xn.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o),e.classList.toggle("v-mute-on",!o)},r=()=>{xn.toggle(),n(),xn.muted||xn.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});F("$sound",()=>xn);xe();ye();function Io(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:Te.reducedMotion}var Hr=new Set,jn=0;function Rp(e){jn=0;let t=Array.from(Hr);for(let n of t)Hr.has(n)&&n(e);Hr.size>0&&(jn=requestAnimationFrame(Rp))}function $p(e){typeof requestAnimationFrame=="function"&&(Hr.add(e),jn||(jn=requestAnimationFrame(Rp)))}function Ns(e){Hr.delete(e),Hr.size===0&&jn&&(cancelAnimationFrame(jn),jn=0)}var Dp=12e3;function ey(e){return e*e*(2.70158*e-1.70158)}var Fo={linear(e){return e},easeIn(e){return e*e*e},easeOut(e){return 1-Math.pow(1-e,3)},easeInOut(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeOutBack(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},easeOutExpo(e){return e>=1?1:1-Math.pow(2,-10*e)},anticipate(e){let t=e*2;return t<1?.5*ey(t):.5*(2-Math.pow(2,-10*(t-1)))},bounce(e){let r=e;return r<1/2.75?7.5625*r*r:r<2/2.75?(r-=1.5/2.75,7.5625*r*r+.75):r<2.5/2.75?(r-=2.25/2.75,7.5625*r*r+.9375):(r-=2.625/2.75,7.5625*r*r+.984375)}};function ty(e){if(typeof e=="function")return e;if(typeof e=="string"){let t=Fo[e];if(t)return t}return Fo.easeOut}var hc={x:0,y:0,z:0,parallax:0,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,scale:1,scaleX:1,scaleY:1},ny={x:"px",y:"px",z:"px",parallax:"px",rotate:"deg",rotateX:"deg",rotateY:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},Pp={translateX:"x",translateY:"y",translateZ:"z",rotateZ:"rotate"},gc={blur:0,brightness:1,saturate:1,grayscale:0,contrast:1},ry={blur:"px",brightness:"",saturate:"",grayscale:"",contrast:""},oy=new Set(["opacity","z-index","font-weight","line-height","flex-grow","flex-shrink","order","zoom","fill-opacity","stroke-opacity","stroke-width","stroke-dashoffset","stroke-dasharray"]),uc=new WeakMap,fc=new WeakMap;function Hs(e){let t=uc.get(e);return t||(t={...hc},uc.set(e,t)),t}function Np(e){let t=fc.get(e);return t||(t={...gc},fc.set(e,t)),t}function qe(e){return Math.round(e*1e3)/1e3}function pc(e){let t=uc.get(e);if(!t)return;let n=[],r=t.y+t.parallax;(t.x||r||t.z)&&n.push(`translate3d(${qe(t.x)}px, ${qe(r)}px, ${qe(t.z)}px)`),t.rotateX&&n.push(`rotateX(${qe(t.rotateX)}deg)`),t.rotateY&&n.push(`rotateY(${qe(t.rotateY)}deg)`),t.rotate&&n.push(`rotate(${qe(t.rotate)}deg)`),(t.skewX||t.skewY)&&n.push(`skew(${qe(t.skewX)}deg, ${qe(t.skewY)}deg)`);let o=t.scale*t.scaleX,i=t.scale*t.scaleY;(o!==1||i!==1)&&n.push(`scale(${qe(o)}, ${qe(i)})`),n.length>0?e.style.transform=n.join(" "):e.style.removeProperty("transform")}function iy(e){let t=fc.get(e);if(!t)return;let n=[];t.blur&&n.push(`blur(${qe(t.blur)}px)`),t.brightness!==1&&n.push(`brightness(${qe(t.brightness)})`),t.saturate!==1&&n.push(`saturate(${qe(t.saturate)})`),t.grayscale&&n.push(`grayscale(${qe(t.grayscale)})`),t.contrast!==1&&n.push(`contrast(${qe(t.contrast)})`),n.length>0?e.style.filter=n.join(" "):e.style.removeProperty("filter")}var sy=/^([+-]?(?:\d+\.?\d*|\.\d+))([a-z%]*)$/i,Hp=/^#([0-9a-f]{3,8})$/i;function Ds(e){if(typeof e!="string")return!1;let t=e.trim().toLowerCase();return t==="transparent"||Hp.test(t)||t.startsWith("rgb")||t.startsWith("hsl")}function ay(e,t,n){let r=(e%360+360)%360,o=(1-Math.abs(2*n-1))*t,i=o*(1-Math.abs(r/60%2-1)),s=n-o/2,a;return r<60?a=[o,i,0]:r<120?a=[i,o,0]:r<180?a=[0,o,i]:r<240?a=[0,i,o]:r<300?a=[i,0,o]:a=[o,0,i],[Math.round((a[0]+s)*255),Math.round((a[1]+s)*255),Math.round((a[2]+s)*255)]}function Lp(e){var i,s;let t=e.trim().toLowerCase();if(t==="transparent")return[0,0,0,0];let n=Hp.exec(t);if(n){let a=n[1];(a.length===3||a.length===4)&&(a=a.split("").map(d=>d+d).join(""));let l=parseInt(a.slice(0,6),16),c=a.length===8?parseInt(a.slice(6,8),16)/255:1;return[l>>16&255,l>>8&255,l&255,c]}let r=(i=t.match(/-?(?:\d+\.?\d*|\.\d+)%?/g))!=null?i:[],o=(a,l)=>{var u;let c=(u=r[a])!=null?u:"0",d=parseFloat(c);return c.endsWith("%")?d/100*l:d};if(t.startsWith("hsl")){let a=c=>{var f;let d=(f=r[c])!=null?f:"0",u=parseFloat(d);return d.endsWith("%")||u>1?u/100:u},l=ay(parseFloat((s=r[0])!=null?s:"0"),a(1),a(2));return[l[0],l[1],l[2],r.length>3?o(3,1):1]}return[o(0,255),o(1,255),o(2,255),r.length>3?o(3,1):1]}function ly(e){let t=Math.max(0,Math.min(1,e[3]));return`rgba(${Math.round(e[0])}, ${Math.round(e[1])}, ${Math.round(e[2])}, ${qe(t)})`}function Op(e){return e.startsWith("--")?e:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ip(e,t,n,r){if(t==="transform")return Hs(e)[n];if(t==="filter")return Np(e)[n];if(typeof getComputedStyle!="function")return e.style.getPropertyValue(r).trim();let o=getComputedStyle(e).getPropertyValue(r);return o?o.trim():""}function cy(e,t,n){var u;let r=(u=Pp[t])!=null?u:t,o=r in hc?"transform":r in gc?"filter":"style",i=o==="style"?Op(r):r,s=o==="transform"?ny[r]:o==="filter"?ry[r]:oy.has(i)?"":"px",a=Array.isArray(n)?[n[0],n[1]]:[Ip(e,o,r,i),n],l={kind:o,prop:r,cssName:i,mode:"number",unit:s,from:0,to:0,fromColor:[0,0,0,1],toColor:[0,0,0,1],fromText:String(a[0]),toText:String(a[1])};if(Ds(a[0])||Ds(a[1]))return o!=="style"?null:(l.mode="color",l.fromColor=Ds(a[0])?Lp(String(a[0])):[0,0,0,0],l.toColor=Ds(a[1])?Lp(String(a[1])):[0,0,0,0],l);let c=Mp(a[0],s),d=Mp(a[1],s);return!c||!d?o!=="style"?null:(l.mode="discrete",l):(l.from=c.value,l.to=d.value,l.unit=d.unit||c.unit||s,l)}function Mp(e,t){if(typeof e=="number")return Number.isFinite(e)?{value:e,unit:t}:null;let n=sy.exec(e.trim());return n?{value:parseFloat(n[1]),unit:n[2]||t}:null}function Nr(e,t,n){let r=!1,o=!1;for(let i of t){if(i.kind==="transform"){Hs(e)[i.prop]=i.from+(i.to-i.from)*n,r=!0;continue}if(i.kind==="filter"){Np(e)[i.prop]=i.from+(i.to-i.from)*n,o=!0;continue}if(i.mode==="color"){let a=[i.fromColor[0]+(i.toColor[0]-i.fromColor[0])*n,i.fromColor[1]+(i.toColor[1]-i.fromColor[1])*n,i.fromColor[2]+(i.toColor[2]-i.fromColor[2])*n,i.fromColor[3]+(i.toColor[3]-i.fromColor[3])*n];e.style.setProperty(i.cssName,ly(a));continue}if(i.mode==="discrete"){e.style.setProperty(i.cssName,n>=1?i.toText:i.fromText);continue}let s=i.from+(i.to-i.from)*n;e.style.setProperty(i.cssName,`${qe(s)}${i.unit}`)}r&&pc(e),o&&iy(e)}function Fp(e,t){let n=[];for(let[r,o]of Object.entries(t)){if(o==null)continue;let i=cy(e,r,o);i&&n.push(i)}return n}function Sp(e,t){for(let n of bc(e))Nr(n,Fp(n,t),0)}function dy(e,t){var r;let n={};for(let o of Object.keys(t)){let i=(r=Pp[o])!=null?r:o,s=i in hc?"transform":i in gc?"filter":"style";n[o]=Ip(e,s,i,s==="style"?Op(i):i)}return n}function cc(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof SVGElement!="undefined"&&e instanceof SVGElement}function bc(e){if(!e)return[];if(typeof e=="string")return typeof document=="undefined"?[]:Array.from(document.querySelectorAll(e)).filter(cc);if(cc(e))return[e];let t=e;if(typeof t.length!="number")return[];let n=[];for(let r=0;r<t.length;r++){let o=t[r];cc(o)&&n.push(o)}return n}function Os(e){return{finished:Promise.resolve(),stop(){e==null||e()}}}function mc(e,t,n){var y,T,E,A,C,R,ce;let r=Fp(e,t);if(Io()&&!n.force)return Nr(e,r,1),(y=n.onUpdate)==null||y.call(n,1),(T=n.onComplete)==null||T.call(n),Os();let o=Math.max(0,(E=n.duration)!=null?E:400),i=Math.max(0,(A=n.delay)!=null?A:0),s=ty(n.easing),a=Math.max(0,Math.floor((C=n.repeat)!=null?C:0)),l=(R=n.repeatType)!=null?R:"loop",c=n.spring===!0?{}:n.spring?n.spring:null,d,u=new Promise(O=>{d=O}),f=!0,p=-1,m=-1,h=0,v=(ce=c==null?void 0:c.velocity)!=null?ce:0;function g(O){var nn,rn,ri,Z,Ae,Ne,oi;if(!f)return;p<0&&(p=O,m=O);let be=O-p-i;if(be<0)return;let Xe=Math.min(64,Math.max(0,O-m));if(m=O,be>Dp){b(1);return}if(c){let ia=(nn=c.stiffness)!=null?nn:170,sa=(rn=c.damping)!=null?rn:26,ad=(ri=c.mass)!=null?ri:1,Gr=Math.max(1,Math.round(Xe)),S=Xe/Gr/1e3;for(let W=0;W<Gr;W++){let G=(-ia*(h-1)-sa*v)/ad;v+=G*S,h+=v*S}let N=(Z=c.restDelta)!=null?Z:.001,z=(Ae=c.restSpeed)!=null?Ae:.01;if(Math.abs(1-h)<N&&Math.abs(v)<z){b(1);return}Nr(e,r,h),(Ne=n.onUpdate)==null||Ne.call(n,h);return}if(o===0){b(1);return}let I=a+1,$=Math.floor(be/o),K=(be-$*o)/o,st=!1;$>=I&&($=I-1,K=1,st=!0);let at;if($%2===1&&l==="reverse"?at=s(1-K):$%2===1&&l==="mirror"?at=1-s(K):at=s(K),st){b(at);return}Nr(e,r,at),(oi=n.onUpdate)==null||oi.call(n,at)}function b(O){var be,Xe;f&&(f=!1,Ns(g),Nr(e,r,O),(be=n.onUpdate)==null||be.call(n,O),d(),(Xe=n.onComplete)==null||Xe.call(n))}return Nr(e,r,c?h:s(0)),$p(g),{finished:u,stop(){f&&(f=!1,Ns(g),d())}}}function tn(e,t,n={}){let r=bc(e);if(r.length===0)return Os();if(r.length===1)return mc(r[0],t,n);let o=r.map(i=>mc(i,t,n));return{finished:Promise.all(o.map(i=>i.finished)).then(()=>{}),stop(){for(let i of o)i.stop()}}}function yc(e,t,n={}){var g,b,y,T,E,A,C,R;if(Io())return(g=n.onUpdate)==null||g.call(n,t),(b=n.onComplete)==null||b.call(n),Os();let r=(y=n.stiffness)!=null?y:170,o=(T=n.damping)!=null?T:26,i=(E=n.mass)!=null?E:1,s=Math.abs(t-e)||1,a=(A=n.restDelta)!=null?A:s*.001,l=(C=n.restSpeed)!=null?C:s*.01,c=e,d=(R=n.velocity)!=null?R:0,u=!0,f=-1,p=0,m,h=new Promise(ce=>{m=ce});function v(ce){var $,K,st,at;if(!u)return;if(f<0){f=ce,($=n.onUpdate)==null||$.call(n,c);return}let O=Math.min(64,Math.max(0,ce-f));f=ce,p+=O;let be=Math.max(1,Math.round(O)),Xe=O/be/1e3;for(let nn=0;nn<be;nn++){let rn=(-r*(c-t)-o*d)/i;d+=rn*Xe,c+=d*Xe}if(Math.abs(t-c)<a&&Math.abs(d)<l||p>Dp){u=!1,Ns(v),c=t,(K=n.onUpdate)==null||K.call(n,t),m(),(st=n.onComplete)==null||st.call(n);return}(at=n.onUpdate)==null||at.call(n,c)}return $p(v),{finished:h,stop(){u&&(u=!1,Ns(v),m())}}}function zp(e,t,n,r){return r==="last"?(t-1-e)*n:r==="center"?Math.abs(e-(t-1)/2)*n:e*n}function xc(e,t,n={}){var l,c,d;let r=bc(e);if(r.length===0)return Os();let o=(l=n.delay)!=null?l:60,i=(c=n.start)!=null?c:0,s=(d=n.from)!=null?d:"first",a=r.map((u,f)=>mc(u,t,{...n,delay:i+zp(f,r.length,o,s)}));return{finished:Promise.all(a.map(u=>u.finished)).then(()=>{}),stop(){for(let u of a)u.stop()}}}function uy(e){return e==="all"?.99:e==="any"?0:typeof e=="number"?Math.max(0,Math.min(1,e)):.25}function Is(e,t,n={}){var s,a,l;let r=(s=n.once)!=null?s:!0,o;if(typeof IntersectionObserver=="undefined")return o=t({target:e,isIntersecting:!0,intersectionRatio:1}),()=>{typeof o=="function"&&o()};let i=new IntersectionObserver(c=>{for(let d of c)d.isIntersecting?(o=t(d),r&&i.disconnect()):typeof o=="function"&&(o(),o=void 0)},{root:(a=n.root)!=null?a:null,rootMargin:(l=n.margin)!=null?l:"0px",threshold:uy(n.amount)});return i.observe(e),()=>{i.disconnect(),typeof o=="function"&&o()}}function wc(e,t){let n=!1,r=!1;if(typeof window=="undefined")return t(0),()=>{n=!0};let o=()=>{if(r=!1,n)return;let s=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight||1,l=a+s.height||1,c=(a-s.top)/l;t(Math.max(0,Math.min(1,c)))},i=()=>{r||n||(r=!0,requestAnimationFrame(o))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),o(),()=>{n=!0,window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}}var fy={opacity:[0,1],duration:420,easing:"easeOut"},py={opacity:[0,1],y:[24,0],duration:520,easing:"easeOutExpo"},my={opacity:[0,1],y:[-24,0],duration:520,easing:"easeOutExpo"},vy={opacity:[0,1],scale:[.92,1],duration:460,easing:"easeOutBack"},hy={opacity:[0,1],x:[36,0],duration:500,easing:"easeOutExpo"},gy={opacity:[0,1],x:[-36,0],duration:500,easing:"easeOutExpo"},by={opacity:[0,1],scale:[.6,1],spring:{stiffness:420,damping:18}},yy={opacity:[0,1],blur:[10,0],duration:560,easing:"easeOut"},xy={opacity:[0,1],rotateX:[-80,0],duration:620,easing:"easeOutBack"},Bn={fadeIn:fy,fadeUp:py,fadeDown:my,scaleIn:vy,slideLeft:hy,slideRight:gy,pop:by,blurIn:yy,flip:xy},wy=new Set(["duration","delay","easing","spring","repeat","repeatType","force","from","start","onUpdate","onComplete"]);function Fs(e){let t={},n={};for(let[r,o]of Object.entries(e))o!=null&&(wy.has(r)?n[r]=o:t[r]=o);return{keyframes:t,options:n}}function Bp(e){let t=e.trim();return t?/^['"`]/.test(t)||/^[[{(]/.test(t)?!0:/^[$A-Za-z_][\w$]*(?:\.[$A-Za-z_][\w$]*|\[[^\]]*\])*$/.test(t):!1}function zo(e,t){let n=e.trim();if(!n)return null;if(Bn[n])return Bn[n];if(!Bp(n))return null;let r=t();return typeof r=="string"&&Bn[r]?Bn[r]:r&&typeof r=="object"?r:null}function zt(e,t){var n;return(n=e.getAttribute(`${w.prefix}${t}`))!=null?n:e.getAttribute(`data-v-${t}`)}function Ap(e,t){return e.hasAttribute(`${w.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}var jp=new WeakMap;function qp(e){let t=zt(e,"motion-stagger-from");return t==="last"||t==="center"?t:"first"}function ky(e){return Ap(e,"motion")||Ap(e,"motion-scroll")}function Vp(e){let t=e.parentElement;if(!t)return 0;let n=jp.get(t);if(!n){let i=zt(t,"motion-stagger");if(i===null)return 0;n={step:ie(i,60),from:qp(t)}}let r=Array.from(t.children).filter(ky),o=r.indexOf(e);return o<0?0:zp(o,r.length,n.step,n.from)}x("motion",({el:e,expression:t,evaluate:n,cleanup:r})=>{var c;let o=zo(t,n);if(!o){re(`v-motion did not recognize the variant "${t}".`);return}let{keyframes:i,options:s}=Fs(o),a=Vp(e);a>0&&(s.delay=((c=s.delay)!=null?c:0)+a);let l=tn(e,i,s);r(()=>l.stop())});x("motion-scroll",({el:e,expression:t,evaluate:n,modifiers:r,cleanup:o})=>{var m,h;let i=zo(t,n);if(!i){re(`v-motion-scroll did not recognize the variant "${t}".`);return}let{keyframes:s,options:a}=Fs(i),l=Vp(e);l>0&&(a.delay=((m=a.delay)!=null?m:0)+l);let c=!r.repeat,d=zt(e,"motion-scroll-amount"),u=d===null?.25:parseFloat(d)||0;Io()||Sp(e,s);let f=null,p=Is(e,()=>{if(f==null||f.stop(),f=tn(e,s,a),!c)return()=>{f==null||f.stop(),Io()||Sp(e,s)}},{once:c,amount:u,margin:(h=zt(e,"motion-scroll-margin"))!=null?h:"0px"});o(()=>{p(),f==null||f.stop()})});x("motion-stagger",({el:e,expression:t,evaluate:n})=>{let r=n(),o=typeof r=="number"&&Number.isFinite(r)?r:ie(t,60);jp.set(e,{step:o,from:qp(e)})},{priority:_.BIND});function Up(e,t,n,r,o,i){let{keyframes:s,options:a}=Fs(t),l={...o,...a},c=null,d=null,u=m=>{d==null||d.stop(),d=tn(e,m,l)},f=()=>{c||(c=dy(e,s)),u(s)},p=()=>{c&&u(c)};for(let m of n)e.addEventListener(m,f);for(let m of r)e.addEventListener(m,p);i(()=>{for(let m of n)e.removeEventListener(m,f);for(let m of r)e.removeEventListener(m,p);d==null||d.stop()})}x("motion-hover",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=zo(t,n);if(!o){re(`v-motion-hover did not recognize the variant "${t}".`);return}Up(e,o,["mouseenter","focusin"],["mouseleave","focusout"],{duration:220,easing:"easeOut"},r)});x("motion-tap",({el:e,expression:t,evaluate:n,cleanup:r})=>{let o=zo(t,n);if(!o){re(`v-motion-tap did not recognize the variant "${t}".`);return}Up(e,o,["pointerdown"],["pointerup","pointercancel","pointerleave","blur"],{duration:140,easing:"easeOut"},r)});x("parallax",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(Io()||typeof window=="undefined")return;let o=n(),i=typeof o=="number"&&Number.isFinite(o)?o:parseFloat(t)||.3;e.style.willChange="transform";let s=!1,a=()=>{s=!1;let c=e.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight||1,u=c.top+c.height/2;Hs(e).parallax=(d/2-u)*i,pc(e)},l=()=>{s||(s=!0,requestAnimationFrame(a))};window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),a(),r(()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),Hs(e).parallax=0,pc(e),e.style.removeProperty("will-change")})});var Ps=new Map,dc=null,vc=!1;function Cp(){vc||typeof requestAnimationFrame!="function"||(vc=!0,requestAnimationFrame(Ey))}function Ey(){var e;vc=!1;for(let t of Ps.values()){if(!t.el.isConnected||t.animating)continue;let n=t.el.getBoundingClientRect(),r=t.rect;t.rect=n;let o=r.left-n.left,i=r.top-n.top,s=n.width>0?r.width/n.width:1,a=n.height>0?r.height/n.height:1,l=Math.abs(o)>=1||Math.abs(i)>=1,c=Math.abs(s-1)>=.01||Math.abs(a-1)>=.01;!l&&!c||(t.animating=!0,(e=t.control)==null||e.stop(),t.control=tn(t.el,{x:[o,0],y:[i,0],scaleX:[s,1],scaleY:[a,1]},t.options),t.control.finished.then(()=>{t.animating=!1,t.el.isConnected&&(t.rect=t.el.getBoundingClientRect())}))}}function Ty(){var t;if(dc||typeof MutationObserver=="undefined")return;let e=(t=w.root)!=null?t:document.body;e&&(dc=new MutationObserver(Cp),dc.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",Cp))}x("flip",({el:e,expression:t,evaluate:n,cleanup:r})=>{if(typeof document=="undefined")return;let o=zo(t,n),i=o?Fs(o).options:{};i.duration===void 0&&i.spring===void 0&&(i.spring={stiffness:340,damping:34}),Ty(),Ps.set(e,{el:e,rect:e.getBoundingClientRect(),options:i,control:null,animating:!1}),r(()=>{var s,a;(a=(s=Ps.get(e))==null?void 0:s.control)==null||a.stop(),Ps.delete(e)})});function Ly(e,t){let n={minimumFractionDigits:t,maximumFractionDigits:t};e==="currency"&&(n.style="currency",n.currency=w.currency);let r=new Intl.NumberFormat(w.locale,n);return e==="percent"?o=>`${r.format(o)}%`:o=>r.format(o)}x("count",({el:e,evaluate:t,effect:n,cleanup:r})=>{var f,p,m,h,v;let o=ie((f=zt(e,"count-duration"))!=null?f:void 0,1400),i=Math.max(0,Math.min(6,parseInt((p=zt(e,"count-decimals"))!=null?p:"0",10)||0)),s=(m=zt(e,"count-format"))!=null?m:"number",a=(h=zt(e,"count-prefix"))!=null?h:"",l=(v=zt(e,"count-suffix"))!=null?v:"",c=Ly(s,i),d=0,u=null;n(()=>{let g=Number(t()),b=Number.isFinite(g)?g:0,y=d;u==null||u.stop(),u=tn(e,{},{duration:o,easing:"easeOutExpo",onUpdate(T){d=y+(b-y)*T,e.textContent=`${a}${c(d)}${l}`}})}),r(()=>u==null?void 0:u.stop())});x("typewriter",({el:e,expression:t,evaluate:n,effect:r,cleanup:o})=>{var l;let i=ie((l=zt(e,"typewriter-speed"))!=null?l:void 0,45),s=Bp(t),a=null;r(()=>{var u;let c=s?String((u=n())!=null?u:""):t;if(a==null||a.stop(),e.textContent="",!c)return;let d=-1;a=tn(e,{},{duration:Math.max(1,c.length*i),easing:"linear",onUpdate(f){let p=Math.round(f*c.length);p!==d&&(d=p,e.textContent=c.slice(0,p))}})}),o(()=>a==null?void 0:a.stop())});Be();ye();function My(){return typeof window=="undefined"||typeof window.matchMedia!="function"?!1:Te.reducedMotion}var Bo=["#6D3BF5","#FF3D8B","#2ED9A5","#FFB35C","#9B7BFF","#FF4D4D","#14111F","#3BB6F5"],Sy=`
|
|
320
320
|
.v-chart{position:relative;display:block;width:100%;color:var(--v-text,#14111F);
|
|
321
321
|
font:500 12px/1.35 var(--v-font-sans,system-ui,-apple-system,'Segoe UI',sans-serif)}
|
|
322
322
|
.v-chart-svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
|
|
@@ -369,13 +369,13 @@ form.v-loading [type="submit"],form.v-loading button[disabled]{opacity:.6}
|
|
|
369
369
|
@media (prefers-reduced-motion: reduce){
|
|
370
370
|
.v-chart *{transition:none !important}
|
|
371
371
|
}
|
|
372
|
-
`;function k(e){return Math.round(e*100)/100}function ye(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function kn(e,t,n){return e<t?t:e>n?n:e}var hp=new Map;function gp(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=hp.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),hp.set(n,r)),r}function De(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return gp("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=gp("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function Jb(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function Ve(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function Zb(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:ho,r=Array.isArray(e.labels),o=r?e.labels.map(f=>String(f)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let f=s[0];if(typeof f=="number")i.push({name:a,values:s.map(ye),xs:null,color:n[0]});else if(Jb(f))s.forEach((p,m)=>{i.push({name:p.name||`Serie ${m+1}`,values:(p.data||[]).map(ye),xs:null,color:p.color||n[m%n.length]})});else{let p=s,m=[],h=[],v=!1;p.forEach((g,b)=>{m.push(ye(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let f=0;f<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);f++)o[f]===void 0&&(o[f]=Ve(o,f));return{series:i,labels:o,categorical:l}}function ey(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:Ve(e.labels,o),name:Ve(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function ty(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=Ve(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function bp(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function _l(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return _l(e-c*.5,t+c*.5,n)}let r=bp(t-e,!1),o=bp(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Wl(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=ye(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function yp(e){if(e.length===0)return"";let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${k(e[n][0])} ${k(e[n][1])}`);return t.join(" ")}function ny(e){if(e.length<3)return yp(e);let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${k(a)} ${k(l)}, ${k(c)} ${k(d)}, ${k(i[0])} ${k(i[1])}`)}return t.join(" ")}function ry(e,t){return t?ny(e):yp(e)}function ct(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function oy(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=ct(e,t,n,o),[c,d]=ct(e,t,n,i);if(r<=0)return`M ${k(e)} ${k(t)} L ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} Z`;let[u,f]=ct(e,t,r,o),[p,m]=ct(e,t,r,i);return`M ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} L ${k(p)} ${k(m)} A ${k(r)} ${k(r)} 0 ${s} 0 ${k(u)} ${k(f)} Z`}var iy=7;function xp(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*iy+12}function Kl(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Wl(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:wp(s.min,s.max,5)}:_l(s.min,s.max,5),l=a.ticks.map(T=>De(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,f=t.bare?3:16,p=t.bare?3:c?kn(xp(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-p-f),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),x="";if(c){let T=[];a.ticks.forEach((E,C)=>{let D=k(b(E));T.push(`<line class="v-chart-grid" x1="${k(p)}" y1="${D}" x2="${k(p+h)}" y2="${D}"/>`),T.push(`<text class="v-chart-axis" x="${k(p-8)}" y="${D+4}" text-anchor="end">${I(l[C])}</text>`)}),x=`<g>${T.join("")}</g>`}return{left:p,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:x}}function wp(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Yl(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${k(n(l))}" y="${k(r)}" text-anchor="middle">${I(c)}</text>`)}return a.join("")}function go(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function En(e){return`<text class="v-chart-empty" x="${k(e.width/2)}" y="${k(e.height/2)}" text-anchor="middle">No data</text>`}function Tn(e,t,n){return`<title>${I(e)}: ${I(De(t,n))}</title>`}function sy(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${De(o,t)} to ${De(i,t)}, minimum ${De(n,t)}, maximum ${De(r,t)}`}function ay(e){let t=e.type==="sparkline",n=e.type==="area",r=go(e.dataset);if(r===0)return En(e);let o=Kl(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(kn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let p=0;p<r;p++)d.push([i(p),o.y(ye(c.values[p]))]);if(d.length===0)continue;let u=ry(d,s);if(n){let p=`${u} L ${k(d[d.length-1][0])} ${k(l)} L ${k(d[0][0])} ${k(l)} Z`;a.push(`<path class="v-chart-area" d="${p}" fill="${I(c.color)}" fill-opacity="0.16"/>`)}let f=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${I(c.color)}"${f}><title>${I(sy(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((p,m)=>{a.push(`<circle class="v-chart-point" cx="${k(p[0])}" cy="${k(p[1])}" r="3.5" fill="${I(c.color)}">`+Tn(`${c.name} ${Ve(e.dataset.labels,m)}`,ye(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((p,m)=>{a.push(`<text class="v-chart-value" x="${k(p[0])}" y="${k(p[1]-10)}" text-anchor="middle">${I(De(ye(c.values[m]),e.format))}</text>`)})}return t||a.push(Yl(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),kp(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(ye(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function kp(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:Ve(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:ye(i.values[o])}))})}function ly(e){let t=e.type==="stacked",n=go(e.dataset);if(n===0)return En(e);let r=Kl(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(kn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=f=>r.left+o*f+o/2;for(let f=0;f<n;f++){let p=0,m=0;e.dataset.series.forEach((h,v)=>{let g=ye(h.values[f]),b,x,T;if(t){let D=g>=0?p:m,A=D+g;g>=0?p=A:m=A,b=Math.min(r.y(D),r.y(A)),x=Math.max(r.y(D),r.y(A)),T=r.left+o*f+s/2}else b=Math.min(r.y(g),l),x=Math.max(r.y(g),l),T=r.left+o*f+s/2+v*a;let E=t?Math.max(2,o-s):a*.86,C=Math.max(g===0?0:1,x-b);d.push(`<rect class="v-chart-bar" x="${k(T)}" y="${k(b)}" width="${k(E)}" height="${k(C)}" rx="${k(c)}" fill="${I(h.color)}" style="transform-origin:${k(T+E/2)}px ${k(l)}px;transition-delay:${f*30}ms">`+Tn(`${h.name} ${Ve(e.dataset.labels,f)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${k(T+E/2)}" y="${k(b-6)}" text-anchor="middle">${I(De(g,e.format))}</text>`)})}return d.push(Yl(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),kp(e,n,u,f=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,ye(h.values[f]));return r.y(m)}let p=l;for(let m of e.dataset.series)p=Math.min(p,r.y(ye(m.values[f])));return p}),d.join("")}function cy(e){let t=go(e.dataset);if(t===0)return En(e);let n=Wl(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:wp(n.min,n.max,5)}:_l(n.min,n.max,5),o=kn(xp(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,f=u(kn(0,r.min,r.max)),p=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(p*.3,16),v=Math.max(2,(p-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let x=k(u(b));g.push(`<line class="v-chart-grid" x1="${x}" y1="${k(s)}" x2="${x}" y2="${k(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${x}" y="${k(s+c+16)}" text-anchor="middle">${I(De(b,e.format))}</text>`)}for(let b=0;b<t;b++){let x=e.dataset.labels[b];x&&g.push(`<text class="v-chart-axis" x="${k(i-8)}" y="${k(s+p*b+p/2+4)}" text-anchor="end">${I(x)}</text>`);let T=f;e.dataset.series.forEach((E,C)=>{let D=ye(E.values[b]),A=Math.min(u(D),f);T=Math.max(T,u(D));let se=Math.max(D===0?0:1,Math.abs(u(D)-f)),O=s+p*b+h/2+C*v;g.push(`<rect class="v-chart-barh" x="${k(A)}" y="${k(O)}" width="${k(se)}" height="${k(v*.86)}" rx="${k(Math.min(4,v/2))}" fill="${I(E.color)}" style="transform-origin:${k(f)}px ${k(O+v/2)}px;transition-delay:${b*30}ms">`+Tn(`${E.name} ${Ve(e.dataset.labels,b)}`,D,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${k(A+se+6)}" y="${k(O+v*.6)}">${I(De(D,e.format))}</text>`)}),e.hits.push({x:T,y:s+p*b+p/2,title:Ve(e.dataset.labels,b),rows:e.dataset.series.map(E=>({name:E.name,color:E.color,value:ye(E.values[b])}))})}return g.join("")}function dy(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return En(e);let n=e.type==="donut",r=t.values.map(f=>Math.max(0,ye(f))),o=r.reduce((f,p)=>f+p,0);if(o<=0)return En(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${k(i)}px ${k(s)}px`,d=[],u=-Math.PI/2;return r.forEach((f,p)=>{let m=f/o*Math.PI*2,h=e.palette[p%e.palette.length],v=Ve(e.dataset.labels,p),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k((a+l)/2)}" fill="none" stroke="${I(h)}" stroke-width="${k(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k(a)}" fill="${I(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${p}" d="${oy(i,s,a,l,u,u+m)}" fill="${I(h)}" style="${c};transition-delay:${p*45}ms">`;d.push(`${b}${Tn(v,f,e.format)}${g?"</circle>":"</path>"}`);let x=u+m/2,[T,E]=ct(i,s,(a+l)/2,x);if(e.hits.push({x:T,y:E,title:v,rows:[{name:v,color:h,value:f}]}),e.options.showValues&&m>.3){let[C,D]=ct(i,s,n?(a+l)/2:a*.68,x),A=Math.round(f/o*100);d.push(`<text class="v-chart-value" x="${k(C)}" y="${k(D+4)}" text-anchor="middle">${A}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${k(i)}" y="${k(s+2)}" text-anchor="middle">${I(De(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${k(i)}" y="${k(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function uy(e){let t=go(e.dataset);if(t<3)return En(e);let r=Wl(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(ct(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=ct(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${k(o)}" y1="${k(i)}" x2="${k(d)}" y2="${k(u)}"/>`);let f=e.dataset.labels[c];if(f){let[p,m]=ct(o,i,s+14,a(c)),h=Math.abs(p-o)<4?"middle":p>o?"start":"end";l.push(`<text class="v-chart-axis" x="${k(p)}" y="${k(m+4)}" text-anchor="${h}">${I(f)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let f=kn(ye(c.values[u])/r,0,1);d.push(ct(o,i,s*f,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}" fill="${I(c.color)}" fill-opacity="0.22" stroke="${I(c.color)}" style="transform-origin:${k(o)}px ${k(i)}px"/>`),d.forEach((u,f)=>{l.push(`<circle class="v-chart-point" data-hit="${f}" cx="${k(u[0])}" cy="${k(u[1])}" r="3.5" fill="${I(c.color)}">`+Tn(`${c.name} ${Ve(e.dataset.labels,f)}`,ye(c.values[f]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=ct(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:Ve(e.dataset.labels,c),rows:e.dataset.series.map(f=>({name:f.name,color:f.color,value:ye(f.values[c])}))})}return l.join("")}function fy(e){let t=go(e.dataset);if(t===0)return En(e);let n=Kl(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let f=s(c,u),p=n.y(ye(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${k(f)}" cy="${k(p)}" r="4.5" fill="${I(c.color)}" style="transform-origin:${k(f)}px ${k(p)}px">`+Tn(`${c.name} ${Ve(e.dataset.labels,u)}`,ye(d),e.format)+"</circle>"),e.hits.push({x:f,y:p,title:Ve(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:ye(d)}]}),l++});return i||a.push(Yl(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function py(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?ye(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=kn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,f=u*(1-i),p=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:p,value:n}]}),`<circle class="v-chart-track" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" stroke-width="${k(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" fill="none" stroke="${I(p)}" stroke-width="${k(c)}" stroke-linecap="round" stroke-dasharray="${k(u)}" style="--v-ring-full:${k(u)};--v-ring-offset:${k(f)};transform:rotate(-90deg);transform-origin:${k(s)}px ${k(a)}px">`+Tn((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${k(s)}" y="${k(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${k(s)}" y="${k(a+22)}" text-anchor="middle">${I(De(n,e.format))}</text>`:"")}var my=new Set(["pie","donut","scatter","progress","radar"]);function vy(e){return e==="sparkline"?56:260}function hy(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var gy={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function by(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${gy[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${De(s,n)}, maximum ${De(a,n)}, average ${De(c,n)}.`)}return o.join(" ")}function yy(e){switch(e.type){case"bar":case"stacked":return ly(e);case"column":return cy(e);case"pie":case"donut":return dy(e);case"radar":return uy(e);case"scatter":return fy(e);case"progress":return py(e);default:return ay(e)}}function xy(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${I(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}</button>`}).join("")}</div>`}function us(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:ho,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||vy(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=Zb(n,r),c=ey(l,o),d=ty(l,e.hidden,o),u=n.animate!==!1&&!Gb();e.hits=[],e.shapeHits=my.has(r),e.hitAxis=r==="column"?"y":"x";let f={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},p=yy(f),m=by(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${I(m)}">`,p,"</svg>"];hy(n,l)&&h.push(xy(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function wy(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${I(r.color)}"></span>${I(r.name)}<b>${I(De(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${I(e.title)}</div>${n.join("")}`}function Ep(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function ky(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){Ep(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=wy(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function Ey(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),us(e))},r=i=>ky(e,i),o=()=>Ep(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function Ty(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,us(e)}))});t.observe(e.el),e.observer=t}function hr(e,t){ge(),Z("charts",Qb);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return Ey(n),us(n),Ty(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),us(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function tt(e,t){var n;return(n=Te(e,`${w.prefix}${t}`))!=null?n:Te(e,`data-v-${t}`)}function vr(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function Ly(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=tt(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=tt(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=tt(e,"chart-format");s&&(r.format=s);let a=tt(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=tt(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=tt(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=tt(e,"chart-smooth");d!==null&&(r.smooth=vr(d,!0));let u=tt(e,"chart-grid");u!==null&&(r.showGrid=vr(u,!0));let f=tt(e,"chart-legend");f!==null&&(r.showLegend=vr(f,!0));let p=tt(e,"chart-values");p!==null&&(r.showValues=vr(p,!0));let m=tt(e,"chart-tooltip");m!==null&&(r.tooltip=vr(m,!0));let h=tt(e,"chart-animate");return h!==null&&(r.animate=vr(h,!0)),r}function Ul(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=Ul(r,t+1);return n}for(let r of Object.values(e))n+=Ul(r,t+1);return n}y("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();Ul(i);let s=Ly(e,i);o?o.update(s):o=hr(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Xl={render:hr,format:De,colors:ho};de();ce();Ae();Ae();ce();var My=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Sy=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Cy=/^rgba?\(([^)]+)\)$/i,Ay=/^hsla?\(([^)]+)\)$/i;function Tp(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function Ry(e,t,n){let r=(e%360+360)%360,o=Ue(t/100,0,1),i=Ue(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,f,p]=d[c];return{r:Math.round((u+l)*255),g:Math.round((f+l)*255),b:Math.round((p+l)*255)}}function wt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=My.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=Sy.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Cy.exec(t);if(o){let[s,a,l]=Tp(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:Ue(s,0,255),g:Ue(a,0,255),b:Ue(l,0,255)}}let i=Ay.exec(t);if(i){let[s,a,l]=Tp(i[1]);return s===void 0||a===void 0||l===void 0?null:Ry(s,a,l)}return null}function Ue(e,t,n){return e<t?t:e>n?n:e}function yr(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gl(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function $y(e){let t=yr(e.r),n=yr(e.g),r=yr(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function Dy(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,i=n*n*n,s=r*r*r;return{r:Gl(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Gl(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Gl(-.0041960863*o-.7034186147*i+1.707614701*s)}}function ps(e){let t=$y(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function Lp(e){let t=e.h*Math.PI/180;return Dy({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function br(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Lp({l:Ue(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(Ue(o.r,0,1)*255),g:Math.round(Ue(o.g,0,1)*255),b:Math.round(Ue(o.b,0,1)*255)};t*=.92}let n=Lp({l:Ue(e.l,0,1),c:0,h:e.h});return{r:Math.round(Ue(n.r,0,1)*255),g:Math.round(Ue(n.g,0,1)*255),b:Math.round(Ue(n.b,0,1)*255)}}function Ql(e){return Ue(Math.round(e),0,255).toString(16).padStart(2,"0")}function Ln(e){return`#${Ql(e.r)}${Ql(e.g)}${Ql(e.b)}`}function gr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Rp(e){return Ln(br(e))}function Zl(e){return .2126*yr(e.r)+.7152*yr(e.g)+.0722*yr(e.b)}function ec(e,t){let n=typeof e=="string"?wt(e):e,r=typeof t=="string"?wt(t):t;if(!n||!r)return 1;let o=Zl(n),i=Zl(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var $p={r:255,g:255,b:255},ms={r:0,g:0,b:0};function bo(e){let t=typeof e=="string"?wt(e):e;return t?ec(t,$p)>=ec(t,ms)?"#ffffff":"#000000":"#ffffff"}var tc=[50,100,200,300,400,500,600,700,800,900],Dp=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Py=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Pp=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],Ny=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function Np(e,t=!1){var a;let n=typeof e=="string"?(a=wt(e))!=null?a:ms:e,r=ps(n),o=t?Pp:Dp,i=t?Ny:Py,s={};return tc.forEach((l,c)=>{s[String(l)]=Rp({l:o[c],c:r.c*i[c],h:r.h})}),s}var vs={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},Hp=["primary","accent","success","warning","danger","info"],nc="voodoo:palette",Mp="voodoo-palette",Hy="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Oy="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Sp(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var Fy=/^([\d.]+)(px|rem|em)$/;function Iy(e){let t=(e||"12px").trim(),n=Fy.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function Cp(e,t){var c,d,u,f;let n={},r={},o={};for(let p of Hp){let m=(c=wt(e[p]))!=null?c:ms,h=ps(m),v=Np(m,t);r[p]=v;for(let O of tc)n[`--v-${p}-${O}`]=v[String(O)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},x=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=br(g),E=br(b),C=br(x);n[`--v-${p}`]=Ln(t?T:m),n[`--v-${p}-hover`]=Ln(E),n[`--v-${p}-active`]=Ln(C),n[`--v-${p}-contrast`]=bo(t?T:m),n[`--v-${p}-contrast-hover`]=bo(E),n[`--v-${p}-contrast-active`]=bo(C);let D=v[50],A=v[100],se=t?v[800]:v[700];n[`--v-${p}-soft`]=D,n[`--v-${p}-soft-hover`]=A,n[`--v-${p}-soft-text`]=se,n[`--v-${p}-ring`]=gr(T,t?.45:.32),n[`--v-${p}-border`]=t?v[300]:v[200],o[p]=n[`--v-${p}-contrast`]}let i=(u=wt((d=e.neutral)!=null?d:e.primary))!=null?u:ms,s=ps(i).h,a=(p,m)=>Rp({l:p,c:m,h:s}),l={};if(tc.forEach((p,m)=>{let h=t?Pp:Dp;l[String(p)]=a(h[m],.012),n[`--v-neutral-${p}`]=l[String(p)]}),r.neutral=l,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let p=br({l:.24,c:.028,h:s});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=Ln(p),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=gr(p,.45),n["--v-shadow-sm"]=`0 1px 2px ${gr(p,.08)}`,n["--v-shadow"]=`0 10px 30px ${gr(p,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${gr(p,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=bo((f=wt(n["--v-surface"]))!=null?f:$p),{vars:n,scales:r,contrast:o}}function Jl(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
372
|
+
`;function k(e){return Math.round(e*100)/100}function Re(e){let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:0}function qn(e,t,n){return e<t?t:e>n?n:e}var _p=new Map;function Wp(e,t){let n=`${w.locale}|${w.currency}|${e}`,r=_p.get(n);return r||(r=new Intl.NumberFormat(w.locale,t),_p.set(n,r)),r}function Ve(e,t="number"){if(!Number.isFinite(e))return"";if(t==="currency")return Wp("currency",{style:"currency",currency:w.currency,maximumFractionDigits:2}).format(e);let n=Wp("number",{maximumFractionDigits:2}).format(e);return t==="percent"?`${n}%`:n}function Ay(e){return!!e&&typeof e=="object"&&Array.isArray(e.data)}function ot(e,t){let n=e[t];return n===void 0||n===""?`#${t+1}`:n}function Cy(e,t){var c,d,u;let n=e.colors&&e.colors.length>0?e.colors:Bo,r=Array.isArray(e.labels),o=r?e.labels.map(f=>String(f)):[],i=[],s=e.data,a=(c=e.name)!=null?c:"Value";if(typeof s=="number")i.push({name:a,values:[s],xs:null,color:n[0]});else if(Array.isArray(s)&&s.length>0){let f=s[0];if(typeof f=="number")i.push({name:a,values:s.map(Re),xs:null,color:n[0]});else if(Ay(f))s.forEach((p,m)=>{i.push({name:p.name||`Serie ${m+1}`,values:(p.data||[]).map(Re),xs:null,color:p.color||n[m%n.length]})});else{let p=s,m=[],h=[],v=!1;p.forEach((g,b)=>{m.push(Re(g.value!==void 0?g.value:g.y)),typeof g.x=="number"?(v=!0,h.push(g.x)):h.push(b),!r&&g.label!==void 0&&(o[b]=String(g.label))}),i.push({name:a,values:m,xs:v?h:null,color:n[0]})}}let l=t==="pie"||t==="donut";if(l)for(let f=0;f<((u=(d=i[0])==null?void 0:d.values.length)!=null?u:0);f++)o[f]===void 0&&(o[f]=ot(o,f));return{series:i,labels:o,categorical:l}}function Ry(e,t){if(e.categorical){let n=e.series[0];return n?n.values.map((r,o)=>({key:ot(e.labels,o),name:ot(e.labels,o),color:t[o%t.length]})):[]}return e.series.map(n=>({key:n.name,name:n.name,color:n.color}))}function $y(e,t,n){var r;if(t.size===0)return e;if(e.categorical){let o=e.series[0];if(!o)return e;let i=[],s=[],a=[];return o.values.forEach((l,c)=>{let d=ot(e.labels,c);t.has(d)||(i.push(l),s.push(d),a.push(n[c%n.length]))}),{series:[{...o,values:i,xs:null,color:(r=a[0])!=null?r:o.color}],labels:s,categorical:!0}}return{series:e.series.filter(o=>!t.has(o.name)),labels:e.labels,categorical:!1}}function Kp(e,t){let n=Math.abs(e)||1,r=Math.floor(Math.log10(n)),o=n/Math.pow(10,r),i;return t?o<1.5?i=1:o<3?i=2:o<7?i=5:i=10:o<=1?i=1:o<=2?i=2:o<=5?i=5:i=10,i*Math.pow(10,r)}function Ec(e,t,n=5){if(e===t){let c=Math.abs(e)||1;return Ec(e-c*.5,t+c*.5,n)}let r=Kp(t-e,!1),o=Kp(r/Math.max(1,n-1),!0),i=Math.max(0,Math.min(10,-Math.floor(Math.log10(o))+2)),s=Math.floor(e/o)*o,a=Math.ceil(t/o)*o,l=[];for(let c=s;c<=a+o*.5;c+=o)l.push(Number(c.toFixed(i)));return{min:s,max:a,ticks:l}}function Tc(e,t,n,r){let o=1/0,i=-1/0;if(n){let s=0;for(let a of e.series)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(let d of e.series){let u=Re(d.values[a]);u>=0?l+=u:c+=u}o=Math.min(o,c),i=Math.max(i,l)}}else for(let s of e.series)for(let a of s.values)Number.isFinite(a)&&(o=Math.min(o,a),i=Math.max(i,a));return(!Number.isFinite(o)||!Number.isFinite(i))&&(o=0,i=1),r&&(o=Math.min(o,0),i=Math.max(i,0)),t.min!==void 0&&(o=t.min),t.max!==void 0&&(i=t.max),o===i&&(i=o+(Math.abs(o)||1)),{min:o,max:i}}function Yp(e){if(e.length===0)return"";let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=1;n<e.length;n++)t.push(`L ${k(e[n][0])} ${k(e[n][1])}`);return t.join(" ")}function Dy(e){if(e.length<3)return Yp(e);let t=[`M ${k(e[0][0])} ${k(e[0][1])}`];for(let n=0;n<e.length-1;n++){let r=n>0?e[n-1]:e[n],o=e[n],i=e[n+1],s=n+2<e.length?e[n+2]:i,a=o[0]+(i[0]-r[0])/6,l=o[1]+(i[1]-r[1])/6,c=i[0]-(s[0]-o[0])/6,d=i[1]-(s[1]-o[1])/6;t.push(`C ${k(a)} ${k(l)}, ${k(c)} ${k(d)}, ${k(i[0])} ${k(i[1])}`)}return t.join(" ")}function Py(e,t){return t?Dy(e):Yp(e)}function At(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function Ny(e,t,n,r,o,i){let s=i-o>Math.PI?1:0,[a,l]=At(e,t,n,o),[c,d]=At(e,t,n,i);if(r<=0)return`M ${k(e)} ${k(t)} L ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} Z`;let[u,f]=At(e,t,r,o),[p,m]=At(e,t,r,i);return`M ${k(a)} ${k(l)} A ${k(n)} ${k(n)} 0 ${s} 1 ${k(c)} ${k(d)} L ${k(p)} ${k(m)} A ${k(r)} ${k(r)} 0 ${s} 0 ${k(u)} ${k(f)} Z`}var Hy=7;function Xp(e){let t=0;for(let n of e)t=Math.max(t,n.length);return t*Hy+12}function Lc(e,t){let{options:n,dataset:r,width:o,height:i}=e,s=Tc(r,n,t.stacked,t.baselineZero),a=n.min!==void 0&&n.max!==void 0?{min:s.min,max:s.max,ticks:Gp(s.min,s.max,5)}:Ec(s.min,s.max,5),l=a.ticks.map(T=>Ve(T,e.format)),c=n.showGrid!==!1&&!t.bare,d=r.labels.length>0&&!t.bare,u=t.bare?3:16,f=t.bare?3:16,p=t.bare?3:c?qn(Xp(l),32,140):8,m=t.bare?3:d?26:10,h=Math.max(1,o-p-f),v=Math.max(1,i-u-m),g=a.max-a.min||1,b=T=>u+v*(1-(T-a.min)/g),y="";if(c){let T=[];a.ticks.forEach((E,A)=>{let C=k(b(E));T.push(`<line class="v-chart-grid" x1="${k(p)}" y1="${C}" x2="${k(p+h)}" y2="${C}"/>`),T.push(`<text class="v-chart-axis" x="${k(p-8)}" y="${C+4}" text-anchor="end">${V(l[A])}</text>`)}),y=`<g>${T.join("")}</g>`}return{left:p,top:u,innerW:h,innerH:v,min:a.min,max:a.max,ticks:a.ticks,y:b,grid:y}}function Gp(e,t,n){let r=(t-e)/Math.max(1,n-1),o=[];for(let i=0;i<n;i++)o.push(Number((e+r*i).toFixed(6)));return o}function Mc(e,t,n,r,o){if(e.length===0||t===0)return"";let i=Math.max(1,Math.floor(o/56)),s=Math.max(1,Math.ceil(t/i)),a=[];for(let l=0;l<t;l+=s){let c=e[l];c===void 0||c===""||a.push(`<text class="v-chart-axis" x="${k(n(l))}" y="${k(r)}" text-anchor="middle">${V(c)}</text>`)}return a.join("")}function jo(e){let t=e.labels.length;for(let n of e.series)t=Math.max(t,n.values.length);return t}function Vn(e){return`<text class="v-chart-empty" x="${k(e.width/2)}" y="${k(e.height/2)}" text-anchor="middle">No data</text>`}function Un(e,t,n){return`<title>${V(e)}: ${V(Ve(t,n))}</title>`}function Oy(e,t){if(e.values.length===0)return e.name;let n=1/0,r=-1/0;for(let s of e.values)n=Math.min(n,s),r=Math.max(r,s);let o=e.values[0],i=e.values[e.values.length-1];return`${e.name}: from ${Ve(o,t)} to ${Ve(i,t)}, minimum ${Ve(n,t)}, maximum ${Ve(r,t)}`}function Iy(e){let t=e.type==="sparkline",n=e.type==="area",r=jo(e.dataset);if(r===0)return Vn(e);let o=Lc(e,{stacked:!1,baselineZero:n,bare:t}),i=c=>r<=1?o.left+o.innerW/2:o.left+o.innerW*c/(r-1),s=e.options.smooth===!0,a=[o.grid],l=o.y(qn(0,o.min,o.max));for(let c of e.dataset.series){let d=[];for(let p=0;p<r;p++)d.push([i(p),o.y(Re(c.values[p]))]);if(d.length===0)continue;let u=Py(d,s);if(n){let p=`${u} L ${k(d[d.length-1][0])} ${k(l)} L ${k(d[0][0])} ${k(l)} Z`;a.push(`<path class="v-chart-area" d="${p}" fill="${V(c.color)}" fill-opacity="0.16"/>`)}let f=e.animated?' pathLength="1" stroke-dasharray="1"':"";a.push(`<path class="v-chart-line" d="${u}" stroke="${V(c.color)}"${f}><title>${V(Oy(c,e.format))}</title></path>`),!t&&r<=40&&d.forEach((p,m)=>{a.push(`<circle class="v-chart-point" cx="${k(p[0])}" cy="${k(p[1])}" r="3.5" fill="${V(c.color)}">`+Un(`${c.name} ${ot(e.dataset.labels,m)}`,Re(c.values[m]),e.format)+"</circle>")}),e.options.showValues&&!t&&d.forEach((p,m)=>{a.push(`<text class="v-chart-value" x="${k(p[0])}" y="${k(p[1]-10)}" text-anchor="middle">${V(Ve(Re(c.values[m]),e.format))}</text>`)})}return t||a.push(Mc(e.dataset.labels,r,i,o.top+o.innerH+18,o.innerW)),Qp(e,r,i,c=>{let d=1/0;for(let u of e.dataset.series)d=Math.min(d,o.y(Re(u.values[c])));return Number.isFinite(d)?d:o.top}),a.join("")}function Qp(e,t,n,r){for(let o=0;o<t;o++)e.hits.push({x:n(o),y:r(o),title:ot(e.dataset.labels,o),rows:e.dataset.series.map(i=>({name:i.name,color:i.color,value:Re(i.values[o])}))})}function Fy(e){let t=e.type==="stacked",n=jo(e.dataset);if(n===0)return Vn(e);let r=Lc(e,{stacked:t,baselineZero:!0,bare:!1}),o=r.innerW/n,i=t?1:Math.max(1,e.dataset.series.length),s=Math.min(o*.3,18),a=Math.max(2,(o-s)/i),l=r.y(qn(0,r.min,r.max)),c=Math.min(4,a/2),d=[r.grid],u=f=>r.left+o*f+o/2;for(let f=0;f<n;f++){let p=0,m=0;e.dataset.series.forEach((h,v)=>{let g=Re(h.values[f]),b,y,T;if(t){let C=g>=0?p:m,R=C+g;g>=0?p=R:m=R,b=Math.min(r.y(C),r.y(R)),y=Math.max(r.y(C),r.y(R)),T=r.left+o*f+s/2}else b=Math.min(r.y(g),l),y=Math.max(r.y(g),l),T=r.left+o*f+s/2+v*a;let E=t?Math.max(2,o-s):a*.86,A=Math.max(g===0?0:1,y-b);d.push(`<rect class="v-chart-bar" x="${k(T)}" y="${k(b)}" width="${k(E)}" height="${k(A)}" rx="${k(c)}" fill="${V(h.color)}" style="transform-origin:${k(T+E/2)}px ${k(l)}px;transition-delay:${f*30}ms">`+Un(`${h.name} ${ot(e.dataset.labels,f)}`,g,e.format)+"</rect>"),e.options.showValues&&!t&&d.push(`<text class="v-chart-value" x="${k(T+E/2)}" y="${k(b-6)}" text-anchor="middle">${V(Ve(g,e.format))}</text>`)})}return d.push(Mc(e.dataset.labels,n,u,r.top+r.innerH+18,r.innerW)),Qp(e,n,u,f=>{if(t){let m=0;for(let h of e.dataset.series)m+=Math.max(0,Re(h.values[f]));return r.y(m)}let p=l;for(let m of e.dataset.series)p=Math.min(p,r.y(Re(m.values[f])));return p}),d.join("")}function zy(e){let t=jo(e.dataset);if(t===0)return Vn(e);let n=Tc(e.dataset,e.options,!1,!0),r=e.options.min!==void 0&&e.options.max!==void 0?{min:n.min,max:n.max,ticks:Gp(n.min,n.max,5)}:Ec(n.min,n.max,5),o=qn(Xp(e.dataset.labels.length>0?e.dataset.labels:[""]),24,e.width*.4),i=e.dataset.labels.length>0?o:12,s=12,a=e.options.showGrid===!1?12:26,l=Math.max(1,e.width-i-20),c=Math.max(1,e.height-s-a),d=r.max-r.min||1,u=b=>i+l*(b-r.min)/d,f=u(qn(0,r.min,r.max)),p=c/t,m=Math.max(1,e.dataset.series.length),h=Math.min(p*.3,16),v=Math.max(2,(p-h)/m),g=[];if(e.options.showGrid!==!1)for(let b of r.ticks){let y=k(u(b));g.push(`<line class="v-chart-grid" x1="${y}" y1="${k(s)}" x2="${y}" y2="${k(s+c)}"/>`),g.push(`<text class="v-chart-axis" x="${y}" y="${k(s+c+16)}" text-anchor="middle">${V(Ve(b,e.format))}</text>`)}for(let b=0;b<t;b++){let y=e.dataset.labels[b];y&&g.push(`<text class="v-chart-axis" x="${k(i-8)}" y="${k(s+p*b+p/2+4)}" text-anchor="end">${V(y)}</text>`);let T=f;e.dataset.series.forEach((E,A)=>{let C=Re(E.values[b]),R=Math.min(u(C),f);T=Math.max(T,u(C));let ce=Math.max(C===0?0:1,Math.abs(u(C)-f)),O=s+p*b+h/2+A*v;g.push(`<rect class="v-chart-barh" x="${k(R)}" y="${k(O)}" width="${k(ce)}" height="${k(v*.86)}" rx="${k(Math.min(4,v/2))}" fill="${V(E.color)}" style="transform-origin:${k(f)}px ${k(O+v/2)}px;transition-delay:${b*30}ms">`+Un(`${E.name} ${ot(e.dataset.labels,b)}`,C,e.format)+"</rect>"),e.options.showValues&&g.push(`<text class="v-chart-value" x="${k(R+ce+6)}" y="${k(O+v*.6)}">${V(Ve(C,e.format))}</text>`)}),e.hits.push({x:T,y:s+p*b+p/2,title:ot(e.dataset.labels,b),rows:e.dataset.series.map(E=>({name:E.name,color:E.color,value:Re(E.values[b])}))})}return g.join("")}function By(e){let t=e.dataset.series[0];if(!t||t.values.length===0)return Vn(e);let n=e.type==="donut",r=t.values.map(f=>Math.max(0,Re(f))),o=r.reduce((f,p)=>f+p,0);if(o<=0)return Vn(e);let i=e.width/2,s=e.height/2,a=Math.max(12,Math.min(e.width,e.height)/2-14),l=n?a*.62:0,c=`transform-origin:${k(i)}px ${k(s)}px`,d=[],u=-Math.PI/2;return r.forEach((f,p)=>{let m=f/o*Math.PI*2,h=e.palette[p%e.palette.length],v=ot(e.dataset.labels,p),g=m>=Math.PI*2-1e-6,b=g?n?`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k((a+l)/2)}" fill="none" stroke="${V(h)}" stroke-width="${k(a-l)}" style="${c}">`:`<circle class="v-chart-slice" data-hit="${p}" cx="${k(i)}" cy="${k(s)}" r="${k(a)}" fill="${V(h)}" style="${c}">`:`<path class="v-chart-slice" data-hit="${p}" d="${Ny(i,s,a,l,u,u+m)}" fill="${V(h)}" style="${c};transition-delay:${p*45}ms">`;d.push(`${b}${Un(v,f,e.format)}${g?"</circle>":"</path>"}`);let y=u+m/2,[T,E]=At(i,s,(a+l)/2,y);if(e.hits.push({x:T,y:E,title:v,rows:[{name:v,color:h,value:f}]}),e.options.showValues&&m>.3){let[A,C]=At(i,s,n?(a+l)/2:a*.68,y),R=Math.round(f/o*100);d.push(`<text class="v-chart-value" x="${k(A)}" y="${k(C+4)}" text-anchor="middle">${R}%</text>`)}u+=m}),n&&d.push(`<text class="v-chart-center" x="${k(i)}" y="${k(s+2)}" text-anchor="middle">${V(Ve(o,e.format))}</text>`,`<text class="v-chart-center-sub" x="${k(i)}" y="${k(s+20)}" text-anchor="middle">Total</text>`),d.join("")}function jy(e){let t=jo(e.dataset);if(t<3)return Vn(e);let r=Tc(e.dataset,e.options,!1,!0).max||1,o=e.width/2,i=e.height/2,s=Math.max(20,Math.min(e.width,e.height)/2-28),a=c=>-Math.PI/2+Math.PI*2*c/t,l=[];for(let c=1;c<=4;c++){let d=[];for(let u=0;u<t;u++)d.push(At(o,i,s*c/4,a(u)));l.push(`<polygon class="v-chart-radar-web" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}"/>`)}for(let c=0;c<t;c++){let[d,u]=At(o,i,s,a(c));l.push(`<line class="v-chart-grid" x1="${k(o)}" y1="${k(i)}" x2="${k(d)}" y2="${k(u)}"/>`);let f=e.dataset.labels[c];if(f){let[p,m]=At(o,i,s+14,a(c)),h=Math.abs(p-o)<4?"middle":p>o?"start":"end";l.push(`<text class="v-chart-axis" x="${k(p)}" y="${k(m+4)}" text-anchor="${h}">${V(f)}</text>`)}}for(let c of e.dataset.series){let d=[];for(let u=0;u<t;u++){let f=qn(Re(c.values[u])/r,0,1);d.push(At(o,i,s*f,a(u)))}l.push(`<polygon class="v-chart-radar-area v-chart-slice" points="${d.map(u=>`${k(u[0])},${k(u[1])}`).join(" ")}" fill="${V(c.color)}" fill-opacity="0.22" stroke="${V(c.color)}" style="transform-origin:${k(o)}px ${k(i)}px"/>`),d.forEach((u,f)=>{l.push(`<circle class="v-chart-point" data-hit="${f}" cx="${k(u[0])}" cy="${k(u[1])}" r="3.5" fill="${V(c.color)}">`+Un(`${c.name} ${ot(e.dataset.labels,f)}`,Re(c.values[f]),e.format)+"</circle>")})}for(let c=0;c<t;c++){let[d,u]=At(o,i,s*.7,a(c));e.hits.push({x:d,y:u,title:ot(e.dataset.labels,c),rows:e.dataset.series.map(f=>({name:f.name,color:f.color,value:Re(f.values[c])}))})}return l.join("")}function qy(e){let t=jo(e.dataset);if(t===0)return Vn(e);let n=Lc(e,{stacked:!1,baselineZero:!1,bare:!1}),r=1/0,o=-1/0;for(let c of e.dataset.series){let d=c.xs;if(d)for(let u of d)r=Math.min(r,u),o=Math.max(o,u)}let i=Number.isFinite(r)&&Number.isFinite(o)&&o>r,s=(c,d)=>i&&c.xs?n.left+n.innerW*(c.xs[d]-r)/(o-r):t<=1?n.left+n.innerW/2:n.left+n.innerW*d/(t-1),a=[n.grid],l=0;for(let c of e.dataset.series)c.values.forEach((d,u)=>{let f=s(c,u),p=n.y(Re(d));a.push(`<circle class="v-chart-point v-chart-slice" data-hit="${l}" cx="${k(f)}" cy="${k(p)}" r="4.5" fill="${V(c.color)}" style="transform-origin:${k(f)}px ${k(p)}px">`+Un(`${c.name} ${ot(e.dataset.labels,u)}`,Re(d),e.format)+"</circle>"),e.hits.push({x:f,y:p,title:ot(e.dataset.labels,u),rows:[{name:c.name,color:c.color,value:Re(d)}]}),l++});return i||a.push(Mc(e.dataset.labels,t,c=>t<=1?n.left+n.innerW/2:n.left+n.innerW*c/(t-1),n.top+n.innerH+18,n.innerW)),a.join("")}function Vy(e){var m,h,v,g,b;let t=e.dataset.series[0],n=t?Re(t.values[0]):0,r=(m=e.options.max)!=null?m:100,o=(h=e.options.min)!=null?h:0,i=qn((n-o)/(r-o||1),0,1),s=e.width/2,a=e.height/2,l=Math.max(16,Math.min(e.width,e.height)/2-16),c=Math.max(8,l*.2),d=l-c/2,u=2*Math.PI*d,f=u*(1-i),p=e.palette[0];return e.hits.push({x:s,y:a-d,title:(v=t==null?void 0:t.name)!=null?v:"Progresso",rows:[{name:(g=t==null?void 0:t.name)!=null?g:"Progresso",color:p,value:n}]}),`<circle class="v-chart-track" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" stroke-width="${k(c)}"/><circle class="v-chart-ring" data-hit="0" cx="${k(s)}" cy="${k(a)}" r="${k(d)}" fill="none" stroke="${V(p)}" stroke-width="${k(c)}" stroke-linecap="round" stroke-dasharray="${k(u)}" style="--v-ring-full:${k(u)};--v-ring-offset:${k(f)};transform:rotate(-90deg);transform-origin:${k(s)}px ${k(a)}px">`+Un((b=t==null?void 0:t.name)!=null?b:"Progresso",n,e.format)+`</circle><text class="v-chart-center" x="${k(s)}" y="${k(a+4)}" text-anchor="middle">${Math.round(i*100)}%</text>`+(t?`<text class="v-chart-center-sub" x="${k(s)}" y="${k(a+22)}" text-anchor="middle">${V(Ve(n,e.format))}</text>`:"")}var Uy=new Set(["pie","donut","scatter","progress","radar"]);function _y(e){return e==="sparkline"?56:260}function Wy(e,t){return e.showLegend===!1?!1:e.showLegend===!0?!0:t.categorical||t.series.length>1}var Ky={line:"line",area:"area",bar:"bar",column:"horizontal bar",stacked:"stacked bar",pie:"pie",donut:"donut",sparkline:"trend",radar:"radar",scatter:"scatter",progress:"progress"};function Yy(e,t,n){if(t.series.length===0)return"Chart with no data.";let r=(t.series.length===1,"series"),o=[`${Ky[e]} chart with ${t.series.length} ${r}.`];for(let i of t.series){if(i.values.length===0)continue;let s=1/0,a=-1/0,l=0;for(let d of i.values)s=Math.min(s,d),a=Math.max(a,d),l+=d;let c=l/i.values.length;o.push(`${i.name}: ${i.values.length} points, minimum ${Ve(s,n)}, maximum ${Ve(a,n)}, average ${Ve(c,n)}.`)}return o.join(" ")}function Xy(e){switch(e.type){case"bar":case"stacked":return Fy(e);case"column":return zy(e);case"pie":case"donut":return By(e);case"radar":return jy(e);case"scatter":return qy(e);case"progress":return Vy(e);default:return Iy(e)}}function Gy(e,t){return e.length===0?"":`<div class="v-chart-legend">${e.map(r=>{let o=t.has(r.key);return`<button type="button" class="v-chart-key" data-key="${V(r.key)}" aria-pressed="${o?"false":"true"}"><span class="v-chart-dot" style="background:${V(r.color)}"></span>${V(r.name)}</button>`}).join("")}</div>`}function zs(e){var v,g,b;let t=e.el,n=e.options,r=(v=n.type)!=null?v:"line",o=n.colors&&n.colors.length>0?n.colors:Bo,i=(g=n.format)!=null?g:"number",s=Math.max(160,Math.round(t.clientWidth||n.width||640)),a=Math.max(48,Math.round((b=n.height)!=null?b:t.clientHeight||_y(r)));e.lastWidth=s,e.viewWidth=s,e.viewHeight=a;let l=Cy(n,r),c=Ry(l,o),d=$y(l,e.hidden,o),u=n.animate!==!1&&!My();e.hits=[],e.shapeHits=Uy.has(r),e.hitAxis=r==="column"?"y":"x";let f={type:r,options:n,dataset:d,palette:o,width:s,height:a,animated:u,format:i,hits:e.hits},p=Xy(f),m=Yy(r,d,i);t.classList.add("v-chart"),t.classList.toggle("v-chart-animate",u),t.classList.remove("v-chart-in");let h=[`<svg class="v-chart-svg" viewBox="0 0 ${s} ${a}" preserveAspectRatio="xMidYMid meet" `,`style="height:${a}px" role="img" aria-label="${V(m)}">`,p,"</svg>"];Wy(n,l)&&h.push(Gy(c,e.hidden)),n.tooltip!==!1&&h.push('<div class="v-chart-tip" hidden></div>'),t.innerHTML=h.join(""),u&&typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{requestAnimationFrame(()=>t.classList.add("v-chart-in"))})}function Qy(e,t){let n=e.rows.map(r=>`<div class="v-chart-tip-row"><span class="v-chart-dot" style="background:${V(r.color)}"></span>${V(r.name)}<b>${V(Ve(r.value,t))}</b></div>`);return`<div class="v-chart-tip-title">${V(e.title)}</div>${n.join("")}`}function Jp(e){let t=e.el.querySelector(".v-chart-tip");t&&(t.hidden=!0)}function Jy(e,t){var a;if(e.options.tooltip===!1||e.hits.length===0)return;let n=e.el.querySelector(".v-chart-tip"),r=e.el.querySelector("svg");if(!n||!r)return;let o=r.getBoundingClientRect();if(o.width===0||o.height===0)return;let i;if(e.shapeHits){let l=t.target,c=l&&typeof l.closest=="function"?l.closest("[data-hit]"):null,d=c?Number(c.getAttribute("data-hit")):-1;d>=0&&(i=e.hits[d])}else if(e.hitAxis==="y"){let l=(t.clientY-o.top)/o.height*e.viewHeight,c=1/0;for(let d of e.hits){let u=Math.abs(d.y-l);u<c&&(c=u,i=d)}}else{let l=(t.clientX-o.left)/o.width*e.viewWidth,c=1/0;for(let d of e.hits){let u=Math.abs(d.x-l);u<c&&(c=u,i=d)}}if(!i){Jp(e);return}let s=e.el.getBoundingClientRect();n.innerHTML=Qy(i,(a=e.options.format)!=null?a:"number"),n.style.left=`${o.left-s.left+i.x/e.viewWidth*o.width}px`,n.style.top=`${o.top-s.top+i.y/e.viewHeight*o.height}px`,n.hidden=!1}function Zy(e){let t=e.el,n=i=>{var l;let s=i.target;if(!s||typeof s.closest!="function")return;let a=(l=s.closest("[data-key]"))==null?void 0:l.getAttribute("data-key");a!=null&&(e.hidden.has(a)?e.hidden.delete(a):e.hidden.add(a),zs(e))},r=i=>Jy(e,i),o=()=>Jp(e);t.addEventListener("click",n),t.addEventListener("pointermove",r),t.addEventListener("pointerleave",o),e.teardown.push(()=>{t.removeEventListener("click",n),t.removeEventListener("pointermove",r),t.removeEventListener("pointerleave",o)})}function ex(e){if(typeof ResizeObserver=="undefined")return;let t=new ResizeObserver(()=>{let n=Math.round(e.el.clientWidth);n===0||n===e.lastWidth||(e.frame&&cancelAnimationFrame(e.frame),e.frame=requestAnimationFrame(()=>{e.frame=0,zs(e)}))});t.observe(e.el),e.observer=t}function Ir(e,t){Me(),ae("charts",Sy);let n={el:e,options:{...t},hidden:new Set,hits:[],shapeHits:!1,hitAxis:"x",viewWidth:1,viewHeight:1,lastWidth:0,observer:null,frame:0,teardown:[]};return Zy(n),zs(n),ex(n),{el:e,get options(){return n.options},update(r){Object.assign(n.options,r),zs(n)},destroy(){var r;n.frame&&cancelAnimationFrame(n.frame),n.frame=0,(r=n.observer)==null||r.disconnect(),n.observer=null;for(let o of n.teardown)o();n.teardown.length=0,e.classList.remove("v-chart","v-chart-animate","v-chart-in"),e.innerHTML=""}}}function yt(e,t){var n;return(n=Oe(e,`${w.prefix}${t}`))!=null?n:Oe(e,`data-v-${t}`)}function Or(e,t){return e===null?t:e===""||e==="true"||e==="1"?!0:e==="false"||e==="0"?!1:t}function tx(e,t){let r=!!t&&typeof t=="object"&&!Array.isArray(t)&&"data"in t?{...t}:{data:t!=null?t:[]},o=yt(e,"chart-type");o&&(r.type=o),r.type||(r.type="line");let i=yt(e,"chart-height");i&&(r.height=parseFloat(i)||r.height);let s=yt(e,"chart-format");s&&(r.format=s);let a=yt(e,"chart-colors");a&&(r.colors=a.split(",").map(v=>v.trim()).filter(Boolean));let l=yt(e,"chart-max");l!==null&&l!==""&&(r.max=parseFloat(l));let c=yt(e,"chart-min");c!==null&&c!==""&&(r.min=parseFloat(c));let d=yt(e,"chart-smooth");d!==null&&(r.smooth=Or(d,!0));let u=yt(e,"chart-grid");u!==null&&(r.showGrid=Or(u,!0));let f=yt(e,"chart-legend");f!==null&&(r.showLegend=Or(f,!0));let p=yt(e,"chart-values");p!==null&&(r.showValues=Or(p,!0));let m=yt(e,"chart-tooltip");m!==null&&(r.tooltip=Or(m,!0));let h=yt(e,"chart-animate");return h!==null&&(r.animate=Or(h,!0)),r}function kc(e,t=0){if(!e||typeof e!="object"||t>3)return 1;let n=0;if(Array.isArray(e)){for(let r of e)n+=kc(r,t+1);return n}for(let r of Object.values(e))n+=kc(r,t+1);return n}x("chart",({el:e,evaluate:t,effect:n,cleanup:r})=>{let o=null;n(()=>{let i=t();kc(i);let s=tx(e,i);o?o.update(s):o=Ir(e,s)}),r(()=>{o==null||o.destroy(),o=null})});var Sc={render:Ir,format:Ve,colors:Bo};xe();ye();Be();Be();ye();var nx=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,rx=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,ox=/^rgba?\(([^)]+)\)$/i,ix=/^hsla?\(([^)]+)\)$/i;function Zp(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function sx(e,t,n){let r=(e%360+360)%360,o=it(t/100,0,1),i=it(n/100,0,1),s=(1-Math.abs(2*i-1))*o,a=s*(1-Math.abs(r/60%2-1)),l=i-s/2,c=Math.floor(r/60)%6,d=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[u,f,p]=d[c];return{r:Math.round((u+l)*255),g:Math.round((f+l)*255),b:Math.round((p+l)*255)}}function Bt(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=nx.exec(t);if(n)return{r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)};let r=rx.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=ox.exec(t);if(o){let[s,a,l]=Zp(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:it(s,0,255),g:it(a,0,255),b:it(l,0,255)}}let i=ix.exec(t);if(i){let[s,a,l]=Zp(i[1]);return s===void 0||a===void 0||l===void 0?null:sx(s,a,l)}return null}function it(e,t,n){return e<t?t:e>n?n:e}function Br(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ac(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function ax(e){let t=Br(e.r),n=Br(e.g),r=Br(e.b),o=.4122214708*t+.5363325363*n+.0514459929*r,i=.2119034982*t+.6806995451*n+.1073969566*r,s=.0883024619*t+.2817188376*n+.6299787005*r,a=Math.cbrt(o),l=Math.cbrt(i),c=Math.cbrt(s);return{l:.2104542553*a+.793617785*l-.0040720468*c,a:1.9779984951*a-2.428592205*l+.4505937099*c,b:.0259040371*a+.7827717662*l-.808675766*c}}function lx(e){let t=e.l+.3963377774*e.a+.2158037573*e.b,n=e.l-.1055613458*e.a-.0638541728*e.b,r=e.l-.0894841775*e.a-1.291485548*e.b,o=t*t*t,i=n*n*n,s=r*r*r;return{r:Ac(4.0767416621*o-3.3077115913*i+.2309699292*s),g:Ac(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:Ac(-.0041960863*o-.7034186147*i+1.707614701*s)}}function js(e){let t=ax(e),n=Math.sqrt(t.a*t.a+t.b*t.b),r=Math.atan2(t.b,t.a)*180/Math.PI;return r<0&&(r+=360),{l:t.l,c:n,h:n<1e-5?0:r}}function em(e){let t=e.h*Math.PI/180;return lx({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function zr(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=em({l:it(e.l,0,1),c:t,h:e.h});if(o.r>=-.001&&o.r<=1.001&&o.g>=-.001&&o.g<=1.001&&o.b>=-.001&&o.b<=1.001)return{r:Math.round(it(o.r,0,1)*255),g:Math.round(it(o.g,0,1)*255),b:Math.round(it(o.b,0,1)*255)};t*=.92}let n=em({l:it(e.l,0,1),c:0,h:e.h});return{r:Math.round(it(n.r,0,1)*255),g:Math.round(it(n.g,0,1)*255),b:Math.round(it(n.b,0,1)*255)}}function Cc(e){return it(Math.round(e),0,255).toString(16).padStart(2,"0")}function _n(e){return`#${Cc(e.r)}${Cc(e.g)}${Cc(e.b)}`}function Fr(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function im(e){return _n(zr(e))}function $c(e){return .2126*Br(e.r)+.7152*Br(e.g)+.0722*Br(e.b)}function Dc(e,t){let n=typeof e=="string"?Bt(e):e,r=typeof t=="string"?Bt(t):t;if(!n||!r)return 1;let o=$c(n),i=$c(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var sm={r:255,g:255,b:255},qs={r:0,g:0,b:0};function qo(e){let t=typeof e=="string"?Bt(e):e;return t?Dc(t,sm)>=Dc(t,qs)?"#ffffff":"#000000":"#ffffff"}var Pc=[50,100,200,300,400,500,600,700,800,900],am=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],cx=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],lm=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],dx=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function cm(e,t=!1){var a;let n=typeof e=="string"?(a=Bt(e))!=null?a:qs:e,r=js(n),o=t?lm:am,i=t?dx:cx,s={};return Pc.forEach((l,c)=>{s[String(l)]=im({l:o[c],c:r.c*i[c],h:r.h})}),s}var Vs={violeta:{primary:"#6D3BF5",accent:"#FF3D8B",success:"#16A34A",warning:"#D97706",danger:"#E11D48",info:"#7C6BFF"},oceano:{primary:"#0E7BC4",accent:"#0FB5C9",success:"#0F9D6E",warning:"#D08700",danger:"#DC2F3E",info:"#3B82F6"},floresta:{primary:"#1F8A4C",accent:"#7FA80E",success:"#18A05A",warning:"#C97A0A",danger:"#C93A2E",info:"#2C8FA8"},poente:{primary:"#E4632A",accent:"#D62F63",success:"#3E9B52",warning:"#D99000",danger:"#D32F2F",info:"#B45FC0"},grafite:{primary:"#4C5A70",accent:"#2E7FD1",success:"#2F8F60",warning:"#B57A12",danger:"#C2453F",info:"#5B7A99"}},dm=["primary","accent","success","warning","danger","info"],Nc="voodoo:palette",tm="voodoo-palette",ux="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",fx="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function nm(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var px=/^([\d.]+)(px|rem|em)$/;function mx(e){let t=(e||"12px").trim(),n=px.exec(t);if(!n)return{"--v-radius":t,"--v-radius-sm":`calc(${t} * 0.6)`,"--v-radius-lg":`calc(${t} * 1.5)`,"--v-radius-xl":`calc(${t} * 2)`,"--v-radius-full":"999px"};let r=parseFloat(n[1]),o=n[2],i=s=>`${Math.round(s*1e3)/1e3}${o}`;return{"--v-radius":i(r),"--v-radius-sm":i(Math.max(r*.55,0)),"--v-radius-lg":i(r*1.5),"--v-radius-xl":i(r*2),"--v-radius-full":"999px"}}function rm(e,t){var c,d,u,f;let n={},r={},o={};for(let p of dm){let m=(c=Bt(e[p]))!=null?c:qs,h=js(m),v=cm(m,t);r[p]=v;for(let O of Pc)n[`--v-${p}-${O}`]=v[String(O)];let g=t?{l:Math.max(h.l,.62),c:h.c*.95,h:h.h}:h,b=t?{l:Math.min(g.l+.07,.94),c:g.c*.95,h:g.h}:{l:Math.max(g.l-.055,.12),c:g.c,h:g.h},y=t?{l:Math.min(g.l+.13,.97),c:g.c*.88,h:g.h}:{l:Math.max(g.l-.105,.1),c:g.c,h:g.h},T=zr(g),E=zr(b),A=zr(y);n[`--v-${p}`]=_n(t?T:m),n[`--v-${p}-hover`]=_n(E),n[`--v-${p}-active`]=_n(A),n[`--v-${p}-contrast`]=qo(t?T:m),n[`--v-${p}-contrast-hover`]=qo(E),n[`--v-${p}-contrast-active`]=qo(A);let C=v[50],R=v[100],ce=t?v[800]:v[700];n[`--v-${p}-soft`]=C,n[`--v-${p}-soft-hover`]=R,n[`--v-${p}-soft-text`]=ce,n[`--v-${p}-ring`]=Fr(T,t?.45:.32),n[`--v-${p}-border`]=t?v[300]:v[200],o[p]=n[`--v-${p}-contrast`]}let i=(u=Bt((d=e.neutral)!=null?d:e.primary))!=null?u:qs,s=js(i).h,a=(p,m)=>im({l:p,c:m,h:s}),l={};if(Pc.forEach((p,m)=>{let h=t?lm:am;l[String(p)]=a(h[m],.012),n[`--v-neutral-${p}`]=l[String(p)]}),r.neutral=l,t)n["--v-surface"]=a(.248,.021),n["--v-surface-2"]=a(.196,.021),n["--v-surface-3"]=a(.305,.024),n["--v-surface-inset"]=a(.17,.02),n["--v-text"]=a(.965,.008),n["--v-text-muted"]=a(.748,.017),n["--v-text-soft"]=a(.63,.017),n["--v-border"]=a(.355,.023),n["--v-border-strong"]=a(.46,.026),n["--v-overlay"]="rgba(0, 0, 0, 0.62)",n["--v-shadow-sm"]="0 1px 2px rgba(0, 0, 0, 0.5)",n["--v-shadow"]="0 10px 30px rgba(0, 0, 0, 0.5)",n["--v-shadow-lg"]="0 24px 60px rgba(0, 0, 0, 0.62)";else{let p=zr({l:.24,c:.028,h:s});n["--v-surface"]=a(1,0),n["--v-surface-2"]=a(.981,.006),n["--v-surface-3"]=a(.955,.009),n["--v-surface-inset"]=a(.968,.008),n["--v-text"]=_n(p),n["--v-text-muted"]=a(.53,.023),n["--v-text-soft"]=a(.655,.018),n["--v-border"]=a(.906,.012),n["--v-border-strong"]=a(.828,.016),n["--v-overlay"]=Fr(p,.45),n["--v-shadow-sm"]=`0 1px 2px ${Fr(p,.08)}`,n["--v-shadow"]=`0 10px 30px ${Fr(p,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${Fr(p,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=qo((f=Bt(n["--v-surface"]))!=null?f:sm),{vars:n,scales:r,contrast:o}}function Rc(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
373
373
|
`);return`${e} {
|
|
374
374
|
${n}
|
|
375
|
-
}`}var
|
|
376
|
-
${
|
|
377
|
-
}`,
|
|
378
|
-
`);
|
|
375
|
+
}`}var Uo=null,Vo=null;function vx(e){var r,o,i,s,a,l,c,d,u;let t=(r=Vs[e.preset])!=null?r:Vs.violeta,n={primary:(o=e.primary)!=null?o:t.primary,accent:(i=e.accent)!=null?i:t.accent,success:(s=e.success)!=null?s:t.success,warning:(a=e.warning)!=null?a:t.warning,danger:(l=e.danger)!=null?l:t.danger,info:(c=e.info)!=null?c:t.info,neutral:(d=e.neutral)!=null?d:t.neutral};for(let f of dm)Bt(n[f])||(console.warn(`[Voodoo] invalid color in palette.${f}: "${n[f]}". Using preset.`),n[f]=t[f]);return{colors:n,radius:(u=e.radius)!=null?u:"12px",font:nm(e.font,ux),mono:nm(e.monoFont,fx)}}function hx(e){if(typeof document=="undefined"||!w.injectStyles)return;Me();let t=document.getElementById(tm);t||(t=document.createElement("style"),t.id=tm,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function Bs(e={}){let{colors:t,radius:n,font:r,mono:o}=vx(e),i=rm(t,!1),s=rm(t,!0),a={...mx(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",Rc(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
376
|
+
${Rc(':root:not([data-theme="light"])',s.vars)}
|
|
377
|
+
}`,Rc(':root[data-theme="dark"]',s.vars)].join(`
|
|
378
|
+
`);hx(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(Uo=c,Vo={...e},e.persist!==!1&&typeof document!="undefined"){let d={...e};delete d.persist,ke.set(Nc,d)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var om=!1;function Hc(){if(Uo&&om)return Uo;om=!0;let e=ke.get(Nc),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return Bs(t)}function _o(){Uo||Hc()}function Oc(){return Hc()}var um=Object.assign(Bs,{presets:Vs,get names(){return Object.keys(Vs)},get current(){return Uo},get options(){return Vo},init:Hc,ensure:_o,reset(){return ke.remove(Nc),Bs({persist:!1})},use(e){return Bs({...Vo!=null?Vo:{},preset:e,primary:void 0,accent:void 0})},scale:cm,contrastText:qo,contrastRatio:Dc,luminance(e){let t=typeof e=="string"?Bt(e):e;return t?$c(t):0},convert:{parseColor:Bt,rgbToOklch:js,oklchToRgb:zr,toHex:_n,toRgba:Fr}});function fe(e){if(e===!0)return!0;if(e===!1||e===null||e===void 0)return!1;if(typeof e=="number")return e!==0;let t=String(e).trim().toLowerCase();return t===""||t==="true"||t==="1"||t==="yes"}function Se(...e){let t={};for(let n of e){let r=`is${n.charAt(0).toUpperCase()}${n.slice(1)}`;t[r]=function(){return fe(this[n])}}return t}var B={type:"any",default:!1},L={type:"string",default:""};function jr(e,t){var i;if(t==null||typeof t!="string")return t;let n=t.trim();if(!n)return null;if(n.startsWith("[")||n.startsWith("{"))try{return JSON.parse(n)}catch(s){return null}let r=n.split(/[.[(]/)[0].trim();if(!/^[A-Za-z_$][\w$]*$/.test(r))return null;let o=(i=e.$scope)==null?void 0:i.parent;return!o||!o.has(r)?null:Y(n,o,"list attribute")}function Ko(e){return String(e).split(",").map(t=>t.trim()).filter(Boolean)}function wn(e,t){let n=e.$el;Object.defineProperty(n,"value",{configurable:!0,enumerable:!1,get:t.get,set:t.set})}function Wo(e){e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}var mm={check:'<path d="m5 12.5 4.4 4.4L19 7.6"/>',x:'<path d="M6 6l12 12M18 6 6 18"/>',plus:'<path d="M12 5v14M5 12h14"/>',minus:'<path d="M5 12h14"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="m16 16 4 4"/>',"chevron-down":'<path d="m6 9.5 6 6 6-6"/>',"chevron-up":'<path d="m6 14.5 6-6 6 6"/>',"chevron-left":'<path d="m14.5 6-6 6 6 6"/>',"chevron-right":'<path d="m9.5 6 6 6-6 6"/>',"arrow-up":'<path d="M12 19V5M6 11l6-6 6 6"/>',"arrow-down":'<path d="M12 5v14M6 13l6 6 6-6"/>',"arrow-right":'<path d="M5 12h14M13 6l6 6-6 6"/>',"arrow-left":'<path d="M19 12H5M11 6l-6 6 6 6"/>',user:'<circle cx="12" cy="8.5" r="3.6"/><path d="M4.8 20a7.4 7.4 0 0 1 14.4 0"/>',users:'<circle cx="9.5" cy="8.5" r="3.2"/><path d="M3.4 19.5a6.4 6.4 0 0 1 12.2 0M16 5.6a3.2 3.2 0 0 1 0 5.9M17.4 14.4a6.4 6.4 0 0 1 3.2 5.1"/>',mail:'<rect x="3" y="5" width="18" height="14" rx="2.5"/><path d="m3.8 7 8.2 6 8.2-6"/>',lock:'<rect x="4.5" y="10.5" width="15" height="9.5" rx="2.4"/><path d="M8 10.5V8a4 4 0 0 1 8 0v2.5"/>',eye:'<path d="M2.6 12S6.4 5.8 12 5.8 21.4 12 21.4 12 17.6 18.2 12 18.2 2.6 12 2.6 12Z"/><circle cx="12" cy="12" r="2.8"/>',"eye-off":'<path d="M4 4l16 16M9.9 6.2A9.3 9.3 0 0 1 12 6c5.6 0 9.4 6 9.4 6a17 17 0 0 1-3.3 3.9M6.3 8.2A17 17 0 0 0 2.6 12S6.4 18 12 18c1 0 1.9-.2 2.7-.5"/>',calendar:'<rect x="3.5" y="5" width="17" height="15" rx="2.4"/><path d="M8 3v4M16 3v4M3.5 10h17"/>',clock:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.4V12l3 1.8"/>',star:'<path d="m12 4 2.5 5.2 5.5.8-4 3.9 1 5.6-5-2.7-5 2.7 1-5.6-4-3.9 5.5-.8z"/>',info:'<circle cx="12" cy="12" r="8.6"/><path d="M12 11v5.2M12 7.6v.2"/>',alert:'<circle cx="12" cy="12" r="8.6"/><path d="M12 7.5v5M12 16.4v.2"/>',warning:'<path d="M12 4.4 2.8 19.6h18.4z"/><path d="M12 10v3.8M12 16.9v.2"/>',trash:'<path d="M4.5 7h15M9.5 7V5.2A1.2 1.2 0 0 1 10.7 4h2.6a1.2 1.2 0 0 1 1.2 1.2V7M6.6 7l.8 12a1.6 1.6 0 0 0 1.6 1.5h6a1.6 1.6 0 0 0 1.6-1.5l.8-12"/>',edit:'<path d="M4.5 19.5h4l10-10a2.1 2.1 0 0 0-3-3l-10 10z"/><path d="M14 6.5 17.5 10"/>',copy:'<rect x="8.5" y="8.5" width="11.5" height="11.5" rx="2.2"/><path d="M15.5 5.5A1.5 1.5 0 0 0 14 4H6a2 2 0 0 0-2 2v8a1.5 1.5 0 0 0 1.5 1.5"/>',download:'<path d="M12 4v11M7.5 11 12 15.5 16.5 11M4.5 19.5h15"/>',upload:'<path d="M12 20V8.5M7.5 12.5 12 8l4.5 4.5M4.5 4.5h15"/>',settings:'<circle cx="12" cy="12" r="3.1"/><path d="M19.6 14.4a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.87-.34 1.7 1.7 0 0 0-1.03 1.56V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.56 1.7 1.7 0 0 0-1.87.34l-.06.06A2 2 0 1 1 4.15 16.9l.06-.06a1.7 1.7 0 0 0 .34-1.87A1.7 1.7 0 0 0 3 13.94H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.55-1.1 1.7 1.7 0 0 0-.34-1.87l-.06-.06A2 2 0 1 1 7.08 4.08l.06.06a1.7 1.7 0 0 0 1.87.34H9a1.7 1.7 0 0 0 1-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.7 1.7 0 0 0-.34 1.87V10a1.7 1.7 0 0 0 1.56 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.3 1z"/>',home:'<path d="M4 10.5 12 4l8 6.5V19a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 19z"/><path d="M9.6 20.5v-6h4.8v6"/>',heart:'<path d="M12 20s-7.5-4.6-7.5-9.4A4.1 4.1 0 0 1 12 8.2a4.1 4.1 0 0 1 7.5 2.4C19.5 15.4 12 20 12 20Z"/>',bell:'<path d="M18 9a6 6 0 1 0-12 0c0 5.2-2 6.5-2 6.5h16S18 14.2 18 9"/><path d="M13.7 19.5a2 2 0 0 1-3.4 0"/>',filter:'<path d="M4 5.5h16l-6.2 7.3v5.3l-3.6 2v-7.3z"/>',external:'<path d="M14 4.5h5.5V10M19 5l-8 8"/><path d="M18 13.5V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18V7.5A1.5 1.5 0 0 1 6 6h4.5"/>',refresh:'<path d="M20 11a8 8 0 0 0-13.7-4.8L4 8.4"/><path d="M4 4.5v4h4M4 13a8 8 0 0 0 13.7 4.8L20 15.6"/><path d="M20 19.5v-4h-4"/>',folder:'<path d="M4 7.5A1.5 1.5 0 0 1 5.5 6h3.7l2 2.4h7.3A1.5 1.5 0 0 1 20 9.9v7.6a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z"/>',file:'<path d="M13.5 4H7a1.5 1.5 0 0 0-1.5 1.5v13A1.5 1.5 0 0 0 7 20h10a1.5 1.5 0 0 0 1.5-1.5V9z"/><path d="M13.5 4v5h5"/>',image:'<rect x="4" y="5" width="16" height="14" rx="2.2"/><circle cx="9" cy="10" r="1.7"/><path d="m5 17 4.6-4.3 3.4 3 2.6-2.3L19 17"/>',link:'<path d="M10.6 13.4a3.6 3.6 0 0 0 5.1 0l2.4-2.4a3.6 3.6 0 0 0-5.1-5.1l-1.3 1.3"/><path d="M13.4 10.6a3.6 3.6 0 0 0-5.1 0l-2.4 2.4a3.6 3.6 0 0 0 5.1 5.1l1.3-1.3"/>',menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',more:'<circle cx="6" cy="12" r="1.4"/><circle cx="12" cy="12" r="1.4"/><circle cx="18" cy="12" r="1.4"/>',logout:'<path d="M14.5 8V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v12A1.5 1.5 0 0 0 6 19.5h7a1.5 1.5 0 0 0 1.5-1.5v-2"/><path d="M9.5 12h10.5M16.5 8.5 20 12l-3.5 3.5"/>',card:'<rect x="3" y="6" width="18" height="12" rx="2.4"/><path d="M3 10h18"/>',chart:'<path d="M4.5 19.5h15"/><path d="M7.5 19.5V11M12 19.5V5.5M16.5 19.5v-6"/>',box:'<path d="M20 8.6 12 4 4 8.6v6.8L12 20l8-4.6z"/><path d="m4 8.6 8 4.6 8-4.6M12 13.2V20"/>',inbox:'<path d="M4 13.5h4l1.4 2.4h5.2l1.4-2.4h4"/><path d="M4.6 13.5 7 5.6A1.5 1.5 0 0 1 8.5 4.5h7A1.5 1.5 0 0 1 17 5.6l2.4 7.9V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18z"/>'};function gx(e){let t=String(e!=null?e:"").trim();if(!t)return"";let n=mm[t];return n?`<svg class="v-ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.85" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${n}</svg>`:""}var bx=`
|
|
379
379
|
.v-ic{width:1em;height:1em;flex:none}
|
|
380
380
|
.v-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
381
381
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
@@ -880,7 +880,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
880
880
|
.v-skeleton,.v-spinner,.v-btn-spin{animation-duration:1.6s}
|
|
881
881
|
.v-progress[data-indeterminate="true"] .v-progress-bar{animation-duration:2.4s}
|
|
882
882
|
}
|
|
883
|
-
`,
|
|
883
|
+
`,fm=!1;function yx(){fm||(fm=!0,Me(),_o(),ae("components",bx))}function ve(e,t){var r;let n=t.beforeMount;t.methods={svgIcon:o=>gx(o),hasFlag:o=>fe(o),...(r=t.methods)!=null?r:{}},t.beforeMount=function(){yx(),n==null||n.call(this)},cn(e,t)}ve("v-button",{props:{variant:{type:"string",default:"primary"},size:{type:"string",default:"md"},icon:L,iconRight:L,type:{type:"string",default:"button"},loading:B,disabled:B,block:B,rounded:B,ariaLabel:L},computed:{...Se("loading","disabled","block","rounded"),blocked(){return fe(this.disabled)||fe(this.loading)}},template:`
|
|
884
884
|
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
885
885
|
:data-block="isBlock" :data-rounded="isRounded" :disabled="blocked"
|
|
886
886
|
:aria-busy="isLoading" :aria-label="ariaLabel || null">
|
|
@@ -889,13 +889,13 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
889
889
|
<span class="v-btn-label"><slot></slot></span>
|
|
890
890
|
<span class="v-btn-ic" v-if="iconRight" v-html="svgIcon(iconRight)"></span>
|
|
891
891
|
</button>
|
|
892
|
-
`});
|
|
892
|
+
`});ve("v-icon-button",{props:{icon:{type:"string",default:"more"},label:L,variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},type:{type:"string",default:"button"},disabled:B,loading:B,rounded:B},computed:{...Se("disabled","loading","rounded"),blocked(){return fe(this.disabled)||fe(this.loading)},accessibleName(){return this.label||this.icon||"Action"}},template:`
|
|
893
893
|
<button class="v-icon-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
894
894
|
:data-rounded="isRounded" :disabled="blocked" :aria-label="accessibleName" :title="label || null">
|
|
895
895
|
<span class="v-btn-spin" v-if="isLoading" aria-hidden="true"></span>
|
|
896
896
|
<span v-if="!isLoading" v-html="svgIcon(icon)"></span>
|
|
897
897
|
</button>
|
|
898
|
-
`});
|
|
898
|
+
`});ve("v-card",{props:{title:L,subtitle:L,icon:L,padded:{type:"any",default:!0},hoverable:B},computed:{...Se("hoverable"),isPadded(){return this.padded===!0||fe(this.padded)}},template:`
|
|
899
899
|
<div class="v-card" :data-hoverable="isHoverable" :data-padded="isPadded">
|
|
900
900
|
<div class="v-card-head" v-if="title || subtitle || icon">
|
|
901
901
|
<span class="v-card-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
@@ -908,12 +908,12 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
908
908
|
<div class="v-card-body"><slot></slot></div>
|
|
909
909
|
<div class="v-card-foot"><slot name="footer"></slot></div>
|
|
910
910
|
</div>
|
|
911
|
-
`});
|
|
911
|
+
`});ve("v-label",{props:{for:L,size:{type:"string",default:"md"},required:B},computed:{...Se("required")},template:`
|
|
912
912
|
<label class="v-label" :data-size="size" :for="for || null">
|
|
913
913
|
<span><slot></slot></span>
|
|
914
914
|
<span class="v-req" v-if="isRequired" aria-hidden="true">*</span>
|
|
915
915
|
</label>
|
|
916
|
-
`});
|
|
916
|
+
`});ve("v-field",{props:{label:L,hint:L,error:L,for:L,required:B,disabled:B},computed:{...Se("required","disabled")},template:`
|
|
917
917
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
918
918
|
<label class="v-label" v-if="label" :for="for || null">
|
|
919
919
|
<span v-text="label"></span>
|
|
@@ -923,7 +923,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
923
923
|
<p class="v-hint" v-if="hint && !error" v-text="hint"></p>
|
|
924
924
|
<p class="v-error-text" v-if="error" role="alert" v-text="error"></p>
|
|
925
925
|
</div>
|
|
926
|
-
`});
|
|
926
|
+
`});ve("v-input",{props:{label:L,type:{type:"string",default:"text"},placeholder:L,hint:L,error:L,value:L,name:L,id:L,icon:L,suffix:L,size:{type:"string",default:"md"},autocomplete:L,inputmode:L,maxlength:L,min:L,max:L,step:L,required:B,disabled:B,readonly:B,clearable:B},state(e){return{fieldId:e.id||ge("v-input-")}},computed:{...Se("required","disabled","readonly","clearable"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null}},methods:{clear(){this.value="",Wo(this.$el),this.emit("clear")}},beforeMount(){wn(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
927
927
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
928
928
|
<label class="v-label" v-if="label" :for="fieldId">
|
|
929
929
|
<span v-text="label"></span>
|
|
@@ -944,7 +944,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
944
944
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
945
945
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
946
946
|
</div>
|
|
947
|
-
`});
|
|
947
|
+
`});ve("v-textarea",{props:{label:L,placeholder:L,hint:L,error:L,value:L,name:L,id:L,rows:{type:"number",default:4},maxlength:L,size:{type:"string",default:"md"},resize:{type:"string",default:"vertical"},required:B,disabled:B,readonly:B,counter:B},state(e){return{fieldId:e.id||ge("v-textarea-")}},computed:{...Se("required","disabled","readonly","counter"),hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},counterText(){var t;let e=String((t=this.value)!=null?t:"").length;return this.maxlength?`${e}/${this.maxlength}`:String(e)}},beforeMount(){wn(this,{get:()=>this.value,set:e=>{this.value=e==null?"":String(e)}})},template:`
|
|
948
948
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
949
949
|
<label class="v-label" v-if="label" :for="fieldId">
|
|
950
950
|
<span v-text="label"></span>
|
|
@@ -960,7 +960,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
960
960
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
961
961
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
962
962
|
</div>
|
|
963
|
-
`});function
|
|
963
|
+
`});function xx(e){return e?(Array.isArray(e)?e:typeof e=="string"?Ko(e):[]).map(n=>{var r,o,i,s,a,l,c,d;if(n!=null&&typeof n=="object"){let u=n,f=(s=(i=(o=(r=u.value)!=null?r:u.id)!=null?o:u.key)!=null?i:u.label)!=null?s:"",p=(d=(c=(l=(a=u.label)!=null?a:u.text)!=null?l:u.name)!=null?c:u.title)!=null?d:f;return{value:String(f),label:String(p),disabled:fe(u.disabled)}}return{value:String(n),label:String(n),disabled:!1}}):[]}ve("v-select",{inheritScope:!0,props:{label:L,placeholder:{type:"string",default:"Select"},searchPlaceholder:{type:"string",default:"Search..."},emptyText:{type:"string",default:"No options found"},options:{type:"any",default:""},value:{type:"any",default:""},hint:L,error:L,name:L,id:L,size:{type:"string",default:"md"},multiple:B,searchable:B,clearable:B,disabled:B,required:B},state(e){let t=e.id||ge("v-select-"),n=e.value;return{open:!1,query:"",activeIndex:-1,selected:Array.isArray(n)||n==null?"":String(n),selectedList:Array.isArray(n)?n.map(String):[],fieldId:t}},computed:{...Se("multiple","searchable","clearable","disabled","required"),listId(){return`${this.fieldId}-list`},labelId(){return`${this.fieldId}-label`},hintId(){return`${this.fieldId}-hint`},errorId(){return`${this.fieldId}-error`},describedBy(){return this.error?this.errorId:this.hint?this.hintId:null},allOptions(){var e;return xx((e=jr(this,this.options))!=null?e:this.options)},filtered(){var t;let e=String((t=this.query)!=null?t:"").trim().toLowerCase();return e?this.allOptions.filter(n=>n.label.toLowerCase().includes(e)):this.allOptions},currentValue(){return fe(this.multiple)?this.selectedList:this.selected},hasSelection(){return fe(this.multiple)?this.selectedList.length>0:this.selected!==""},display(){if(!this.hasSelection)return this.placeholder;let e=t=>{let n=this.allOptions.find(r=>r.value===String(t));return n?n.label:String(t)};return fe(this.multiple)?this.selectedList.map(e).join(", "):e(this.selected)},activeId(){return!this.open||this.activeIndex<0||this.activeIndex>=this.filtered.length?null:`${this.listId}-opt-${this.activeIndex}`}},methods:{optionId(e){return`${this.listId}-opt-${e}`},isSelected(e){return fe(this.multiple)?this.selectedList.indexOf(String(e))>-1:this.selected===String(e)},openList(){if(fe(this.disabled)||this.open)return;this.open=!0,this.query="";let e=this.filtered.findIndex(t=>this.isSelected(t.value));this.activeIndex=e>-1?e:0,$t(()=>{let t=this.$refs.search;t&&t.focus()})},closeList(){this.open&&(this.open=!1,this.activeIndex=-1)},closeAndFocus(){let e=this.open;this.closeList(),e&&$t(()=>{let t=this.$refs.trigger;t&&t.focus()})},toggleList(){this.open?this.closeAndFocus():this.openList()},choose(e){if(!(!e||e.disabled)){if(fe(this.multiple)){let t=[...this.selectedList],n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),this.selectedList=t}else this.selected=e.value,this.closeAndFocus();Wo(this.$el),this.emit("change",this.currentValue)}},clear(){this.selected="",this.selectedList=[],Wo(this.$el),this.emit("change",this.currentValue)},move(e){let t=this.filtered;if(!t.length)return;let n=this.activeIndex+e;n<0&&(n=t.length-1),n>=t.length&&(n=0),this.activeIndex=n},onKey(e){let t=e.key;if(t==="Escape"){e.preventDefault(),this.closeAndFocus();return}if(t==="ArrowDown"||t==="ArrowUp"){e.preventDefault(),this.open?this.move(t==="ArrowDown"?1:-1):this.openList();return}if(t==="Home"||t==="End"){if(!this.open)return;e.preventDefault(),this.activeIndex=t==="Home"?0:this.filtered.length-1;return}if(t==="Enter"){e.preventDefault(),this.open?this.choose(this.filtered[this.activeIndex]):this.openList();return}if(t===" "&&!fe(this.searchable)){e.preventDefault(),this.toggleList();return}t==="Tab"&&this.open&&this.closeList()}},beforeMount(){wn(this,{get:()=>this.currentValue,set:e=>{if(fe(this.multiple)){this.selectedList=Array.isArray(e)?e.map(String):Ko(String(e!=null?e:""));return}this.selected=e==null?"":String(e)}})},template:`
|
|
964
964
|
<div class="v-field" :data-error="!!error" :data-disabled="isDisabled">
|
|
965
965
|
<label class="v-label" :id="labelId" v-if="label" v-click="openList">
|
|
966
966
|
<span v-text="label"></span>
|
|
@@ -1008,7 +1008,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1008
1008
|
<p class="v-hint" :id="hintId" v-if="hint && !error" v-text="hint"></p>
|
|
1009
1009
|
<p class="v-error-text" :id="errorId" v-if="error" role="alert" v-text="error"></p>
|
|
1010
1010
|
</div>
|
|
1011
|
-
`});
|
|
1011
|
+
`});ve("v-checkbox",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:"on"},checked:B,disabled:B,required:B},state(e){return{fieldId:e.id||ge("v-check-")}},computed:{...Se("checked","disabled","required")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){wn(this,{get:()=>fe(this.checked),set:e=>{this.checked=fe(e)}})},template:`
|
|
1012
1012
|
<label class="v-check" :for="fieldId" :data-disabled="isDisabled" :data-error="!!error">
|
|
1013
1013
|
<span class="v-check-slot">
|
|
1014
1014
|
<input type="checkbox" class="v-check-native" :id="fieldId" :name="name || null"
|
|
@@ -1021,7 +1021,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1021
1021
|
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1022
1022
|
</span>
|
|
1023
1023
|
</label>
|
|
1024
|
-
`});
|
|
1024
|
+
`});ve("v-radio",{props:{label:L,description:L,error:L,name:L,id:L,value:{type:"string",default:""},checked:B,disabled:B,required:B},state(e){var t;return{fieldId:e.id||ge("v-radio-"),selected:fe(e.checked)?String((t=e.value)!=null?t:""):""}},computed:{...Se("disabled","required"),isChecked(){var e;return this.selected!==""&&this.selected===String((e=this.value)!=null?e:"")}},methods:{onPick(){var e;this.selected=String((e=this.value)!=null?e:""),this.emit("change",this.selected)}},beforeMount(){wn(this,{get:()=>this.selected,set:e=>{this.selected=e==null?"":String(e)}})},template:`
|
|
1025
1025
|
<label class="v-check" :for="fieldId" data-shape="round"
|
|
1026
1026
|
:data-disabled="isDisabled" :data-error="!!error">
|
|
1027
1027
|
<span class="v-check-slot">
|
|
@@ -1035,7 +1035,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1035
1035
|
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1036
1036
|
</span>
|
|
1037
1037
|
</label>
|
|
1038
|
-
`});
|
|
1038
|
+
`});ve("v-switch",{props:{label:L,description:L,name:L,id:L,size:{type:"string",default:"md"},checked:B,disabled:B},state(e){return{fieldId:e.id||ge("v-switch-")}},computed:{...Se("checked","disabled")},methods:{onToggle(e){let t=e.target;this.checked=t.checked,this.emit("change",t.checked)}},beforeMount(){wn(this,{get:()=>fe(this.checked),set:e=>{this.checked=fe(e)}})},template:`
|
|
1039
1039
|
<label class="v-check" :for="fieldId" :data-size="size" :data-disabled="isDisabled">
|
|
1040
1040
|
<span class="v-check-slot">
|
|
1041
1041
|
<input type="checkbox" role="switch" class="v-check-native" :id="fieldId"
|
|
@@ -1048,13 +1048,13 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1048
1048
|
<span class="v-check-desc" v-if="description" v-text="description"></span>
|
|
1049
1049
|
</span>
|
|
1050
1050
|
</label>
|
|
1051
|
-
`});
|
|
1051
|
+
`});ve("v-badge",{props:{tone:{type:"string",default:"neutral"},variant:{type:"string",default:"soft"},size:{type:"string",default:"md"},icon:L,dot:B},computed:{...Se("dot")},template:`
|
|
1052
1052
|
<span class="v-badge" :data-tone="tone" :data-variant="variant" :data-size="size">
|
|
1053
1053
|
<span class="v-badge-dot" v-if="isDot" aria-hidden="true"></span>
|
|
1054
1054
|
<span v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1055
1055
|
<span><slot></slot></span>
|
|
1056
1056
|
</span>
|
|
1057
|
-
`});
|
|
1057
|
+
`});ve("v-tag",{props:{tone:{type:"string",default:"neutral"},variant:{type:"string",default:"soft"},icon:L,closable:B,removeLabel:{type:"string",default:"Remove"}},computed:{...Se("closable")},methods:{remove(){var e,t;this.emit("remove",(t=(e=this.$el.textContent)==null?void 0:e.trim())!=null?t:"")}},template:`
|
|
1058
1058
|
<span class="v-tag v-badge" :data-tone="tone" :data-variant="variant" data-size="md"
|
|
1059
1059
|
:data-closable="isClosable">
|
|
1060
1060
|
<span v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
@@ -1062,7 +1062,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1062
1062
|
<button type="button" class="v-tag-close" v-if="isClosable" :aria-label="removeLabel"
|
|
1063
1063
|
v-click="remove" v-html="svgIcon('x')"></button>
|
|
1064
1064
|
</span>
|
|
1065
|
-
`});var
|
|
1065
|
+
`});var wx={info:"info",primary:"info",success:"check",warning:"warning",danger:"alert",neutral:"info"};ve("v-alert",{props:{tone:{type:"string",default:"info"},title:L,icon:L,closable:B,closeLabel:{type:"string",default:"Close alert"}},state(){return{visible:!0}},computed:{...Se("closable"),resolvedIcon(){return this.icon==="none"?"":this.icon||wx[this.tone]||"info"},liveRole(){return this.tone==="danger"?"alert":"status"}},methods:{dismiss(){this.visible=!1,this.emit("close")}},template:`
|
|
1066
1066
|
<div class="v-alert" v-show="visible" :data-tone="tone" :role="liveRole">
|
|
1067
1067
|
<span class="v-alert-icon" v-if="resolvedIcon" v-html="svgIcon(resolvedIcon)" aria-hidden="true"></span>
|
|
1068
1068
|
<div class="v-alert-body">
|
|
@@ -1072,7 +1072,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1072
1072
|
<button type="button" class="v-alert-close" v-if="isClosable" :aria-label="closeLabel"
|
|
1073
1073
|
v-click="dismiss" v-html="svgIcon('x')"></button>
|
|
1074
1074
|
</div>
|
|
1075
|
-
`});var
|
|
1075
|
+
`});var pm=["primary","accent","success","warning","danger","info"];ve("v-avatar",{props:{name:L,src:L,alt:L,size:{type:"string",default:"md"},shape:{type:"string",default:"circle"},status:L},state(){return{failed:!1}},computed:{initials(){var t;let e=String((t=this.name)!=null?t:"").trim().split(/\s+/).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[e.length-1][0]).toUpperCase():"?"},tone(){var n;let e=String((n=this.name)!=null?n:""),t=0;for(let r=0;r<e.length;r++)t=(t+e.charCodeAt(r))%9973;return pm[t%pm.length]},toneStyle(){return{background:`var(--v-${this.tone}-soft)`,color:`var(--v-${this.tone}-soft-text)`}},showImage(){return!!this.src&&!this.failed},imageAlt(){return this.alt||this.name||"Avatar"}},methods:{onError(){this.failed=!0}},template:`
|
|
1076
1076
|
<span class="v-avatar" :data-size="size" :data-shape="shape" :style="toneStyle"
|
|
1077
1077
|
:title="name || null">
|
|
1078
1078
|
<img class="v-avatar-img" v-if="showImage" :src="src" :alt="imageAlt" v-on:error="onError">
|
|
@@ -1081,15 +1081,15 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1081
1081
|
<span class="v-avatar-status" v-if="status" :data-status="status"
|
|
1082
1082
|
:aria-label="status" role="img"></span>
|
|
1083
1083
|
</span>
|
|
1084
|
-
`});
|
|
1084
|
+
`});ve("v-spinner",{props:{size:{type:"string",default:"md"},tone:{type:"string",default:"primary"},label:{type:"string",default:"Loading"}},template:`
|
|
1085
1085
|
<span class="v-spinner" :data-size="size" :data-tone="tone" role="status"
|
|
1086
1086
|
:aria-label="label"></span>
|
|
1087
|
-
`});
|
|
1087
|
+
`});ve("v-skeleton",{props:{width:{type:"string",default:"100%"},height:{type:"string",default:"14px"},radius:L,lines:{type:"number",default:1},circle:B},computed:{...Se("circle"),count(){let e=Number(this.lines);return Number.isFinite(e)&&e>0?Math.floor(e):1},boxStyle(){let e={width:this.width,height:this.height};return this.radius&&(e.borderRadius=this.radius),fe(this.circle)&&(e.width=e.height=this.height),e},lastStyle(){return{...this.boxStyle,width:"62%"}}},template:`
|
|
1088
1088
|
<div class="v-skeleton-stack" role="status" aria-label="Loading content" aria-busy="true">
|
|
1089
1089
|
<span class="v-skeleton" v-for="index in count" :key="index" :data-circle="isCircle"
|
|
1090
1090
|
:style="index === count && count > 1 ? lastStyle : boxStyle"></span>
|
|
1091
1091
|
</div>
|
|
1092
|
-
`});
|
|
1092
|
+
`});ve("v-progress",{props:{value:{type:"number",default:0},max:{type:"number",default:100},tone:{type:"string",default:"primary"},size:{type:"string",default:"md"},label:L,showValue:B,indeterminate:B},computed:{...Se("showValue","indeterminate"),percent(){let e=Number(this.max)||100,n=(Number(this.value)||0)/e*100;return Math.min(100,Math.max(0,Math.round(n*10)/10))},barStyle(){return{width:`${this.percent}%`}},percentText(){return`${Math.round(this.percent)}%`}},template:`
|
|
1093
1093
|
<div class="v-progress" :data-tone="tone" :data-size="size" :data-indeterminate="isIndeterminate">
|
|
1094
1094
|
<div class="v-progress-head" v-if="label || isShowValue">
|
|
1095
1095
|
<span v-text="label"></span>
|
|
@@ -1100,12 +1100,12 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1100
1100
|
<div class="v-progress-bar" :style="barStyle"></div>
|
|
1101
1101
|
</div>
|
|
1102
1102
|
</div>
|
|
1103
|
-
`});
|
|
1103
|
+
`});ve("v-divider",{props:{label:L,vertical:B,spacing:L},computed:{...Se("vertical"),spacingStyle(){return this.spacing?fe(this.vertical)?{margin:`0 ${this.spacing}`}:{margin:`${this.spacing} 0`}:{}}},template:`
|
|
1104
1104
|
<div class="v-divider" role="separator" :data-vertical="isVertical" :data-label="!!label"
|
|
1105
1105
|
:aria-orientation="isVertical ? 'vertical' : 'horizontal'" :style="spacingStyle">
|
|
1106
1106
|
<span v-if="label" v-text="label"></span>
|
|
1107
1107
|
</div>
|
|
1108
|
-
`});function
|
|
1108
|
+
`});function kx(e){return Array.isArray(e)?e.map(t=>{var r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t,d=String((i=(o=(r=c.key)!=null?r:c.field)!=null?o:c.name)!=null?i:"");return{key:d,label:String((a=(s=c.label)!=null?s:c.title)!=null?a:fo(d)),align:String((l=c.align)!=null?l:"left"),sortable:c.sortable===void 0?!0:fe(c.sortable)}}let n=String(t);return{key:n,label:fo(n),align:"left",sortable:!0}}):typeof e!="string"?[]:Ko(e).map(t=>{let n=t.split(":").map(o=>o.trim()),r=n[0];return{key:r,label:n[1]||fo(r),align:n[2]||"left",sortable:n[3]!=="fixed"}})}ve("v-table",{inheritScope:!0,props:{columns:{type:"any",default:""},rows:{type:"any",default:""},empty:{type:"string",default:"No records found"},sortable:{type:"any",default:!0},dense:B,striped:B,hover:{type:"any",default:!0},caption:L},state(){return{sortKey:"",sortDir:"asc"}},computed:{...Se("dense","striped"),isSortable(){return this.sortable===!0||fe(this.sortable)},isHover(){return this.hover===!0||fe(this.hover)},cols(){var e;return kx((e=jr(this,this.columns))!=null?e:this.columns)},allRows(){var t;let e=(t=jr(this,this.rows))!=null?t:this.rows;return Array.isArray(e)?e:[]},sorted(){let e=this.sortKey;if(!e||!this.isSortable)return this.allRows;let t=this.sortDir==="desc"?-1:1;return[...this.allRows].sort((n,r)=>{let o=uo(n,e),i=uo(r,e);return o==null&&i==null?0:o==null?-t:i==null?t:typeof o=="number"&&typeof i=="number"?(o-i)*t:String(o).localeCompare(String(i),w.locale,{numeric:!0})*t})}},methods:{cell(e,t,n){let r=Array.isArray(e)&&typeof n=="number"?e[n]:uo(e,t.key);return r==null?"":String(r)},ariaSort(e){return!this.isSortable||!e.sortable?null:this.sortKey!==e.key?"none":this.sortDir==="asc"?"ascending":"descending"},canSort(e){return this.isSortable&&e.sortable},arrowFor(e){return this.sortKey!==e.key?"chevron-down":this.sortDir==="asc"?"chevron-up":"chevron-down"},toggleSort(e){this.canSort(e)&&(this.sortKey===e.key?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sortKey=e.key,this.sortDir="asc"),this.emit("sort",{key:this.sortKey,direction:this.sortDir}))},alignStyle(e){return{textAlign:e.align}}},template:`
|
|
1109
1109
|
<div class="v-table-wrap">
|
|
1110
1110
|
<table class="v-table" :data-dense="isDense" :data-striped="isStriped" :data-hover="isHover">
|
|
1111
1111
|
<caption class="v-sr" v-if="caption" v-text="caption"></caption>
|
|
@@ -1132,7 +1132,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1132
1132
|
</tbody>
|
|
1133
1133
|
</table>
|
|
1134
1134
|
</div>
|
|
1135
|
-
`});
|
|
1135
|
+
`});ve("v-pagination",{props:{page:{type:"number",default:1},pages:{type:"number",default:1},total:{type:"number",default:0},perPage:{type:"number",default:10},siblings:{type:"number",default:1},previousLabel:{type:"string",default:"Previous"},nextLabel:{type:"string",default:"Next"},ariaLabel:{type:"string",default:"Pagination"}},computed:{lastPage(){let e=Number(this.pages)||0;if(e>0)return e;let t=Number(this.total)||0,n=Number(this.perPage)||10;return Math.max(1,Math.ceil(t/n))},currentPage(){let e=Number(this.page)||1;return Math.min(Math.max(1,Math.round(e)),this.lastPage)},items(){let e=this.lastPage,t=this.currentPage,n=Math.max(0,Number(this.siblings)||0),r=n*2+5;if(e<=r)return Array.from({length:e},(a,l)=>l+1);let o=[1],i=Math.max(2,t-n),s=Math.min(e-1,t+n);i>2&&o.push(0);for(let a=i;a<=s;a++)o.push(a);return s<e-1&&o.push(0),o.push(e),o}},methods:{go(e){let t=Math.min(Math.max(1,e),this.lastPage);t!==this.currentPage&&(this.page=t,Wo(this.$el),this.emit("change",t))},isCurrent(e){return e===this.currentPage?"page":null}},beforeMount(){wn(this,{get:()=>this.currentPage,set:e=>{let t=Number(e);this.page=Number.isFinite(t)&&t>0?Math.round(t):1}})},template:`
|
|
1136
1136
|
<nav class="v-pagination" :aria-label="ariaLabel">
|
|
1137
1137
|
<button type="button" class="v-page" :disabled="currentPage <= 1"
|
|
1138
1138
|
:aria-label="previousLabel" v-click="go(currentPage - 1)" v-html="svgIcon('chevron-left')"></button>
|
|
@@ -1144,7 +1144,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1144
1144
|
<button type="button" class="v-page" :disabled="currentPage >= lastPage"
|
|
1145
1145
|
:aria-label="nextLabel" v-click="go(currentPage + 1)" v-html="svgIcon('chevron-right')"></button>
|
|
1146
1146
|
</nav>
|
|
1147
|
-
`});function
|
|
1147
|
+
`});function Ex(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a;if(t!=null&&typeof t=="object"){let l=t;return{label:String((o=(r=(n=l.label)!=null?n:l.text)!=null?r:l.title)!=null?o:""),href:String((a=(s=(i=l.href)!=null?i:l.url)!=null?s:l.to)!=null?a:"")}}return{label:String(t),href:""}}):typeof e!="string"?[]:Ko(e).map(t=>{let n=t.indexOf(":");return n===-1?{label:t,href:""}:{label:t.slice(0,n).trim(),href:t.slice(n+1).trim()}})}ve("v-breadcrumb",{inheritScope:!0,props:{items:{type:"any",default:""},separator:{type:"string",default:"/"},ariaLabel:{type:"string",default:"Breadcrumb"}},computed:{crumbs(){var e;return Ex((e=jr(this,this.items))!=null?e:this.items)}},methods:{isLast(e){return e===this.crumbs.length-1}},template:`
|
|
1148
1148
|
<nav class="v-breadcrumb" :aria-label="ariaLabel">
|
|
1149
1149
|
<ol class="v-breadcrumb-list">
|
|
1150
1150
|
<li class="v-breadcrumb-item" v-for="(crumb, index) in crumbs" :key="index"
|
|
@@ -1155,7 +1155,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1155
1155
|
</li>
|
|
1156
1156
|
</ol>
|
|
1157
1157
|
</nav>
|
|
1158
|
-
`});
|
|
1158
|
+
`});ve("v-stat",{props:{label:L,value:L,delta:{type:"any",default:""},hint:L,icon:L,suffix:{type:"string",default:"%"},inverted:B},computed:{...Se("inverted"),deltaNumber(){if(this.delta===""||this.delta===null||this.delta===void 0)return null;let e=Number(String(this.delta).replace(",",".").replace("%",""));return Number.isFinite(e)?e:null},hasDelta(){return this.deltaNumber!==null},direction(){let e=this.deltaNumber;if(e===null||e===0)return"flat";let t=e>0;return(fe(this.inverted)?!t:t)?"up":"down"},deltaIcon(){let e=this.deltaNumber;return e===null||e===0?"minus":e>0?"arrow-up":"arrow-down"},deltaText(){let e=this.deltaNumber;return e===null?"":`${e>0?"+":""}${e}${this.suffix}`}},template:`
|
|
1159
1159
|
<div class="v-stat">
|
|
1160
1160
|
<span class="v-stat-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1161
1161
|
<div class="v-stat-body">
|
|
@@ -1171,14 +1171,14 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1171
1171
|
<div class="v-stat-row"><slot></slot></div>
|
|
1172
1172
|
</div>
|
|
1173
1173
|
</div>
|
|
1174
|
-
`});
|
|
1174
|
+
`});ve("v-empty-state",{props:{icon:{type:"string",default:"inbox"},title:{type:"string",default:"Nothing here yet"},description:L},template:`
|
|
1175
1175
|
<div class="v-empty">
|
|
1176
1176
|
<span class="v-empty-icon" v-if="icon" v-html="svgIcon(icon)" aria-hidden="true"></span>
|
|
1177
1177
|
<h3 class="v-empty-title" v-text="title"></h3>
|
|
1178
1178
|
<p class="v-empty-desc" v-if="description" v-text="description"></p>
|
|
1179
1179
|
<div class="v-empty-actions"><slot></slot></div>
|
|
1180
1180
|
</div>
|
|
1181
|
-
`});function
|
|
1181
|
+
`});function Tx(e){return Array.isArray(e)?e.map(t=>{var n,r,o,i,s,a,l;if(t!=null&&typeof t=="object"){let c=t;return{title:String((r=(n=c.title)!=null?n:c.label)!=null?r:""),description:String((i=(o=c.description)!=null?o:c.text)!=null?i:""),time:String((a=(s=c.time)!=null?s:c.date)!=null?a:""),tone:String((l=c.tone)!=null?l:"primary")}}return{title:String(t),description:"",time:"",tone:"primary"}}):typeof e!="string"||!e.trim()?[]:e.split(";").map(t=>t.trim()).filter(Boolean).map(t=>{var r,o,i;let n=t.split("|").map(s=>s.trim());return{title:(r=n[0])!=null?r:"",description:(o=n[1])!=null?o:"",time:(i=n[2])!=null?i:"",tone:n[3]||"primary"}})}ve("v-timeline",{inheritScope:!0,props:{items:{type:"any",default:""}},computed:{entries(){var e;return Tx((e=jr(this,this.items))!=null?e:this.items)}},template:`
|
|
1182
1182
|
<ol class="v-timeline">
|
|
1183
1183
|
<li class="v-timeline-item" v-for="(entry, index) in entries" :key="index" :data-tone="entry.tone">
|
|
1184
1184
|
<span class="v-timeline-rail" aria-hidden="true"><span class="v-timeline-dot"></span></span>
|
|
@@ -1193,7 +1193,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1193
1193
|
<div class="v-timeline-body"><slot></slot></div>
|
|
1194
1194
|
</li>
|
|
1195
1195
|
</ol>
|
|
1196
|
-
`});
|
|
1196
|
+
`});ve("v-steps",{inheritScope:!0,props:{steps:{type:"any",default:""},current:{type:"number",default:0},vertical:B,ariaLabel:{type:"string",default:"Steps"}},computed:{...Se("vertical"),list(){var t;let e=(t=jr(this,this.steps))!=null?t:this.steps;return Array.isArray(e)?e.map(n=>{var r,o;return n!=null&&typeof n=="object"?String((o=(r=n.label)!=null?r:n.title)!=null?o:""):String(n)}):typeof e=="string"?Ko(e):[]},currentIndex(){let e=Number(this.current);return Number.isFinite(e)?Math.max(0,Math.round(e)):0}},methods:{stateOf(e){return e<this.currentIndex?"done":e===this.currentIndex?"current":"todo"}},template:`
|
|
1197
1197
|
<ol class="v-steps" :data-vertical="isVertical" :aria-label="ariaLabel">
|
|
1198
1198
|
<li class="v-step" v-for="(step, index) in list" :key="index" :data-state="stateOf(index)"
|
|
1199
1199
|
:aria-current="index === currentIndex ? 'step' : null">
|
|
@@ -1205,7 +1205,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1205
1205
|
<span class="v-step-text"><span class="v-step-label" v-text="step"></span></span>
|
|
1206
1206
|
</li>
|
|
1207
1207
|
</ol>
|
|
1208
|
-
`});
|
|
1208
|
+
`});ve("v-rating",{props:{value:{type:"number",default:0},max:{type:"number",default:5},size:{type:"string",default:"md"},label:{type:"string",default:"Rating"},readonly:B,disabled:B,showValue:B,allowClear:{type:"any",default:!0}},state(){return{hovered:0}},computed:{...Se("readonly","disabled","showValue"),locked(){return fe(this.readonly)||fe(this.disabled)},total(){let e=Number(this.max);return Number.isFinite(e)&&e>0?Math.floor(e):5},score(){let e=Number(this.value);return Number.isFinite(e)?Math.min(Math.max(0,e),this.total):0},shown(){return this.hovered>0?this.hovered:this.score},valueText(){return`${this.score} of ${this.total}`}},methods:{isOn(e){return e<=this.shown},pick(e){if(this.locked)return;let n=(this.allowClear===!0||fe(this.allowClear))&&this.score===e?0:e;this.value=n,this.hovered=0,Wo(this.$el),this.emit("change",n)},preview(e){this.locked||(this.hovered=e)},reset(){this.hovered=0},onKey(e){if(this.locked)return;let t=e.key;t==="ArrowRight"||t==="ArrowUp"?(e.preventDefault(),this.pick(Math.min(this.total,this.score+1))):t==="ArrowLeft"||t==="ArrowDown"?(e.preventDefault(),this.pick(Math.max(0,this.score-1))):t==="Home"?(e.preventDefault(),this.pick(1)):t==="End"&&(e.preventDefault(),this.pick(this.total))}},beforeMount(){wn(this,{get:()=>this.score,set:e=>{let t=Number(e);this.value=Number.isFinite(t)?t:0}})},template:`
|
|
1209
1209
|
<div class="v-rating" :data-size="size" role="slider" :aria-label="label"
|
|
1210
1210
|
aria-valuemin="0" :aria-valuemax="total" :aria-valuenow="score" :aria-valuetext="valueText"
|
|
1211
1211
|
:tabindex="locked ? -1 : 0" :aria-readonly="locked" v-keydown="onKey" v-mouseleave="reset">
|
|
@@ -1217,7 +1217,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1217
1217
|
</span>
|
|
1218
1218
|
<span class="v-rating-value" v-if="isShowValue" v-text="valueText"></span>
|
|
1219
1219
|
</div>
|
|
1220
|
-
`});
|
|
1220
|
+
`});ve("v-tooltip-button",{props:{tooltip:L,placement:{type:"string",default:"top"},variant:{type:"string",default:"ghost"},size:{type:"string",default:"md"},icon:L,type:{type:"string",default:"button"},disabled:B,ariaLabel:L},state(){return{tipId:ge("v-tip-")}},computed:{...Se("disabled"),accessibleName(){return this.ariaLabel||null}},template:`
|
|
1221
1221
|
<span class="v-tipwrap">
|
|
1222
1222
|
<button class="v-btn" :type="type" :data-variant="variant" :data-size="size"
|
|
1223
1223
|
:disabled="isDisabled" :aria-describedby="tooltip ? tipId : null" :aria-label="accessibleName">
|
|
@@ -1227,7 +1227,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1227
1227
|
<span class="v-tip" v-if="tooltip" :id="tipId" role="tooltip"
|
|
1228
1228
|
:data-placement="placement" v-text="tooltip"></span>
|
|
1229
1229
|
</span>
|
|
1230
|
-
`});async function
|
|
1230
|
+
`});async function Lx(e){try{if(typeof navigator!="undefined"&&navigator.clipboard)return await navigator.clipboard.writeText(e),!0}catch(t){}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let n=document.execCommand("copy");return t.remove(),n}catch(t){return!1}}ve("v-code-block",{props:{code:L,language:L,filename:L,copyLabel:{type:"string",default:"Copy"},copiedLabel:{type:"string",default:"Copied"},wrap:B},state(){return{copied:!1}},computed:{...Se("wrap"),header(){return this.filename||this.language||""},buttonLabel(){return this.copied?this.copiedLabel:this.copyLabel},buttonIcon(){return this.copied?"check":"copy"}},methods:{async copy(){let e=this.$refs.code,t=this.code||(e==null?void 0:e.textContent)||"";await Lx(String(t))&&(this.copied=!0,this.emit("copy",t),setTimeout(()=>{this.copied=!1},1800))}},template:`
|
|
1231
1231
|
<div class="v-code" :data-wrap="isWrap">
|
|
1232
1232
|
<div class="v-code-head">
|
|
1233
1233
|
<span class="v-code-name" v-text="header"></span>
|
|
@@ -1240,7 +1240,7 @@ ${Jl(':root:not([data-theme="light"])',s.vars)}
|
|
|
1240
1240
|
<pre class="v-code-pre"><code v-ref="code" :class="language ? 'language-' + language : null"
|
|
1241
1241
|
v-text="code"><slot></slot></code></pre>
|
|
1242
1242
|
</div>
|
|
1243
|
-
`});var
|
|
1243
|
+
`});var LE=Object.keys(mm);Be();ye();var Ct={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},zc={duration:220,size:"md"},Mx=`
|
|
1244
1244
|
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
1245
1245
|
|
|
1246
1246
|
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
@@ -1336,8 +1336,8 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1336
1336
|
@media (prefers-reduced-motion: reduce){
|
|
1337
1337
|
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
1338
1338
|
}
|
|
1339
|
-
`;function
|
|
1340
|
-
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:dt.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=Up({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(f){var p;(p=e.onClose)==null||p.call(e,f,d),c(f===void 0?null:f)}});if(o&&d.panel.insertBefore(o,d.body),s.length){let f=document.createElement("div");f.className="v-dialog-foot";for(let p of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(u=p.variant)!=null?u:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=p.onClick)==null?void 0:v.call(p,d))!==!1&&p.close!==!1&&d.close((g=p.value)!=null?g:null)}),f.appendChild(m)}d.panel.appendChild(f)}d.body.childNodes.length||d.body.remove()})}function ix(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function pc(e,t={}){var n;return wr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:dt.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function xs(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return wr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:dt.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:dt.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function mc(e,t={}){var m,h,v,g;ys();let n=(m=t.type)!=null?m:"text",r=le("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let d=()=>n==="number"?l.value.trim():l.value,u=b=>{var E,C;let x=d(),T=null;return t.required&&!x.trim()?T=dt.required:T=(C=(E=t.validate)==null?void 0:E.call(t,x))!=null?C:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),b.close(x),!0)},f=null;return l.addEventListener("keydown",b=>{let x=b;x.key==="Enter"&&(n==="textarea"&&!x.ctrlKey&&!x.metaKey||(b.preventDefault(),f&&u(f)))}),wr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:dt.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:dt.confirm,variant:"primary",close:!1,onClick(b){return f=b,u(b),!1}}],onOpen(b){var x;f=b,(x=t.onOpen)==null||x.call(t,b)}}).then(b=>typeof b=="string"?b:null)}y("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){Mn.close(o||void 0);return}if(n.toggle){o&&Mn.toggle(o);return}o&&Mn.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});y("modal-content",({el:e})=>{ys(),e.id||(e.id=le("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:j.REF});y("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?cc.get(i):void 0;s?s.handle.close(t.trim()||void 0):Mn.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var sc=!1;y("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||dt.confirmQuestion,i=s=>{var u,f,p;if(sc)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=Te(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(f=Te(e,`${w.prefix}confirm-label`))!=null?f:void 0,d=(p=Te(e,`${w.prefix}confirm-cancel`))!=null?p:void 0;xs(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){sc=!0;try{a.click()}finally{sc=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:j.REF});H("$modal",()=>Mn);H("$dialog",()=>wr);H("$alert",()=>pc);H("$confirm",()=>xs);H("$prompt",()=>mc);de();ce();var Lo=new Map;function Le(e,t){Lo.set(e.trim().toLowerCase(),t)}var sx={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},ax=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Kp=new Set(["currency","percent"]);function Sn(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=sx[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function ks(e,t={}){var h,v,g,b,x;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(x=t.suffix)!=null?x:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,f=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Yp(e,t=2){return ks(e,{prefix:"",suffix:"%",decimals:t})}Le("cpf","999.999.999-99");Le("cnpj","99.999.999/9999-99");Le("cep","99999-999");Le("date","99/99/9999");Le("time","99:99");Le("datetime","99/99/9999 99:99");Le("cvv","9999");Le("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return Sn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Le("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return Sn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Le("currency",e=>ks(e));Le("percent",e=>Yp(e));Le("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?Sn(t,"9999 999999 99999"):t.length>16?Sn(t,"9999 9999 9999 9999 999"):Sn(t,"9999 9999 9999 9999")});Le("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return Sn(t,n?"AAA-9999":"AAA9A99")});Le("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Le("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function To(e,t){let n=e==null?"":String(e);if(!t)return n;let r=Lo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):Sn(n,typeof r=="string"?r:t)}function Es(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Kp.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var Xp=Object.assign((e,t)=>To(e,t),{apply:To,unmask:Es,register:Le,currency:ks,percent:Yp,presets:Lo});function ws(e){return e!==void 0&&ax.test(e)}function _p(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)ws(e[o])&&n++;return n}function Wp(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(ws(e[r])&&(n++,n===t))return r+1;return e.length}var vc=new WeakSet;function Gp(e,t,n){var m;if(vc.has(e))return;vc.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var x,T;let h=a(),v=(x=e.selectionStart)!=null?x:h.length,g=_p(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(Wp(b,g))},u=()=>d(),f=h=>{var C,D;if(h.key!=="Backspace")return;let v=(C=e.selectionStart)!=null?C:0,g=(D=e.selectionEnd)!=null?D:0;if(v!==g||v===0)return;let b=a();if(ws(b[v-1]))return;let x=v-1;for(;x>=0&&!ws(b[x]);)x--;if(h.preventDefault(),x<0)return;let T=b.slice(0,x)+b.slice(v),E=_p(T,x);l(t.format(T)),c(Wp(a(),E)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",f),n(()=>{vc.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Qp(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return G(`${w.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(G(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}y("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Qp(e,"mask");if(!o)return;let i=t.trim();if(!i){G(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Gp(o,{format:l=>To(l,i),clean:a?l=>Es(l,s):void 0,rightToLeft:Kp.has(s),suffixLength:s==="percent"?1:0},r)},{priority:j.MODEL+5});y("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,h;let o=Qp(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(f=typeof n.decimals=="string"?n.decimals:null)!=null?f:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(p=i("mask-suffix"))!=null?p:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;Gp(o,{format:v=>ks(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),x=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${x}`:x}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:j.MODEL+5});ce();Ae();var Co="v-xray-flash",nm=200,lx=400,Xe=!1,Jp=!1,_=null,rt="estado",Cn="auto",Er=[],Tr=[],en=new Map,Ms=new Set,So=new Map,Ao=[],hc=new WeakMap,ke={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},kt=[],Ts=0,Ls=0,Lr=0,Mr=0,Mo=null,cx=`
|
|
1339
|
+
`;function Ks(){Me(),_o(),ae("dialog",Mx)}var Bc={info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 7.6v.2"/></svg>',success:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m8.2 12.3 2.6 2.6 5-5.2"/></svg>',warning:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4.6 2.9 19.4h18.2z"/><path d="M12 10v4M12 17.2v.2"/></svg>',danger:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>',question:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M9.6 9.4a2.4 2.4 0 1 1 3.2 2.3c-.6.2-.8.7-.8 1.3v.5M12 16.6v.2"/></svg>',close:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m6 6 12 12M18 6 6 18"/></svg>'},xt=[],jc=new WeakMap,qc=0,vm="",hm="";function Sx(){if(qc++>0)return;let e=document.body;vm=e.style.overflow,hm=e.style.paddingRight;let t=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow="hidden",t>0){let n=parseFloat(getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+t}px`}}function Ax(){qc!==0&&(--qc>0||(document.body.style.overflow=vm,document.body.style.paddingRight=hm))}var Cx='a[href],area[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),iframe,object,embed,[contenteditable="true"],[tabindex]:not([tabindex="-1"])';function Vc(e){return Array.from(e.querySelectorAll(Cx)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function Uc(){return xt[xt.length-1]}function Rx(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var Ws=!1;function gm(e){let t=Uc();if(!t)return;if(e.key==="Escape"){if(t.options.closeOnEscape===!1)return;e.preventDefault(),t.handle.close(void 0);return}if(e.key!=="Tab")return;let n=Vc(t.handle.panel);if(!n.length){e.preventDefault(),t.handle.panel.focus();return}let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey&&(i===r||!t.handle.panel.contains(i))?(e.preventDefault(),o.focus()):!e.shiftKey&&i===o&&(e.preventDefault(),r.focus())}function bm(e){var o;let t=Uc();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=Vc(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function $x(){Ws||(Ws=!0,document.addEventListener("keydown",gm,!0),document.addEventListener("focusin",bm,!0))}function Dx(){Ws&&(Ws=!1,document.removeEventListener("keydown",gm,!0),document.removeEventListener("focusin",bm,!0))}function ym(e){var f,p,m,h,v,g,b;Ks();let t=ge("v-dialog-"),n=Rx()?0:zc.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(f=e.size)!=null?f:zc.size),r.setAttribute("data-position",(p=e.position)!=null?p:"center"),r.style.setProperty("--v-dialog-ms",`${n}ms`),r.style.setProperty("--v-dialog-layer",String(xt.length*2));let o=document.createElement("div");o.className="v-dialog-backdrop",r.appendChild(o);let i=document.createElement("div");i.className="v-dialog-panel",e.plain&&i.classList.add("is-plain"),e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.setAttribute("role",(m=e.role)!=null?m:"dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,e.labelledBy?i.setAttribute("aria-labelledby",e.labelledBy):e.ariaLabel&&i.setAttribute("aria-label",e.ariaLabel),e.describedBy&&i.setAttribute("aria-describedby",e.describedBy),r.appendChild(i);let s=document.createElement("div");if(s.className="v-dialog-body",e.source){let y=document.createComment(" v-modal ");(h=e.source.parentNode)==null||h.insertBefore(y,e.source),Ic.set(e.source,y),e.source.classList.add("v-dialog-open"),e.source.removeAttribute("hidden"),s.appendChild(e.source)}else e.content&&s.appendChild(e.content);if(i.appendChild(s),e.closable!==!1){let y=document.createElement("button");y.type="button",y.className="v-dialog-x",y.setAttribute("aria-label",Ct.close),y.innerHTML=Bc.close,y.addEventListener("click",()=>d.close(void 0)),i.appendChild(y)}let a=!1,l=()=>{},c=new Promise(y=>{l=y}),d={id:t,root:r,panel:i,body:s,key:(v=e.key)!=null?v:null,source:(g=e.source)!=null?g:null,closed:c,close(y){if(a)return;a=!0;let T=xt.findIndex(A=>A.handle===d);T>-1&&xt.splice(T,1),jc.delete(r),u.locked&&Ax(),xt.length||Dx(),r.classList.remove("is-open"),r.classList.add("is-closing");let E=()=>{var C;let A=e.source;if(A){let R=Ic.get(A);A.classList.remove("v-dialog-open"),R&&R.parentNode?(R.parentNode.insertBefore(A,R),R.remove()):A.remove(),Ic.delete(A),za(A,"modal-content")&&A.setAttribute("hidden","")}if(r.remove(),(C=e.onClose)==null||C.call(e,y,d),l(y),e.restoreFocus!==!1){let R=u.previousFocus;R&&typeof R.focus=="function"&&R.isConnected&&R.focus()}};n>0?setTimeout(E,n):E()}},u={handle:d,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&d.close(void 0)}),u.locked&&Sx(),xt.push(u),jc.set(r,u),$x(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let y=Px(e,i);y==null||y.focus()}),(b=e.onOpen)==null||b.call(e,d),d}var Ic=new WeakMap;function Px(e,t){var i;let n=e.initialFocus;if(n instanceof HTMLElement)return n;if(typeof n=="string"){let s=t.querySelector(n);if(s)return s}let r=t.querySelector("[autofocus],[data-autofocus]");return r||((i=Vc(t)[0])!=null?i:t)}function Nx(e){if(e instanceof HTMLElement)return e;let t=String(e!=null?e:"").trim();if(!t)return null;let n=/^[\w-]+$/.test(t)?`#${t}`:t;return document.querySelector(n)}function Us(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function _s(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return xt.find(n=>{var o;if(n.handle.key===e||n.handle.key===t)return!0;let r=n.handle.source;return!!r&&((o=r.matches)==null?void 0:o.call(r,t))})}var Wn={open(e,t={}){var s,a;let n=Nx(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=Us(e))!=null?s:n.id?`#${n.id}`:null,o=r?_s(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ge("v-dialog-title-")),ym({...t,source:n,key:r,labelledBy:(a=i==null?void 0:i.id)!=null?a:null})},close(e,t){var o;if(e===void 0){(o=Uc())==null||o.handle.close(t);return}let n=Us(e),r=n?_s(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...xt].reverse())t.handle.close(e)},toggle(e,t={}){let n=Us(e),r=n?_s(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return xt.length>0;let t=Us(e);return!!(t&&_s(t))},get opened(){return xt.map(e=>e.handle)},get count(){return xt.length},configure(e){Object.assign(zc,e)},labels(e){return Object.assign(Ct,e),Ct}};function qr(e){var a,l;Ks();let t=document.createDocumentFragment(),n=e.title?ge("v-dialog-title-"):null,r=e.description?ge("v-dialog-desc-"):null,o=null;if(e.title||e.description||e.icon){o=document.createElement("div"),o.className="v-dialog-head";let c=e.icon&&e.icon!=="none"?e.icon:null;if(c&&Bc[c]){let u=document.createElement("div");u.className="v-dialog-icon",u.setAttribute("aria-hidden","true"),u.setAttribute("data-tone",(a=e.tone)!=null?a:Hx(c)),u.innerHTML=Bc[c],o.appendChild(u)}let d=document.createElement("div");if(d.className="v-dialog-heading",e.title){let u=document.createElement("h2");u.className="v-dialog-title",u.id=n,u.textContent=e.title,d.appendChild(u)}if(e.description){let u=document.createElement("p");u.className="v-dialog-desc",u.id=r,u.textContent=e.description,d.appendChild(u)}o.appendChild(d)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
1340
|
+
`)){let d=document.createElement("p");d.textContent=c,i.appendChild(d)}if(e.html){let c=document.createElement("div");for(c.innerHTML=e.html;c.firstChild;)i.appendChild(c.firstChild)}e.node&&i.appendChild(e.node),t.appendChild(i);let s=(l=e.buttons)!=null?l:[{label:Ct.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var u;let d=ym({...e,content:t,role:e.tone==="danger"?"alertdialog":"dialog",labelledBy:n,describedBy:r,key:null,onClose(f){var p;(p=e.onClose)==null||p.call(e,f,d),c(f===void 0?null:f)}});if(o&&d.panel.insertBefore(o,d.body),s.length){let f=document.createElement("div");f.className="v-dialog-foot";for(let p of s){let m=document.createElement("button");m.type="button",m.className="v-dlg-btn",m.setAttribute("data-variant",(u=p.variant)!=null?u:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var v,g;((v=p.onClick)==null?void 0:v.call(p,d))!==!1&&p.close!==!1&&d.close((g=p.value)!=null?g:null)}),f.appendChild(m)}d.panel.appendChild(f)}d.body.childNodes.length||d.body.remove()})}function Hx(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function _c(e,t={}){var n;return qr({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:Ct.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function Ys(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return qr({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:Ct.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:Ct.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function Wc(e,t={}){var m,h,v,g;Ks();let n=(m=t.type)!=null?m:"text",r=ge("v-prompt-"),o=`${r}-hint`,i=`${r}-error`,s=document.createElement("div");s.className="v-dialog-field";let a=document.createElement("label");a.className="v-dialog-label",a.htmlFor=r,a.textContent=e,s.appendChild(a);let l=n==="textarea"?document.createElement("textarea"):document.createElement("input");if(l.className="v-dialog-input",l.id=r,l instanceof HTMLInputElement&&(l.type=n==="textarea"?"text":n),l.value=(h=t.value)!=null?h:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let b=document.createElement("p");b.className="v-dialog-hint",b.id=o,b.textContent=t.hint,s.appendChild(b),l.setAttribute("aria-describedby",o)}let c=document.createElement("p");c.className="v-dialog-error",c.id=i,c.hidden=!0,c.setAttribute("role","alert"),s.appendChild(c);let d=()=>n==="number"?l.value.trim():l.value,u=b=>{var E,A;let y=d(),T=null;return t.required&&!y.trim()?T=Ct.required:T=(A=(E=t.validate)==null?void 0:E.call(t,y))!=null?A:null,T?(c.textContent=T,c.hidden=!1,l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",i),l.focus(),!1):(c.hidden=!0,l.removeAttribute("aria-invalid"),b.close(y),!0)},f=null;return l.addEventListener("keydown",b=>{let y=b;y.key==="Enter"&&(n==="textarea"&&!y.ctrlKey&&!y.metaKey||(b.preventDefault(),f&&u(f)))}),qr({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(v=t.cancelLabel)!=null?v:Ct.cancel,value:null,variant:"secondary"},{label:(g=t.confirmLabel)!=null?g:Ct.confirm,variant:"primary",close:!1,onClick(b){return f=b,u(b),!1}}],onOpen(b){var y;f=b,(y=t.onOpen)==null||y.call(t,b)}}).then(b=>typeof b=="string"?b:null)}x("modal",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();e.setAttribute("aria-haspopup","dialog");let i=s=>{if(s.preventDefault(),n.close){Wn.close(o||void 0);return}if(n.toggle){o&&Wn.toggle(o);return}o&&Wn.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});x("modal-content",({el:e})=>{Ks(),e.id||(e.id=ge("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:_.REF});x("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?jc.get(i):void 0;s?s.handle.close(t.trim()||void 0):Wn.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var Fc=!1;x("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||Ct.confirmQuestion,i=s=>{var u,f,p;if(Fc)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(u=Oe(e,`${w.prefix}confirm-title`))!=null?u:void 0,c=(f=Oe(e,`${w.prefix}confirm-label`))!=null?f:void 0,d=(p=Oe(e,`${w.prefix}confirm-cancel`))!=null?p:void 0;Ys(o,{title:l,confirmLabel:c,cancelLabel:d,danger:!!n.danger,size:"sm"}).then(m=>{if(m){Fc=!0;try{a.click()}finally{Fc=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:_.REF});F("$modal",()=>Wn);F("$dialog",()=>qr);F("$alert",()=>_c);F("$confirm",()=>Ys);F("$prompt",()=>Wc);xe();ye();var Xo=new Map;function Ie(e,t){Xo.set(e.trim().toLowerCase(),t)}var Ox={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},Ix=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,km=new Set(["currency","percent"]);function Kn(e,t){let n="",r=0;for(let o=0;o<t.length;o++){let i=t[o];if(i==="\\"){let a=t[++o];if(a===void 0||r>=e.length)break;n+=a;continue}let s=Ox[i];if(s){for(;r<e.length&&!s.test(e[r]);)r++;if(r>=e.length)break;n+=e[r++];continue}if(r>=e.length)break;e[r]===i&&r++,n+=i}return n}function Gs(e,t={}){var h,v,g,b,y;let n=Math.max(0,Math.trunc((h=t.decimals)!=null?h:2)),r=(v=t.decimal)!=null?v:",",o=(g=t.thousands)!=null?g:".",i=(b=t.prefix)!=null?b:"R$ ",s=(y=t.suffix)!=null?y:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let d=c.padStart(n+1,"0"),u=n?d.slice(0,d.length-n):d,f=n?d.slice(d.length-n):"",m=u.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Em(e,t=2){return Gs(e,{prefix:"",suffix:"%",decimals:t})}Ie("cpf","999.999.999-99");Ie("cnpj","99.999.999/9999-99");Ie("cep","99999-999");Ie("date","99/99/9999");Ie("time","99:99");Ie("datetime","99/99/9999 99:99");Ie("cvv","9999");Ie("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return Kn(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});Ie("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return Kn(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});Ie("currency",e=>Gs(e));Ie("percent",e=>Em(e));Ie("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?Kn(t,"9999 999999 99999"):t.length>16?Kn(t,"9999 9999 9999 9999 999"):Kn(t,"9999 9999 9999 9999")});Ie("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return Kn(t,n?"AAA-9999":"AAA9A99")});Ie("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});Ie("ip",e=>{let t=e.replace(/[^\d.]/g,"").split(".").slice(0,4),n=[];for(let r of t){if(r===""){n.push("");continue}let o=Math.min(255,Number(r.slice(0,3)));n.push(String(o))}return n.join(".")});function Yo(e,t){let n=e==null?"":String(e);if(!t)return n;let r=Xo.get(t.trim().toLowerCase());return typeof r=="function"?r(n):Kn(n,typeof r=="string"?r:t)}function Qs(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&km.has(r)){let o=n.trim().startsWith("-"),i=n.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!i)return"";let s=i.padStart(3,"0"),a=`${s.slice(0,s.length-2)}.${s.slice(s.length-2)}`;return o?`-${a}`:a}return n.replace(/[^0-9A-Za-zÀ-ÖØ-öø-ÿ]/g,"")}var Tm=Object.assign((e,t)=>Yo(e,t),{apply:Yo,unmask:Qs,register:Ie,currency:Gs,percent:Em,presets:Xo});function Xs(e){return e!==void 0&&Ix.test(e)}function xm(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)Xs(e[o])&&n++;return n}function wm(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(Xs(e[r])&&(n++,n===t))return r+1;return e.length}var Kc=new WeakSet;function Lm(e,t,n){var m;if(Kc.has(e))return;Kc.add(e);let r=Object.getPrototypeOf(e),o=(m=Object.getOwnPropertyDescriptor(r,"value"))!=null?m:Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),i=o==null?void 0:o.get,s=o==null?void 0:o.set,a=()=>{var h;return String(i?i.call(e):(h=e.getAttribute("value"))!=null?h:"")},l=h=>{s?s.call(e,h):e.setAttribute("value",h)},c=h=>{try{e.setSelectionRange(h,h)}catch(v){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let h=String(i.call(e));return t.clean?t.clean(h):h},set(h){s.call(e,t.format(h==null?"":String(h)))}}),n(()=>{let h=a();Reflect.deleteProperty(e,"value"),l(h)}));let d=()=>{var y,T;let h=a(),v=(y=e.selectionStart)!=null?y:h.length,g=xm(h,v),b=t.format(h);b!==h&&l(b),t.rightToLeft?c(Math.max(0,b.length-((T=t.suffixLength)!=null?T:0))):c(wm(b,g))},u=()=>d(),f=h=>{var A,C;if(h.key!=="Backspace")return;let v=(A=e.selectionStart)!=null?A:0,g=(C=e.selectionEnd)!=null?C:0;if(v!==g||v===0)return;let b=a();if(Xs(b[v-1]))return;let y=v-1;for(;y>=0&&!Xs(b[y]);)y--;if(h.preventDefault(),y<0)return;let T=b.slice(0,y)+b.slice(v),E=xm(T,y);l(t.format(T)),c(wm(a(),E)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",u),e.addEventListener("keydown",f),n(()=>{Kc.delete(e),e.removeEventListener("input",u),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Mm(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return re(`${w.prefix}${t} only works on input or textarea.`),null;let n=e,r=(n.getAttribute("type")||"text").toLowerCase();return r==="number"||r==="range"||r==="date"||r==="color"?(re(`${w.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}x("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Mm(e,"mask");if(!o)return;let i=t.trim();if(!i){re(`${w.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Lm(o,{format:l=>Yo(l,i),clean:a?l=>Qs(l,s):void 0,rightToLeft:km.has(s),suffixLength:s==="percent"?1:0},r)},{priority:_.MODEL+5});x("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,h;let o=Mm(e,"mask-currency");if(!o)return;let i=v=>{var g;return(g=e.getAttribute(`${w.prefix}${v}`))!=null?g:e.getAttribute(`data-v-${v}`)},s=(f=typeof n.decimals=="string"?n.decimals:null)!=null?f:i("mask-decimals"),a=s!==null&&s!==""?Number(s):2,l=t.trim()?t:"",c={prefix:n.plain?"":l||i("mask-prefix")||"R$ ",suffix:(p=i("mask-suffix"))!=null?p:"",decimals:Number.isFinite(a)?a:2,decimal:n.dot?".":",",thousands:n.dot?",":"."},d=!!n.unmask||!!n.raw,u=(m=c.decimals)!=null?m:2;Lm(o,{format:v=>Gs(v,c),clean:d?v=>{let g=v.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!g)return"";if(u===0)return g;let b=g.padStart(u+1,"0"),y=`${b.slice(0,b.length-u)}.${b.slice(b.length-u)}`;return v.trim().startsWith("-")?`-${y}`:y}:void 0,rightToLeft:!0,suffixLength:((h=c.suffix)!=null?h:"").length},r)},{priority:_.MODEL+5});ye();Be();var Jo="v-xray-flash",$m=200,Fx=400,ut=!1,Sm=!1,J=null,wt="estado",Yn="auto",Ur=[],_r=[],kn=new Map,ea=new Set,Qo=new Map,Zo=[],Yc=new WeakMap,Pe={effects:0,mutations:0,effectsPerSecond:0,updatesPerSecond:0,history:[]},jt=[],Js=0,Zs=0,Wr=0,Kr=0,Go=null,zx=`
|
|
1341
1341
|
.v-xray-root{
|
|
1342
1342
|
all: initial;
|
|
1343
1343
|
--vx-accent:#6D3BF5;
|
|
@@ -1642,14 +1642,14 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1642
1642
|
0%{box-shadow:0 0 0 2px rgba(255,61,139,.95),0 0 16px rgba(255,61,139,.5)}
|
|
1643
1643
|
100%{box-shadow:0 0 0 2px rgba(255,61,139,0),0 0 0 rgba(255,61,139,0)}
|
|
1644
1644
|
}
|
|
1645
|
-
.${
|
|
1645
|
+
.${Jo}{animation:v-xray-pulse .45s ease-out}
|
|
1646
1646
|
@media (prefers-reduced-motion: reduce){
|
|
1647
|
-
.${
|
|
1647
|
+
.${Jo}{animation:none;outline:2px solid rgba(255,61,139,.9)}
|
|
1648
1648
|
}
|
|
1649
1649
|
@media (max-width: 640px){
|
|
1650
1650
|
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1651
1651
|
}
|
|
1652
|
-
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function Cs(e){if(!e||!_)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&_.root.contains(t)}function Sr(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function rm(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${si(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return si((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function dx(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function ux(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function om(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function im(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)im(n,t)}function bc(e){let t=[];for(let n of xd(e))im(n,t);return t}function sm(e){let t=bc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=bc(n).length);return t}function am(e){if(!e||!Xe||Cs(e))return;let t=So.get(e);t&&window.clearTimeout(t),Ms.add(e),e.classList.add(Co);let n=window.setTimeout(()=>{e.classList.remove(Co),So.delete(e),window.setTimeout(()=>Ms.delete(e),0)},460);So.set(e,n)}function Zp(e,t){for(let n of bc(e)){if(en.has(n))continue;let r=n.fn;en.set(n,r),n.fn=()=>(ke.effects++,am(t),r())}}function fx(){for(let[e,t]of en)e.fn=t;en.clear()}function lm(){if(!Xe||typeof document=="undefined")return;for(let[n]of en)n.active||en.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(_&&_.root.contains(n)){t=px(e);continue}Zp(n,n)}else t.nodeType===3&&t.parentElement&&Zp(t,t.parentElement);t=e.nextNode()}hx()}function px(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function mx(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<lx;n++){let r=t[n];_&&_.root.contains(r)||da(r)&&e.push(r)}return e}function vx(e){return In(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function hx(){var t;if(!Xe||!_)return;let e=_.overlay;e.textContent="",Ao.length=0;for(let n of mx()){let r=M("div","v-xray-box"),o=!!((t=it(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",vx(n).join(" "));r.appendChild(i),e.appendChild(r),Ao.push({el:n,box:r})}wc()}function wc(){if(Xe)for(let e of Ao){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function gx(){Mr||(Mr=requestAnimationFrame(()=>{Mr=0,wc()}))}function bx(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function yx(e){var s;if(!_)return;let t=_.card;t.textContent="";let n=Ce(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Sr(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=In(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Sr(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=bx(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",rm(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${sm(e)} effect(s) depend on this element`))}function xx(e,t){if(!_)return;let n=_.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function em(e){if(!Xe||!_)return;let t=e.target;if(!t||Cs(t)){_.card.dataset.open="0",Mo=null;return}let n=t;for(;n&&n!==document.body&&!da(n);)n=n.parentElement;if(!n||n===document.body){_.card.dataset.open="0",Mo=null;return}n!==Mo&&(Mo=n,yx(n)),_.card.dataset.open="1",xx(e.clientX,e.clientY)}function wx(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(_&&_.root.contains(o))continue;let i=it(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function Ss(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=dx(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(ux(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function kx(){let e=document.createDocumentFragment(),t=wx();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Sr(n.el))),o.addEventListener("click",()=>dm(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(Ss(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function Ex(){var n;let e=document.createDocumentFragment(),t=[...Rt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Sr(r.$el))),i.appendChild(M("span","v-xray-badge",`${sm(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>dm(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(Ss(u,a[u],f=>{a[u]=f}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let f;try{f=c.data[u]}catch(p){f=void 0}s.appendChild(Ss(u,f,p=>{c.set(u,p)}))}}o.appendChild(s),e.appendChild(o)}return e}function Tx(){let e=document.createDocumentFragment(),t=ri();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=$t[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(Ss(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function cm(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function Lx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{Er.length=0,tn()}),e.appendChild(t),!Er.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...Er].reverse())e.appendChild(cm(om(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function Mx(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{Tr.length=0,tn()}),e.appendChild(t),!Tr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...Tr].reverse())e.appendChild(cm(om(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Sx(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(ke.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(ke.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(ke.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...ke.history.map(s=>Math.max(s.effects,s.updates)));for(let s of ke.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${en.size} effects instrumented, peak of ${i} per second`)),e}var Cx=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function tn(){if(!_)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&_.body.contains(e))){switch(_.body.textContent="",rt){case"estado":_.body.appendChild(kx());break;case"componentes":_.body.appendChild(Ex());break;case"stores":_.body.appendChild(Tx());break;case"eventos":_.body.appendChild(Lx());break;case"rede":_.body.appendChild(Mx());break;case"desempenho":_.body.appendChild(Sx());break}for(let t of Array.from(_.tabs.children)){let n=t;n.dataset.active=n.dataset.id===rt?"1":"0"}_.status.textContent=`${Ao.length} elements with directives, ${Rt.size} components, ${en.size} effects observed`}}function dm(e){e.scrollIntoView({behavior:"smooth",block:"center"}),am(e)}function Ax(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Cn!=="auto"&&(e.dataset.vXrayTheme=Cn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Cn=Cn==="auto"?"dark":Cn==="dark"?"light":"auto",Cn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Cn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>um()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Cx){let f=M("button","v-xray-tab",u.label);f.dataset.id=u.id,f.dataset.active=u.id===rt?"1":"0",f.addEventListener("click",()=>{rt=u.id,tn()}),l.appendChild(f)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var Rx=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function tm(e){Er.push(e),Er.length>nm&&Er.shift(),rt==="eventos"&&tn()}function gc(e){Tr.push(e),Tr.length>nm&&Tr.shift(),rt==="rede"&&tn()}function $x(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of In(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Dx(){let e=new Set(Rx),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(_&&_.root.contains(r)))for(let o of In(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Px(){let e=t=>{if(!Xe)return;let n=t.target;if(!n||n.nodeType!==1||Cs(n))return;let r=$x(n,t.type),o=t.__voodoo===!0;!r&&!o||tm({at:Date.now(),type:t.type,target:Sr(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Dx())document.addEventListener(t,e,!0),kt.push(()=>document.removeEventListener(t,e,!0));kt.push(je.on("event",t=>{var n,r;tm({at:Date.now(),type:t.type,target:Sr((n=t.el)!=null?n:null),detail:rm(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Nx(){kt.push(he.interceptors.request.use(e=>(hc.set(e,performance.now()),e))),kt.push(he.interceptors.response.use(e=>{var n,r;let t=(n=hc.get(e.config))!=null?n:performance.now();return gc({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),kt.push(he.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=hc.get(t))!=null?r:performance.now();return gc({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),kt.push(je.on("network",e=>{var t,n,r,o,i;gc({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var kr=null;function Hx(){kr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;Cs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&Ms.has(r)||(ke.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!Lr&&(Lr=window.setTimeout(()=>{Lr=0,lm()},250))}),kr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Ox(){Ls=window.setInterval(()=>{ke.effectsPerSecond=ke.effects-yc,ke.updatesPerSecond=ke.mutations-xc,yc=ke.effects,xc=ke.mutations,ke.history.push({effects:ke.effectsPerSecond,updates:ke.updatesPerSecond}),ke.history.length>40&&ke.history.shift(),rt==="desempenho"&&tn()},1e3),Ts=window.setInterval(()=>{wc(),(rt==="estado"||rt==="componentes"||rt==="stores")&&tn()},700)}var yc=0,xc=0;function Fx(){if(Xe||typeof document=="undefined"||!document.body)return;Xe=!0,ge(),Z("xray",cx),_=Ax(),rt=rt||"estado",ke.effects=0,ke.mutations=0,yc=0,xc=0,ke.history.length=0,lm(),Px(),Nx(),Hx(),Ox();let e=()=>gx();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",em,!0),kt.push(()=>window.removeEventListener("scroll",e,!0)),kt.push(()=>window.removeEventListener("resize",e)),kt.push(()=>document.removeEventListener("mousemove",em,!0)),tn()}function um(){if(Xe){Xe=!1;for(let e of kt.splice(0))try{e()}catch(t){}kr==null||kr.disconnect(),kr=null,Ls&&window.clearInterval(Ls),Ts&&window.clearInterval(Ts),Lr&&window.clearTimeout(Lr),Mr&&cancelAnimationFrame(Mr),Ls=Ts=Lr=Mr=0;for(let[e,t]of So)window.clearTimeout(t),e.classList.remove(Co);So.clear(),Ms.clear(),fx(),Ao.length=0,Mo=null,_==null||_.root.remove(),_=null}}function fm(){return Xe}function Ix(e){let t=e.toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n=t.pop(),r={ctrl:!1,alt:!1,shift:!1,meta:!1,code:/^f\d{1,2}$/.test(n)?n.toUpperCase():n.length===1&&n>="a"&&n<="z"?`Key${n.toUpperCase()}`:n.length===1&&n>="0"&&n<="9"?`Digit${n}`:n.charAt(0).toUpperCase()+n.slice(1)};for(let o of t)if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command"||o==="win")r.meta=!0;else return null;return r}function kc(){Jp||typeof document=="undefined"||(Jp=!0,document.addEventListener("keydown",e=>{let t=w.xrayShortcut;if(t===!1)return;let n=Ix(typeof t=="string"?t:"ctrl+shift+f2");n&&(e.ctrlKey!==n.ctrl||e.altKey!==n.alt||e.shiftKey!==n.shift||e.metaKey!==n.meta||e.code!==n.code&&e.key.toUpperCase()!==n.code.replace(/^Key/,"")||(e.preventDefault(),Ro()))}))}function Ro(e){return kc(),(e!=null?e:!Xe)?Fx():um(),Xe}de();ce();var zx=new Set(["SCRIPT","STYLE","PRE","CODE","SAMP","KBD","TEXTAREA","TEMPLATE","NOSCRIPT"]);H("$__jsx",e=>e);Ad((e,t)=>{t?$o():As(e)});var pm=Symbol("voodoo.jsx.template");function Bx(e){return typeof e=="object"&&e!==null&&pm in e}function jx(e,t){var f;let n=[],r=[],o="",i=0,s=null,a=!1,l=e,c=t,d=!1,u=null;for(;l;){if(l.nodeType===Node.TEXT_NODE){let p=(f=l.textContent)!=null?f:"";for(;c<p.length;c++){let m=p[c];if(a){a=!1,o+=m;continue}if(s){m==="\\"?a=!0:m===s&&(s=null),o+=m;continue}if(m==='"'||m==="'"||m==="`"){s=m,o+=m;continue}if(m==="{"){i++,i>1&&(o+=m);continue}if(m==="}"){if(i--,i===0){c++,d=!0;break}o+=m;continue}o+=m}if(r.push(l),d){u={node:l,offset:c};break}}else if(l.nodeType===Node.ELEMENT_NODE){if(i===0)return null;o+=`$t(${n.length}, $__jsx)`,n.push(l),r.push(l)}else r.push(l);c=0,l=l.nextSibling}return d?{source:o,templates:n,nodes:r,tail:u}:null}function qx(e){let t=e.source.match(/\(\s*\)/g);if(!t)return!1;let n=e.nodes[0],r=e.nodes[e.nodes.length-1],o=[r==null?void 0:r.nextSibling,n==null?void 0:n.previousSibling].map(l=>{var d;let c=l!=null?l:null;for(;c&&c.nodeType===Node.TEXT_NODE&&!((d=c.textContent)!=null?d:"").trim();)c=c===(r==null?void 0:r.nextSibling)?c.nextSibling:c.previousSibling;return c&&c.nodeType===Node.ELEMENT_NODE?c:null}).find(l=>(l==null?void 0:l.tagName)==="TABLE");if(!o)return!1;let i=o.querySelector("tbody");if(!i)return!1;let s=Array.from(i.children).filter(l=>l.tagName==="TR");if(s.length!==t.length)return!1;let a=0;return e.source=e.source.replace(/\(\s*\)/g,()=>`($t(${a++}, $__jsx))`),e.templates=s,e.host=i,e.nodes.push(...s),!0}function mm(e,t,n,r){var o;if(!(e==null||e===!1||e===!0)){if(Array.isArray(e)){for(let i of e)mm(i,t,n,r);return}if(Bx(e)){let i=e,a=t[i.index].cloneNode(!0),l=(o=i.scope)!=null?o:n;Tc(a,l),$o(),ne(a,l),r.push(a);return}r.push(document.createTextNode(String(e)))}}function Tc(e,t){var o,i,s;if(zx.has(e.tagName))return;let n=t!=null?t:Ce(e),r=e.firstChild;for(;r;){let a=r.nextSibling;if(r.nodeType===Node.ELEMENT_NODE){Tc(r,(o=it(r))!=null?o:n),r=a;continue}if(r.nodeType!==Node.TEXT_NODE){r=a;continue}let c=((i=r.textContent)!=null?i:"").indexOf("{");if(c<0){r=a;continue}let d=jx(r,c);if(!d){r=a;continue}if(d.templates.length===0&&!qx(d)){r=a;continue}Vx(e,d,n),r=(s=d.nodes[d.nodes.length-1])==null?void 0:s.nextSibling}}var Ec=[];function Vx(e,t,n){var f,p;let{source:r,templates:o,nodes:i,tail:s}=t,a;try{a=ze(r)}catch(m){w.devtools&&console.warn(`[Voodoo] could not parse the inline expression: ${r}`,m);return}s&&s.offset<((f=s.node.textContent)!=null?f:"").length&&s.node.splitText(s.offset);let l=(p=t.host)!=null?p:e,c=document.createComment("v-jsx");l.insertBefore(c,t.host?t.host.firstChild:i[0]);for(let m of i)m.remove();let d=[];Ec.push(()=>u());function u(){let m=Ce(c),v=(m===Ke&&n?n:m).child({$t:(b,x)=>({[pm]:!0,index:b,scope:x})}),g=Pe(()=>{let b=Vo(P(a,v)),x=[];mm(b,o,v,x);for(let T of d)T.remove();d=x;for(let T of x)l.insertBefore(T,c)});Be(c,()=>{g.effect.stop();for(let b of d)b.remove()})}}function Ux(e=document.body){var t;for(let n of Array.from(e.childNodes)){if(n.nodeType!==Node.TEXT_NODE)continue;let r=(t=n.textContent)!=null?t:"",o=r.indexOf("{");if(o<0)continue;let i=_x(r,o);if(i<0)continue;let s=r.slice(o,i+1);if(!/\b(?:const|let|var)\s/.test(s))continue;let a=s.slice(1,-1).replace(/\b(?:const|let|var)\s+/g,""),l=X({});try{P(ze(a),new St(l))}catch(c){return w.devtools&&console.warn("[Voodoo] could not read the declaration block",c),null}return n.textContent=r.slice(0,o)+r.slice(i+1),l}return null}function _x(e,t){let n=0,r=null,o=!1;for(let i=t;i<e.length;i++){let s=e[i];if(o){o=!1;continue}if(r){s==="\\"?o=!0:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`")r=s;else if(s==="{")n++;else if(s==="}"&&--n===0)return i}return-1}function $o(){let e=Ec.splice(0,Ec.length);for(let t of e)try{t()}catch(n){console.error("[Voodoo] a JSX region failed to render",n)}}function As(e=document.body){let t=Ux(e);t&&Object.assign(Ke.data,t),Tc(e,Ce(e))}function vm(e=document.body){As(e),$o()}Ae();var gm="voodoo:devtools:widget-position",Lc="voodoo:devtools:widget-hidden",Wx=4,oe=null,Cr=!1,Mc=0,Rs=0,Do=[],Kx=`
|
|
1652
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function na(e){if(!e||!J)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&J.root.contains(t)}function Yr(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Dm(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Ni(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Ni((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function Bx(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function jx(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function Pm(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Nm(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Nm(n,t)}function Gc(e){let t=[];for(let n of Kd(e))Nm(n,t);return t}function Hm(e){let t=Gc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=Gc(n).length);return t}function Om(e){if(!e||!ut||na(e))return;let t=Qo.get(e);t&&window.clearTimeout(t),ea.add(e),e.classList.add(Jo);let n=window.setTimeout(()=>{e.classList.remove(Jo),Qo.delete(e),window.setTimeout(()=>ea.delete(e),0)},460);Qo.set(e,n)}function Am(e,t){for(let n of Gc(e)){if(kn.has(n))continue;let r=n.fn;kn.set(n,r),n.fn=()=>(Pe.effects++,Om(t),r())}}function qx(){for(let[e,t]of kn)e.fn=t;kn.clear()}function Im(){if(!ut||typeof document=="undefined")return;for(let[n]of kn)n.active||kn.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(J&&J.root.contains(n)){t=Vx(e);continue}Am(n,n)}else t.nodeType===3&&t.parentElement&&Am(t,t.parentElement);t=e.nextNode()}Wx()}function Vx(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Ux(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Fx;n++){let r=t[n];J&&J.root.contains(r)||ja(r)&&e.push(r)}return e}function _x(e){return ir(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Wx(){var t;if(!ut||!J)return;let e=J.overlay;e.textContent="",Zo.length=0;for(let n of Ux()){let r=M("div","v-xray-box"),o=!!((t=Tt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",_x(n).join(" "));r.appendChild(i),e.appendChild(r),Zo.push({el:n,box:r})}Zc()}function Zc(){if(ut)for(let e of Zo){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Kx(){Kr||(Kr=requestAnimationFrame(()=>{Kr=0,Zc()}))}function Yx(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Xx(e){var s;if(!J)return;let t=J.card;t.textContent="";let n=ze(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Yr(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=ir(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Yr(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Yx(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Dm(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hm(e)} effect(s) depend on this element`))}function Gx(e,t){if(!J)return;let n=J.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Cm(e){if(!ut||!J)return;let t=e.target;if(!t||na(t)){J.card.dataset.open="0",Go=null;return}let n=t;for(;n&&n!==document.body&&!ja(n);)n=n.parentElement;if(!n||n===document.body){J.card.dataset.open="0",Go=null;return}n!==Go&&(Go=n,Xx(n)),J.card.dataset.open="1",Gx(e.clientX,e.clientY)}function Qx(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(J&&J.root.contains(o))continue;let i=Tt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function ta(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=Bx(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(jx(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Jx(){let e=document.createDocumentFragment(),t=Qx();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Yr(n.el))),o.addEventListener("click",()=>zm(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(ta(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function Zx(){var n;let e=document.createDocumentFragment(),t=[...Gt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Yr(r.$el))),i.appendChild(M("span","v-xray-badge",`${Hm(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>zm(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(ta(u,a[u],f=>{a[u]=f}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let f;try{f=c.data[u]}catch(p){f=void 0}s.appendChild(ta(u,f,p=>{c.set(u,p)}))}}o.appendChild(s),e.appendChild(o)}return e}function e0(){let e=document.createDocumentFragment(),t=$i();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Qt[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(ta(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Fm(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function t0(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{Ur.length=0,En()}),e.appendChild(t),!Ur.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...Ur].reverse())e.appendChild(Fm(Pm(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function n0(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{_r.length=0,En()}),e.appendChild(t),!_r.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[..._r].reverse())e.appendChild(Fm(Pm(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function r0(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(Pe.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(Pe.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(Pe.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...Pe.history.map(s=>Math.max(s.effects,s.updates)));for(let s of Pe.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${kn.size} effects instrumented, peak of ${i} per second`)),e}var o0=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function En(){if(!J)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&J.body.contains(e))){switch(J.body.textContent="",wt){case"estado":J.body.appendChild(Jx());break;case"componentes":J.body.appendChild(Zx());break;case"stores":J.body.appendChild(e0());break;case"eventos":J.body.appendChild(t0());break;case"rede":J.body.appendChild(n0());break;case"desempenho":J.body.appendChild(r0());break}for(let t of Array.from(J.tabs.children)){let n=t;n.dataset.active=n.dataset.id===wt?"1":"0"}J.status.textContent=`${Zo.length} elements with directives, ${Gt.size} components, ${kn.size} effects observed`}}function zm(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Om(e)}function i0(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Yn!=="auto"&&(e.dataset.vXrayTheme=Yn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Yn=Yn==="auto"?"dark":Yn==="dark"?"light":"auto",Yn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Yn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Bm()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of o0){let f=M("button","v-xray-tab",u.label);f.dataset.id=u.id,f.dataset.active=u.id===wt?"1":"0",f.addEventListener("click",()=>{wt=u.id,En()}),l.appendChild(f)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var s0=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Rm(e){Ur.push(e),Ur.length>$m&&Ur.shift(),wt==="eventos"&&En()}function Xc(e){_r.push(e),_r.length>$m&&_r.shift(),wt==="rede"&&En()}function a0(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of ir(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function l0(){let e=new Set(s0),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(J&&J.root.contains(r)))for(let o of ir(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function c0(){let e=t=>{if(!ut)return;let n=t.target;if(!n||n.nodeType!==1||na(n))return;let r=a0(n,t.type),o=t.__voodoo===!0;!r&&!o||Rm({at:Date.now(),type:t.type,target:Yr(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of l0())document.addEventListener(t,e,!0),jt.push(()=>document.removeEventListener(t,e,!0));jt.push(nt.on("event",t=>{var n,r;Rm({at:Date.now(),type:t.type,target:Yr((n=t.el)!=null?n:null),detail:Dm(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function d0(){jt.push(Le.interceptors.request.use(e=>(Yc.set(e,performance.now()),e))),jt.push(Le.interceptors.response.use(e=>{var n,r;let t=(n=Yc.get(e.config))!=null?n:performance.now();return Xc({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),jt.push(Le.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Yc.get(t))!=null?r:performance.now();return Xc({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),jt.push(nt.on("network",e=>{var t,n,r,o,i;Xc({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var Vr=null;function u0(){Vr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;na(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ea.has(r)||(Pe.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!Wr&&(Wr=window.setTimeout(()=>{Wr=0,Im()},250))}),Vr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function f0(){Zs=window.setInterval(()=>{Pe.effectsPerSecond=Pe.effects-Qc,Pe.updatesPerSecond=Pe.mutations-Jc,Qc=Pe.effects,Jc=Pe.mutations,Pe.history.push({effects:Pe.effectsPerSecond,updates:Pe.updatesPerSecond}),Pe.history.length>40&&Pe.history.shift(),wt==="desempenho"&&En()},1e3),Js=window.setInterval(()=>{Zc(),(wt==="estado"||wt==="componentes"||wt==="stores")&&En()},700)}var Qc=0,Jc=0;function p0(){if(ut||typeof document=="undefined"||!document.body)return;ut=!0,Me(),ae("xray",zx),J=i0(),wt=wt||"estado",Pe.effects=0,Pe.mutations=0,Qc=0,Jc=0,Pe.history.length=0,Im(),c0(),d0(),u0(),f0();let e=()=>Kx();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Cm,!0),jt.push(()=>window.removeEventListener("scroll",e,!0)),jt.push(()=>window.removeEventListener("resize",e)),jt.push(()=>document.removeEventListener("mousemove",Cm,!0)),En()}function Bm(){if(ut){ut=!1;for(let e of jt.splice(0))try{e()}catch(t){}Vr==null||Vr.disconnect(),Vr=null,Zs&&window.clearInterval(Zs),Js&&window.clearInterval(Js),Wr&&window.clearTimeout(Wr),Kr&&cancelAnimationFrame(Kr),Zs=Js=Wr=Kr=0;for(let[e,t]of Qo)window.clearTimeout(t),e.classList.remove(Jo);Qo.clear(),ea.clear(),qx(),Zo.length=0,Go=null,J==null||J.root.remove(),J=null}}function jm(){return ut}function m0(e){let t=e.toLowerCase().split("+").map(o=>o.trim()).filter(Boolean);if(!t.length)return null;let n=t.pop(),r={ctrl:!1,alt:!1,shift:!1,meta:!1,code:/^f\d{1,2}$/.test(n)?n.toUpperCase():n.length===1&&n>="a"&&n<="z"?`Key${n.toUpperCase()}`:n.length===1&&n>="0"&&n<="9"?`Digit${n}`:n.charAt(0).toUpperCase()+n.slice(1)};for(let o of t)if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command"||o==="win")r.meta=!0;else return null;return r}function ed(){Sm||typeof document=="undefined"||(Sm=!0,document.addEventListener("keydown",e=>{let t=w.xrayShortcut;if(t===!1)return;let n=m0(typeof t=="string"?t:"ctrl+shift+f2");n&&(e.ctrlKey!==n.ctrl||e.altKey!==n.alt||e.shiftKey!==n.shift||e.metaKey!==n.meta||e.code!==n.code&&e.key.toUpperCase()!==n.code.replace(/^Key/,"")||(e.preventDefault(),ei()))}))}function ei(e){return ed(),(e!=null?e:!ut)?p0():Bm(),ut}xe();ye();var v0=new Set(["SCRIPT","STYLE","PRE","CODE","SAMP","KBD","TEXTAREA","TEMPLATE","NOSCRIPT"]);F("$__jsx",e=>e);nu((e,t)=>{t?ti():ra(e)});var qm=Symbol("voodoo.jsx.template");function h0(e){return typeof e=="object"&&e!==null&&qm in e}function g0(e,t){var f;let n=[],r=[],o="",i=0,s=null,a=!1,l=e,c=t,d=!1,u=null;for(;l;){if(l.nodeType===Node.TEXT_NODE){let p=(f=l.textContent)!=null?f:"";for(;c<p.length;c++){let m=p[c];if(a){a=!1,o+=m;continue}if(s){m==="\\"?a=!0:m===s&&(s=null),o+=m;continue}if(m==='"'||m==="'"||m==="`"){s=m,o+=m;continue}if(m==="{"){i++,i>1&&(o+=m);continue}if(m==="}"){if(i--,i===0){c++,d=!0;break}o+=m;continue}o+=m}if(r.push(l),d){u={node:l,offset:c};break}}else if(l.nodeType===Node.ELEMENT_NODE){if(i===0)return null;o+=`$t(${n.length}, $__jsx)`,n.push(l),r.push(l)}else r.push(l);c=0,l=l.nextSibling}return d?{source:o,templates:n,nodes:r,tail:u}:null}function b0(e){let t=e.source.match(/\(\s*\)/g);if(!t)return!1;let n=e.nodes[0],r=e.nodes[e.nodes.length-1],o=[r==null?void 0:r.nextSibling,n==null?void 0:n.previousSibling].map(l=>{var d;let c=l!=null?l:null;for(;c&&c.nodeType===Node.TEXT_NODE&&!((d=c.textContent)!=null?d:"").trim();)c=c===(r==null?void 0:r.nextSibling)?c.nextSibling:c.previousSibling;return c&&c.nodeType===Node.ELEMENT_NODE?c:null}).find(l=>(l==null?void 0:l.tagName)==="TABLE");if(!o)return!1;let i=o.querySelector("tbody");if(!i)return!1;let s=Array.from(i.children).filter(l=>l.tagName==="TR");if(s.length!==t.length)return!1;let a=0;return e.source=e.source.replace(/\(\s*\)/g,()=>`($t(${a++}, $__jsx))`),e.templates=s,e.host=i,e.nodes.push(...s),!0}function Vm(e,t,n,r){var o;if(!(e==null||e===!1||e===!0)){if(Array.isArray(e)){for(let i of e)Vm(i,t,n,r);return}if(h0(e)){let i=e,a=t[i.index].cloneNode(!0),l=(o=i.scope)!=null?o:n;nd(a,l),ti(),ue(a,l),r.push(a);return}r.push(document.createTextNode(String(e)))}}function nd(e,t){var o,i,s;if(v0.has(e.tagName))return;let n=t!=null?t:ze(e),r=e.firstChild;for(;r;){let a=r.nextSibling;if(r.nodeType===Node.ELEMENT_NODE){nd(r,(o=Tt(r))!=null?o:n),r=a;continue}if(r.nodeType!==Node.TEXT_NODE){r=a;continue}let c=((i=r.textContent)!=null?i:"").indexOf("{");if(c<0){r=a;continue}let d=g0(r,c);if(!d){r=a;continue}if(d.templates.length===0&&!b0(d)){r=a;continue}y0(e,d,n),r=(s=d.nodes[d.nodes.length-1])==null?void 0:s.nextSibling}}var td=[];function y0(e,t,n){var f,p;let{source:r,templates:o,nodes:i,tail:s}=t,a;try{a=et(r)}catch(m){w.devtools&&console.warn(`[Voodoo] could not parse the inline expression: ${r}`,m);return}s&&s.offset<((f=s.node.textContent)!=null?f:"").length&&s.node.splitText(s.offset);let l=(p=t.host)!=null?p:e,c=document.createComment("v-jsx");l.insertBefore(c,t.host?t.host.firstChild:i[0]);for(let m of i)m.remove();let d=[];td.push(()=>u());function u(){let m=ze(c),v=(m===ct&&n?n:m).child({$t:(b,y)=>({[qm]:!0,index:b,scope:y})}),g=We(()=>{let b=gi(P(a,v)),y=[];Vm(b,o,v,y);for(let T of d)T.remove();d=y;for(let T of y)l.insertBefore(T,c)});tt(c,()=>{g.effect.stop();for(let b of d)b.remove()})}}function x0(e=document.body){var t;for(let n of Array.from(e.childNodes)){if(n.nodeType!==Node.TEXT_NODE)continue;let r=(t=n.textContent)!=null?t:"",o=r.indexOf("{");if(o<0)continue;let i=w0(r,o);if(i<0)continue;let s=r.slice(o,i+1);if(!/\b(?:const|let|var)\s/.test(s))continue;let a=s.slice(1,-1).replace(/\b(?:const|let|var)\s+/g,""),l=ee({});try{P(et(a),new Wt(l))}catch(c){return w.devtools&&console.warn("[Voodoo] could not read the declaration block",c),null}return n.textContent=r.slice(0,o)+r.slice(i+1),l}return null}function w0(e,t){let n=0,r=null,o=!1;for(let i=t;i<e.length;i++){let s=e[i];if(o){o=!1;continue}if(r){s==="\\"?o=!0:s===r&&(r=null);continue}if(s==='"'||s==="'"||s==="`")r=s;else if(s==="{")n++;else if(s==="}"&&--n===0)return i}return-1}function ti(){let e=td.splice(0,td.length);for(let t of e)try{t()}catch(n){console.error("[Voodoo] a JSX region failed to render",n)}}function ra(e=document.body){let t=x0(e);t&&Object.assign(ct.data,t),nd(e,ze(e))}function Um(e=document.body){ra(e),ti()}Be();var Wm="voodoo:devtools:widget-position",rd="voodoo:devtools:widget-hidden",k0=4,pe=null,Xr=!1,od=0,oa=0,ni=[],E0=`
|
|
1653
1653
|
.v-devtools-widget{
|
|
1654
1654
|
all: initial;
|
|
1655
1655
|
--vw-accent:#6D3BF5;
|
|
@@ -1780,9 +1780,9 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1780
1780
|
.v-devtools-btn,.v-devtools-pulse,.v-devtools-close{transition:none}
|
|
1781
1781
|
.v-devtools-btn:hover{transform:none}
|
|
1782
1782
|
}
|
|
1783
|
-
`,
|
|
1783
|
+
`,T0=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1784
1784
|
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1785
1785
|
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1786
|
-
</svg>`;function
|
|
1786
|
+
</svg>`;function L0(){try{let e=localStorage.getItem(Wm);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function M0(e){try{localStorage.setItem(Wm,JSON.stringify(e))}catch(t){}}function id(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function S0(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (Ctrl+Shift+F2)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Ctrl+Shift+F2)",t.innerHTML=T0;let n=document.createElement("span");n.className="v-devtools-label",n.textContent="Voodoo";let r=document.createElement("span");r.className="v-devtools-count",r.textContent="0";let o=document.createElement("span");o.className="v-devtools-pulse",o.setAttribute("data-on","false"),t.append(n,r,o);let i=document.createElement("button");i.type="button",i.className="v-devtools-close",i.setAttribute("aria-label","Hide the devtools widget in this tab"),i.title="Hide in this tab",i.textContent="\xD7",e.append(t,i),document.body.appendChild(e);let s=L0();return s?id(e,s):(e.style.right="16px",e.style.bottom="16px"),{root:e,button:t,pulse:o,counter:r,close:i}}function A0(e,t){let n=!1,r=!1,o=0,i=0,s=0,a=0,l=p=>{var h,v;if(p.button!==0)return;let m=e.root.getBoundingClientRect();n=!0,r=!1,s=p.clientX,a=p.clientY,o=p.clientX-m.left,i=p.clientY-m.top,(v=(h=e.button).setPointerCapture)==null||v.call(h,p.pointerId)},c=p=>{if(!n)return;let m=Math.hypot(p.clientX-s,p.clientY-a);!r&&m<k0||(r=!0,p.preventDefault(),id(e.root,{x:p.clientX-o,y:p.clientY-i}))},d=p=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.button).releasePointerCapture)==null||v.call(h,p.pointerId),!r){t();return}let m=e.root.getBoundingClientRect();M0({x:m.left,y:m.top})},u=p=>{p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),t())},f=()=>{let p=e.root.getBoundingClientRect();e.root.style.left&&id(e.root,{x:p.left,y:p.top})};return e.button.addEventListener("pointerdown",l),e.button.addEventListener("pointermove",c),e.button.addEventListener("pointerup",d),e.button.addEventListener("pointercancel",d),e.button.addEventListener("keydown",u),window.addEventListener("resize",f),()=>{e.button.removeEventListener("pointerdown",l),e.button.removeEventListener("pointermove",c),e.button.removeEventListener("pointerup",d),e.button.removeEventListener("pointercancel",d),e.button.removeEventListener("keydown",u),window.removeEventListener("resize",f)}}function C0(){pe&&(pe.pulse.setAttribute("data-on","true"),window.clearTimeout(oa),oa=window.setTimeout(()=>{pe==null||pe.pulse.setAttribute("data-on","false")},320))}function _m(){if(!pe)return;let e=Gt.size,t=e===1?"1 component":`${e} components`;pe.counter.textContent!==t&&(pe.counter.textContent=t)}function R0(){if(Xr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(rd)==="1")return}catch(r){}Xr=!0,ae("devtools-widget",E0),pe=S0();let e=()=>{let r=ei();pe==null||pe.root.setAttribute("data-active",String(r)),pe==null||pe.button.setAttribute("aria-pressed",String(r))};ni.push(A0(pe,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(rd,"1")}catch(o){}Km(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};pe.close.addEventListener("click",t),ni.push(()=>pe==null?void 0:pe.close.removeEventListener("click",t));let n=()=>{let r=jm();pe==null||pe.root.setAttribute("data-active",String(r)),pe==null||pe.button.setAttribute("aria-pressed",String(r))};document.addEventListener("keyup",n),ni.push(()=>document.removeEventListener("keyup",n));for(let r of["network","event","navigation","update"])ni.push(nt.on(r,C0));_m(),od=window.setInterval(_m,1e3)}function Km(){if(Xr){Xr=!1;for(let e of ni.splice(0))try{e()}catch(t){}window.clearInterval(od),window.clearTimeout(oa),od=0,oa=0,pe==null||pe.root.remove(),pe=null}}function Ym(e){if(e!=null?e:!Xr){try{sessionStorage.removeItem(rd)}catch(n){}R0()}else Km();return Xr}var Gm=((e,t)=>vl(e,t));function Xm(e,t,n){return((...r)=>(io(e,t),n(...r)))}Object.assign(Gm,Yi,{query:vl,ready:hl,fromHtml:vf,jsx:Um,extractJsx:ra,activateJsx:ti,Collection:Nt,router:ko,route:we,navigate:vn,resolveRoute:kr,i18n:To,t:Mr,setLocale:Eo,getLocale:ss,modal:Wn,alert:_c,confirm:Ys,prompt:Wc,dialog:qr,validator:se,validate:Jl,validateForm:Xm("V.validateForm","V.validate",Jl),serializeForm:Rr,messages:St,showFormErrors:ws,showFieldError:xs,clearErrors:Po,mask:Tm,masks:Xo,applyMask:Yo,unmask:Qs,registerMask:Ie,animate:tn,spring:yc,stagger:xc,inView:Is,scrollProgress:wc,motion:Bn,easings:Fo,chart:Xm("V.chart","V.renderChart",Ir),renderChart:Ir,charts:Sc,chartColors:Bo,palette:um,hotkey:Ao,sound:xn,xray:ei,enableXrayShortcut:ed,devtoolsWidget:Ym,devtools:nt,magic:F});var sd=Gm;ye();function $0(e){if(window.VOODOO_DEVTOOLS===!0)return!0;for(let t of["devtools","data-devtools"]){if(!e.hasAttribute(t))continue;let n=e.getAttribute(t);return n===null||n===""||n.toLowerCase()!=="false"}return!1}function D0(){var s;if(typeof document=="undefined")return{manual:!1};let e=(s=document.currentScript)!=null?s:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");o&&(w.locale=o),$0(e)&&(w.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(w.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function P0(e){if(typeof e.devtoolsWidget=="function"){e.devtoolsWidget(!0);return}console.info("[Voodoo] devtools requested, but this build does not include the inspector. Use voodoo.full.min.js to get the widget and full devtools panel.")}function Qm(e){var o;if(typeof window=="undefined")return;let t=D0(),n=window;if(n.V=e,n.Voodoo=e,Je.V=e,Je.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),Pt.init(),t.manual||!w.autoStart){ao(()=>{Oc()});return}ao(()=>{Oc(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),w.devtools&&P0(e)})}Qm(sd);var N0=sd;return rv(H0);})();
|
|
1787
1787
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1788
1788
|
//# sourceMappingURL=voodoo.full.min.js.map
|