voodoojs 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{chunk-KN7NAKBL.js → chunk-4DLB2RY5.js} +4 -4
- package/dist/{chunk-GXPNWCGE.js → chunk-5YP5VMW7.js} +3 -3
- package/dist/{chunk-HNM3CTBD.js → chunk-EWFY7CJB.js} +5 -5
- package/dist/{chunk-72PMUUMT.js → chunk-FRYNZTKW.js} +4 -4
- package/dist/{chunk-T5ION5NG.js → chunk-HTBGKRUJ.js} +3 -3
- package/dist/{chunk-NP66JM2P.js → chunk-NB3JAL4F.js} +4 -4
- package/dist/{chunk-4M4ZXHNY.js → chunk-NGDOIDR6.js} +35 -8
- package/dist/{chunk-RDHYPGH6.js → chunk-UFLF4VNQ.js} +19 -15
- package/dist/{chunk-LLNDLLKV.js → chunk-VI27DQRZ.js} +4 -4
- package/dist/{chunk-AFMCDNYS.js → chunk-WOYGKZ3L.js} +5 -5
- package/dist/{chunk-D7675IJG.js → chunk-ZDLVJ7TA.js} +6 -6
- package/dist/essential.cjs +36 -5
- 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 +54 -9
- package/dist/index.js +38 -24
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +29 -2
- package/dist/socket.js +9 -9
- package/dist/style-JJTTJNSI.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +37 -5
- package/dist/voodoo.core.min.js +16 -16
- package/dist/voodoo.full.js +61 -11
- package/dist/voodoo.full.min.js +46 -46
- package/dist/voodoo.js +43 -7
- package/dist/voodoo.min.js +25 -25
- package/package.json +1 -1
- package/dist/style-GR4X6O7I.js +0 -5
package/dist/voodoo.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.12.
|
|
2
|
+
* Voodoo.js v0.12.3
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Voodoo=(()=>{var nr=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var ru=Object.prototype.hasOwnProperty;var ou=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var To=(e,t)=>()=>(e&&(t=e(e=0)),t);var rr=(e,t)=>{for(var n in t)nr(e,n,{get:t[n],enumerable:!0})},iu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of nu(t))!ru.call(e,o)&&o!==n&&nr(e,o,{get:()=>t[o],enumerable:!(r=tu(t,o))||r.enumerable});return e};var su=e=>iu(nr({},"__esModule",{value:!0}),e);var S=(e,t,n)=>ou(e,typeof t!="symbol"?t+"":t,n);var Is={};rr(Is,{EffectScope:()=>Re,ITERATE_KEY:()=>vt,ReactiveEffect:()=>zt,TriggerType:()=>Ns,computed:()=>wt,effect:()=>ve,effectScope:()=>No,enableTracking:()=>Ps,flushSync:()=>Ro,getActiveEffect:()=>lu,getActiveScope:()=>uu,handleError:()=>q,hasChanged:()=>Ln,isReactive:()=>Fo,isRef:()=>ht,markRaw:()=>kn,nextTick:()=>bt,pauseTracking:()=>Ds,queueJob:()=>lr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>Te,resetTracking:()=>Po,setErrorHandler:()=>Ho,shallowRef:()=>Io,stop:()=>Ut,toRaw:()=>ie,track:()=>Ie,trigger:()=>Ke,unref:()=>jo,warn:()=>Y,watch:()=>he,watchEffect:()=>Bo});function bt(e){let t=sr||Mo;return e?t.then(e):t}function lr(e){e.queued||(e.queued=!0,Bt.push(e),Hs())}function fe(e){or.push(e),Hs()}function Hs(){ir||Tn||(Tn=!0,sr=Mo.then(Co))}function Co(){Tn=!1,ir=!0;let e=new Map;try{for(let t=0;t<Bt.length;t++){let n=Bt[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>au){Y("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){q(o,"effect")}}}finally{for(let n of Bt)n.queued=!1;Bt=[],ir=!1;let t=or;or=[];for(let n of t)try{n()}catch(r){q(r,"post-flush")}Bt.length||or.length?(sr=Mo.then(Co),Tn=!0):sr=null}}function Ro(){ir||(Tn=!1,Co())}function Ho(e){ko=e}function q(e,t){if(ko){ko(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Ds(){Do.push(yt),yt=!1}function Ps(){Do.push(yt),yt=!0}function Po(){var e;yt=(e=Do.pop())!=null?e:!0}function lu(){return ge}function Ss(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function ve(e,t){let n=new zt(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Ut(e){e instanceof zt?e.stop():e.effect.stop()}function No(e=!1){return new Re(e)}function uu(){return nt}function Ie(e,t){if(!yt||!ge)return;let n=Lo.get(e);n||Lo.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ke(e,t,n,r){let o=Lo.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==ge||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?Ao(n)&&s(o.get("length")):s(o.get(vt));else if(t==="delete")a||s(o.get(vt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():lr(a)}function Ao(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function rt(e){return e!==null&&typeof e=="object"}function fu(e){if(!rt(e)||e[Os]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return du.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function kn(e){return Object.defineProperty(e,Os,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Oo];return t?ie(t):e}function Fo(e){return!!(e&&e[$o])}function V(e){if(!rt(e)||Fo(e)||!fu(e))return e;let t=Ms.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?mu:pu);return Ms.set(e,r),r}function Ln(e,t){return!Object.is(e,t)}function ht(e){return!!(e&&e.__v_isRef===!0)}function Rs(e){return rt(e)?V(e):e}function $s(e){!yt||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Fs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():lr(t)}function Te(e){return new ar(e)}function Io(e){return new ar(e,!0)}function jo(e){return ht(e)?e.value:e}function wt(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new So(n,r)}function he(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(ht(e)?s=()=>e.value:typeof e=="function"?s=e:Fo(e)?s=()=>qt(e):s=()=>e,o){let p=s;s=()=>qt(p())}let a,l,c=p=>{l=p},u=()=>{if(!f.effect.active)return;let p=f();(o||Ln(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?ve(s,{lazy:!0,scheduler:()=>fe(u)}):ve(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>lr(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function Bo(e){let t,n=o=>{t=o},r=ve(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function qt(e,t=new Set){if(!rt(e)||t.has(e))return e;if(t.add(e),ht(e))qt(e.value,t);else if(Array.isArray(e))for(let n of e)qt(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>qt(n,t));else for(let n of Object.keys(e))qt(e[n],t);return e}var Mo,Bt,or,ir,Tn,sr,au,ko,ge,yt,Do,cu,zt,nt,Re,vt,Lo,Ns,Oo,$o,Os,Ms,Cs,du,pu,mu,ar,So,X=To(()=>{"use strict";Mo=Promise.resolve(),Bt=[],or=[],ir=!1,Tn=!1,sr=null,au=100;ko=null;yt=!0,Do=[];cu=0,zt=class{constructor(t,n){var o;this.fn=t,this.id=cu++,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:nt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Ps(),Ss(this),this.fn()}finally{Po(),ge=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){q(r,"effect cleanup")}}stop(){var t;this.active&&(Ss(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Re=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&nt&&(this.parent=nt,nt.children.push(this))}run(t){if(!this.active)return;let n=nt;try{return nt=this,t()}finally{nt=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){q(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)}}}};vt=Symbol("voodoo:iterate"),Lo=new WeakMap;Ns=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))(Ns||{});Oo=Symbol("voodoo:raw"),$o=Symbol("voodoo:isReactive"),Os=Symbol("voodoo:skip"),Ms=new WeakMap,Cs=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Ie(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Ds();try{return ie(this)[t].apply(this,n)}finally{Po()}};return e})();du=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);pu={get(e,t,n){if(t===Oo)return e;if(t===$o)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Cs,t))return Reflect.get(Cs,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Ie(e,t),ht(o)?r&&Ao(t)?o:o.value:rt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&ht(o)&&!ht(n))return o.value=n,!0;let i=Array.isArray(e)&&Ao(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?Ln(n,o)&&Ke(e,"set",t,n):Ke(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ke(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Ie(e,t),n},ownKeys(e){return Ie(e,Array.isArray(e)?"length":vt),Reflect.ownKeys(e)}},mu={get(e,t,n){if(t===Oo)return e;if(t===$o)return!0;let r=e;if(t==="size")return Ie(r,vt),Reflect.get(r,"size",r);let o={get(s){Ie(r,s);let a=r.get(s);return rt(a)?V(a):a},has(s){return Ie(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ke(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,ie(a)),l?Ln(a,c)&&Ke(r,"set",s,a):Ke(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&Ke(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&Ke(r,"clear"),a},forEach(s,a){return Ie(r,vt),r.forEach((l,c)=>{s.call(a,rt(l)?V(l):l,rt(c)?V(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Ie(r,vt);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}};ar=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:Rs(t)}get value(){return $s(this),this._value}set value(t){let n=ie(t);Ln(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Rs(t),Fs(this))}};So=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new zt(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Fs(this))}})}get value(){return $s(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ge.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Et(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function dr(e,t,n){Js.has(t)||(Js.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ge,P,ce,Js,ee=To(()=>{"use strict";E={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},Ge=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};ce=new Map;Js=new Set});var Wa={};rr(Wa,{BASE_TOKENS:()=>Va,ensureTokens:()=>se,injectStyle:()=>Q});function Q(e,t){if(typeof document=="undefined"||!E.injectStyles||_a.has(e))return;_a.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){Q("tokens",Va)}var _a,Va,Ee=To(()=>{"use strict";ee();_a=new Set;Va=`
|
|
6
|
+
"use strict";var Voodoo=(()=>{var rr=Object.defineProperty;var ou=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var su=Object.prototype.hasOwnProperty;var au=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ko=(e,t)=>()=>(e&&(t=e(e=0)),t);var or=(e,t)=>{for(var n in t)rr(e,n,{get:t[n],enumerable:!0})},lu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iu(t))!su.call(e,o)&&o!==n&&rr(e,o,{get:()=>t[o],enumerable:!(r=ou(t,o))||r.enumerable});return e};var cu=e=>lu(rr({},"__esModule",{value:!0}),e);var S=(e,t,n)=>au(e,typeof t!="symbol"?t+"":t,n);var qs={};or(qs,{EffectScope:()=>Re,ITERATE_KEY:()=>vt,ReactiveEffect:()=>zt,TriggerType:()=>$s,computed:()=>wt,effect:()=>ve,effectScope:()=>Oo,enableTracking:()=>Fs,flushSync:()=>Ho,getActiveEffect:()=>du,getActiveScope:()=>pu,handleError:()=>q,hasChanged:()=>Ln,isReactive:()=>Io,isRef:()=>ht,markRaw:()=>kn,nextTick:()=>bt,pauseTracking:()=>Os,queueJob:()=>cr,queuePostFlush:()=>fe,reactive:()=>V,ref:()=>Te,resetTracking:()=>No,setErrorHandler:()=>Do,shallowRef:()=>jo,stop:()=>Ut,toRaw:()=>ie,track:()=>Ie,trigger:()=>Ke,unref:()=>Bo,warn:()=>Y,watch:()=>he,watchEffect:()=>qo});function bt(e){let t=ar||Co;return e?t.then(e):t}function cr(e){e.queued||(e.queued=!0,Bt.push(e),Ns())}function fe(e){ir.push(e),Ns()}function Ns(){sr||Tn||(Tn=!0,ar=Co.then(Ro))}function Ro(){Tn=!1,sr=!0;let e=new Map;try{for(let t=0;t<Bt.length;t++){let n=Bt[t];if(!n.active)continue;let r=(e.get(n)||0)+1;if(e.set(n,r),r>uu){Y("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){q(o,"effect")}}}finally{for(let n of Bt)n.queued=!1;Bt=[],sr=!1;let t=ir;ir=[];for(let n of t)try{n()}catch(r){q(r,"post-flush")}Bt.length||ir.length?(ar=Co.then(Ro),Tn=!0):ar=null}}function Ho(){sr||(Tn=!1,Ro())}function Do(e){Lo=e}function q(e,t){if(Lo){Lo(e,t);return}console.error(`[Voodoo] error in ${t}:`,e)}function Y(e,...t){console.warn(`[Voodoo] ${e}`,...t)}function Os(){Po.push(yt),yt=!1}function Fs(){Po.push(yt),yt=!0}function No(){var e;yt=(e=Po.pop())!=null?e:!0}function du(){return ge}function Rs(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function ve(e,t){let n=new zt(e,t);t!=null&&t.lazy||n.run();let r=(()=>n.run());return r.effect=n,r}function Ut(e){e instanceof zt?e.stop():e.effect.stop()}function Oo(e=!1){return new Re(e)}function pu(){return nt}function Ie(e,t){if(!yt||!ge)return;let n=Ao.get(e);n||Ao.set(e,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(ge)||(r.add(ge),ge.deps.push(r))}function Ke(e,t,n,r){let o=Ao.get(e);if(!o)return;let i=new Set,s=a=>{if(a)for(let l of a)(l!==ge||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?So(n)&&s(o.get("length")):s(o.get(vt));else if(t==="delete")a||s(o.get(vt));else if(a&&n==="length"){let l=Number(r);o.forEach((c,u)=>{(u==="length"||typeof u!="symbol"&&Number(u)>=l)&&s(c)})}}for(let a of i)a.scheduler?a.scheduler():cr(a)}function So(e){return typeof e=="string"&&e!=="NaN"&&e[0]!=="-"&&String(parseInt(e,10))===e}function rt(e){return e!==null&&typeof e=="object"}function gu(e){if(!rt(e)||e[Is]||Object.isFrozen(e)||typeof Node!="undefined"&&e instanceof Node)return!1;let t=Object.prototype.toString.call(e).slice(8,-1);return mu.has(t)?!1:t==="Object"||t==="Array"||t==="Map"||t==="Set"}function kn(e){return Object.defineProperty(e,Is,{value:!0,enumerable:!1,configurable:!0}),e}function ie(e){let t=e&&e[Fo];return t?ie(t):e}function Io(e){return!!(e&&e[$o])}function V(e){if(!rt(e)||Io(e)||!gu(e))return e;let t=Hs.get(e);if(t)return t;let n=e instanceof Map||e instanceof Set,r=new Proxy(e,n?hu:vu);return Hs.set(e,r),r}function Ln(e,t){return!Object.is(e,t)}function ht(e){return!!(e&&e.__v_isRef===!0)}function Ps(e){return rt(e)?V(e):e}function js(e){!yt||!ge||e.dep.has(ge)||(e.dep.add(ge),ge.deps.push(e.dep))}function Bs(e){for(let t of[...e.dep])t.scheduler?t.scheduler():cr(t)}function Te(e){return new lr(e)}function jo(e){return new lr(e,!0)}function Bo(e){return ht(e)?e.value:e}function wt(e){let t=typeof e=="function",n=t?e:e.get,r=t?void 0:e.set;return new Mo(n,r)}function he(e,t,n={}){let{immediate:r=!1,deep:o=!1,flush:i="pre"}=n,s;if(ht(e)?s=()=>e.value:typeof e=="function"?s=e:Io(e)?s=()=>qt(e):s=()=>e,o){let p=s;s=()=>qt(p())}let a,l,c=p=>{l=p},u=()=>{if(!f.effect.active)return;let p=f();(o||Ln(p,a))&&(l==null||l(),l=void 0,t(p,a,c),a=p)},f=i==="pre"?ve(s,{lazy:!0,scheduler:()=>fe(u)}):ve(s,{lazy:!0,scheduler:i==="sync"?u:i==="post"?()=>fe(u):()=>cr(f.effect)});return a=f(),r&&t(a,void 0,c),()=>f.effect.stop()}function qo(e){let t,n=o=>{t=o},r=ve(()=>{t==null||t(),t=void 0,e(n)});return()=>{t==null||t(),r.effect.stop()}}function qt(e,t=new Set){if(!rt(e)||t.has(e))return e;if(t.add(e),ht(e))qt(e.value,t);else if(Array.isArray(e))for(let n of e)qt(n,t);else if(e instanceof Set||e instanceof Map)e.forEach(n=>qt(n,t));else for(let n of Object.keys(e))qt(e[n],t);return e}var Co,Bt,ir,sr,Tn,ar,uu,Lo,ge,yt,Po,fu,zt,nt,Re,vt,Ao,$s,Fo,$o,Is,Hs,Ds,mu,vu,hu,lr,Mo,X=ko(()=>{"use strict";Co=Promise.resolve(),Bt=[],ir=[],sr=!1,Tn=!1,ar=null,uu=100;Lo=null;yt=!0,Po=[];fu=0,zt=class{constructor(t,n){var o;this.fn=t,this.id=fu++,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:nt;r&&r.effects.push(this)}run(){if(!this.active)return this.fn();let t=ge;for(;t;){if(t===this)return;t=t.parent}this.runCleanups();try{return this.parent=ge,ge=this,Fs(),Rs(this),this.fn()}finally{No(),ge=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){q(r,"effect cleanup")}}stop(){var t;this.active&&(Rs(this),this.runCleanups(),this.active=!1,(t=this.onStop)==null||t.call(this))}};Re=class{constructor(t=!1){this.effects=[],this.cleanups=[],this.children=[],this.active=!0,this.parent=void 0,!t&&nt&&(this.parent=nt,nt.children.push(this))}run(t){if(!this.active)return;let n=nt;try{return nt=this,t()}finally{nt=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){q(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)}}}};vt=Symbol("voodoo:iterate"),Ao=new WeakMap;$s=(o=>(o.SET="set",o.ADD="add",o.DELETE="delete",o.CLEAR="clear",o))($s||{});Fo=Symbol("voodoo:raw"),$o=Symbol("voodoo:isReactive"),Is=Symbol("voodoo:skip"),Hs=new WeakMap,Ds=(()=>{let e={};for(let t of["includes","indexOf","lastIndexOf"])e[t]=function(...n){let r=ie(this);for(let i=0;i<r.length;i++)Ie(r,String(i));let o=r[t].apply(r,n);return o===-1||o===!1?r[t].apply(r,n.map(ie)):o};for(let t of["push","pop","shift","unshift","splice"])e[t]=function(...n){Os();try{return ie(this)[t].apply(this,n)}finally{No()}};return e})();mu=new Set(["Date","RegExp","Promise","Error","File","FileList","Blob","FormData","URL","URLSearchParams","ArrayBuffer","DataView"]);vu={get(e,t,n){if(t===Fo)return e;if(t===$o)return!0;let r=Array.isArray(e);if(r&&Object.prototype.hasOwnProperty.call(Ds,t))return Reflect.get(Ds,t,n);let o=Reflect.get(e,t,n);return typeof t=="symbol"?o:(Ie(e,t),ht(o)?r&&So(t)?o:o.value:rt(o)?V(o):o)},set(e,t,n,r){let o=e[t];if(n=ie(n),!Array.isArray(e)&&ht(o)&&!ht(n))return o.value=n,!0;let i=Array.isArray(e)&&So(t)?Number(t)<e.length:Object.prototype.hasOwnProperty.call(e,t),s=Reflect.set(e,t,n,r);return e===ie(r)&&(i?Ln(n,o)&&Ke(e,"set",t,n):Ke(e,"add",t,n)),s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Ke(e,"delete",t),r},has(e,t){let n=Reflect.has(e,t);return typeof t!="symbol"&&Ie(e,t),n},ownKeys(e){return Ie(e,Array.isArray(e)?"length":vt),Reflect.ownKeys(e)}},hu={get(e,t,n){if(t===Fo)return e;if(t===$o)return!0;let r=e;if(t==="size")return Ie(r,vt),Reflect.get(r,"size",r);let o={get(s){Ie(r,s);let a=r.get(s);return rt(a)?V(a):a},has(s){return Ie(r,s),r.has(s)},add(s){s=ie(s);let a=r.has(s);return r.add(s),a||Ke(r,"add",s,s),n},set(s,a){let l=r.has(s),c=r.get(s);return r.set(s,ie(a)),l?Ln(a,c)&&Ke(r,"set",s,a):Ke(r,"add",s,a),n},delete(s){let a=r.has(s),l=r.delete(s);return a&&Ke(r,"delete",s),l},clear(){let s=r.size!==0,a=r.clear();return s&&Ke(r,"clear"),a},forEach(s,a){return Ie(r,vt),r.forEach((l,c)=>{s.call(a,rt(l)?V(l):l,rt(c)?V(c):c,n)})}};if(t in o)return o[t];if(t===Symbol.iterator||t==="keys"||t==="values"||t==="entries"){Ie(r,vt);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}};lr=class{constructor(t,n=!1){S(this,"shallow",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_rawValue");S(this,"dep",new Set);this._rawValue=ie(t),this._value=n?t:Ps(t)}get value(){return js(this),this._value}set value(t){let n=ie(t);Ln(n,this._rawValue)&&(this._rawValue=n,this._value=this.shallow?t:Ps(t),Bs(this))}};Mo=class{constructor(t,n){S(this,"setter",n);S(this,"__v_isRef",!0);S(this,"_value");S(this,"_dirty",!0);S(this,"effect");S(this,"dep",new Set);this.effect=new zt(t,{scheduler:()=>{this._dirty||(this._dirty=!0,Bs(this))}})}get value(){return js(this),this._dirty&&(this._dirty=!1,this._value=this.effect.run()),this._value}set value(t){this.setter?this.setter(t):Y("computed is read-only when there is no setter.")}stop(){this.effect.stop()}}});function b(e,t,n={}){var r,o;Ge.set(e,{name:e,setup:t,priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Et(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function pr(e,t,n){na.has(t)||(na.add(t),typeof t=="function"?t(e,n):t.install(e,n))}var E,Ge,P,ce,na,ee=ko(()=>{"use strict";E={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},Ge=new Map,P={IGNORE:100,FOR:90,IF:80,DATA:70,COMPONENT:65,REF:60,BIND:45,MODEL:40,DEFAULT:0,INIT:-10,TRANSITION:-20};ce=new Map;na=new Set});var Ga={};or(Ga,{BASE_TOKENS:()=>Qa,ensureTokens:()=>se,injectStyle:()=>Q});function Q(e,t){if(typeof document=="undefined"||!E.injectStyles||Ya.has(e))return;Ya.add(e);let n=document.createElement("style");n.setAttribute("data-voodoo",e),n.textContent=t,document.head.appendChild(n)}function se(){Q("tokens",Qa)}var Ya,Qa,Ee=ko(()=>{"use strict";ee();Ya=new Set;Qa=`
|
|
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 um={};or(um,{default:()=>cm});X();var z=class extends Error{constructor(n,r,o){let i=`${r}
|
|
51
51
|
${" ".repeat(Math.max(0,o))}^`;super(`${n}
|
|
52
52
|
|
|
53
|
-
${i}`);S(this,"source",r);S(this,"position",o);this.name="VoodooSyntaxError"}},
|
|
54
|
-
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function
|
|
53
|
+
${i}`);S(this,"source",r);S(this,"position",o);this.name="VoodooSyntaxError"}},yu=[">>>=","===","!==","**=","...",">>>","<<=",">>=","&&=","||=","??=","?.","=>","==","!=","<=",">=","&&","||","??","**","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<",">>","+","-","*","/","%","!","<",">","=","&","|","^","~","(",")","[","]","{","}",",",".","?",":",";"],bu=/[A-Za-z_$À-]/,wu=/[A-Za-z0-9_$À-]/;function Eu(e){return bu.test(e)}function xu(e){return wu.test(e)}function ur(e){return e>="0"&&e<="9"}var zs={n:`
|
|
54
|
+
`,t:" ",r:"\r",b:"\b",f:"\f",v:"\v",0:"\0"};function dr(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 z("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(cr(s)||s==="."&&cr(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&&cr(e[n]);)c+=e[n++]}let u=Number(c.replace(/_/g,""));if(Number.isNaN(u))throw new z("Invalid number",e,a);t.push({type:"num",value:c,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new z("Unclosed Unicode escape",e,a);let f=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new z(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new z("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new z("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=3}else c+=(o=js[u])!=null?o:u,n++}else c+=e[n++];if(n>=r)throw new z("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];d+=(i=js[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(d),d="",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 v=m;for(p+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new z("Unclosed template interpolation",e,a);n++,u.push(p);continue}d+=e[n++]}if(n>=r)throw new z("Unclosed template literal",e,a);n++,c.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:u},start:a,end:n});continue}if(yu(s)){let c="";for(;n<r&&bu(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of gu)if(e.startsWith(c,n)){if(c==="?."&&cr(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 z(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Bs={"??":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},wu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),Eu=new Set(["!","-","+","~","typeof","void","delete"]),qs=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),zs=1200,Us=32,qo=0,zo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(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 z(`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>zs){let t=this.peek();throw new z(`Expression too deeply nested (limit of ${zs} 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"&&wu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new z("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 z("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 z("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 z("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 z("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 z("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 Bs||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Bs[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")&&Eu.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 z("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 z("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 z("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(qo>=Us)throw new z(`Template literal too deeply nested (limit of ${Us} levels)`,this.source,t.start);qo++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>He(r))}}finally{qo--}}if(t.type==="ident")return t.value in qs?(this.next(),{t:"lit",v:qs[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 z("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 z(`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 z("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}}},_t=new Map,_s=2e3;function He(e){let t=_t.get(e);if(t)return t;let n=new zo(ur(e),e).parseProgram();return _t.size>=_s&&xu(),_t.set(e,n),n}function xu(){let e=Math.floor(_s/2),t=0;for(let n of _t.keys())if(_t.delete(n),++t>=e)break}function Vs(){_t.clear()}var Gs,Tu=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(Gs=Object.hasOwn)!=null?Gs:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),ku=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"]),pe={Math,JSON,Date,Number,String,Boolean,Array,Object:Tu,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console},Z=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 z("Unclosed block comment",e,n);n=c+2;continue}let a=n;if(ur(s)||s==="."&&ur(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&&ur(e[n]);)c+=e[n++]}let u=Number(c.replace(/_/g,""));if(Number.isNaN(u))throw new z("Invalid number",e,a);t.push({type:"num",value:c,parsed:u,start:a,end:n});continue}if(s==='"'||s==="'"){n++;let c="";for(;n<r&&e[n]!==s;)if(e[n]==="\\"){n++;let u=e[n];if(u==="u")if(e[n+1]==="{"){let d=e.indexOf("}",n);if(d===-1)throw new z("Unclosed Unicode escape",e,a);let f=e.slice(n+2,d);if(!/^[0-9a-fA-F]+$/.test(f)||parseInt(f,16)>1114111)throw new z(`Invalid Unicode escape "\\u{${f}}"`,e,n-1);c+=String.fromCodePoint(parseInt(f,16)),n=d+1}else{let d=e.slice(n+1,n+5);if(!/^[0-9a-fA-F]{4}$/.test(d))throw new z("Invalid Unicode escape: \\u needs 4 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=5}else if(u==="x"){let d=e.slice(n+1,n+3);if(!/^[0-9a-fA-F]{2}$/.test(d))throw new z("Invalid hexadecimal escape: \\x needs 2 hexadecimal digits",e,n-1);c+=String.fromCharCode(parseInt(d,16)),n+=3}else c+=(o=zs[u])!=null?o:u,n++}else c+=e[n++];if(n>=r)throw new z("Unclosed string",e,a);n++,t.push({type:"str",value:c,parsed:c,start:a,end:n});continue}if(s==="`"){n++;let c=[],u=[],d="";for(;n<r&&e[n]!=="`";){if(e[n]==="\\"){let f=e[n+1];d+=(i=zs[f])!=null?i:f,n+=2;continue}if(e[n]==="$"&&e[n+1]==="{"){c.push(d),d="",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 v=m;for(p+=e[n++];n<r&&e[n]!==v;)e[n]==="\\"&&(p+=e[n++]),p+=e[n++]}p+=e[n++]}if(f!==0)throw new z("Unclosed template interpolation",e,a);n++,u.push(p);continue}d+=e[n++]}if(n>=r)throw new z("Unclosed template literal",e,a);n++,c.push(d),t.push({type:"tpl",value:e.slice(a,n),tpl:{quasis:c,exprs:u},start:a,end:n});continue}if(Eu(s)){let c="";for(;n<r&&xu(e[n]);)c+=e[n++];t.push({type:"ident",value:c,start:a,end:n});continue}let l;for(let c of yu)if(e.startsWith(c,n)){if(c==="?."&&ur(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 z(`Unexpected character "${s}"`,e,n)}return t.push({type:"eof",value:"",start:r,end:r}),t}var Us={"??":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},Tu=new Set(["=","+=","-=","*=","/=","%=","**=","&&=","||=","??="]),ku=new Set(["!","-","+","~","typeof","void","delete"]),_s=Object.assign(Object.create(null),{true:!0,false:!1,null:null,undefined:void 0}),Vs=1200,Ws=32,zo=0,Uo=class{constructor(t,n){S(this,"tokens",t);S(this,"source",n);S(this,"pos",0);S(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 z(`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>Vs){let t=this.peek();throw new z(`Expression too deeply nested (limit of ${Vs} 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"&&Tu.has(n.value)){if(t.t!=="id"&&t.t!=="member")throw new z("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 z("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 z("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 z("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 z("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 z("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 Us||r.type==="ident"&&(o==="in"||o==="instanceof")))break;let s=Us[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")&&ku.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 z("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 z("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 z("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(zo>=Ws)throw new z(`Template literal too deeply nested (limit of ${Ws} levels)`,this.source,t.start);zo++;try{return{t:"tpl",quasis:n.quasis,exprs:n.exprs.map(r=>He(r))}}finally{zo--}}if(t.type==="ident")return t.value in _s?(this.next(),{t:"lit",v:_s[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 z("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 z(`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 z("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}}},_t=new Map,Ks=2e3;function He(e){let t=_t.get(e);if(t)return t;let n=new Uo(dr(e),e).parseProgram();return _t.size>=Ks&&Lu(),_t.set(e,n),n}function Lu(){let e=Math.floor(Ks/2),t=0;for(let n of _t.keys())if(_t.delete(n),++t>=e)break}function Ys(){_t.clear()}var ea,Au=Object.freeze({keys:Object.keys,values:Object.values,entries:Object.entries,fromEntries:Object.fromEntries,assign:Object.assign,is:Object.is,hasOwn:(ea=Object.hasOwn)!=null?ea:((e,t)=>Object.prototype.hasOwnProperty.call(e,t))}),Su=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 Qs(e){return function(t,n,...r){if(typeof t!="function")throw new J(`${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 fr(e){return function(...t){let n=globalThis[e];return n(...t)}}var pe={Math,JSON,Date,Number,String,Boolean,Array,Object:Au,Intl,RegExp,Promise,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,console,...typeof setTimeout!="undefined"?{setTimeout:Qs("setTimeout"),setInterval:Qs("setInterval"),clearTimeout:fr("clearTimeout"),clearInterval:fr("clearInterval")}:{},...typeof requestAnimationFrame!="undefined"?{requestAnimationFrame:fr("requestAnimationFrame"),cancelAnimationFrame:fr("cancelAnimationFrame")}:{}},J=class extends Error{constructor(n,r){super(r?`${n}
|
|
57
57
|
|
|
58
|
-
Expression: ${r}`:n);S(this,"expression",r);this.name="VoodooRuntimeError"}},
|
|
58
|
+
Expression: ${r}`:n);S(this,"expression",r);this.name="VoodooRuntimeError"}},Vo=Symbol("spread"),An=class{constructor(t){S(this,"value",t)}};function Gs(e){return e instanceof An?e.value:e}var Mu=new Set(["__proto__","constructor","prototype"]);function ta(e){return typeof e=="string"&&Mu.has(e)}function Ye(e,t){if(ta(e))throw new J(`Access blocked to "${String(e)}": template expressions cannot reach the prototype chain. Expose a method in state instead.`,t);return e}function M(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+=Qe(M(e.exprs[i],t)),o+=(r=e.quasis[i+1])!=null?r:"";return o}case"id":{Ye(e.n);let o=t.lookup(e.n);return o?o[e.n]:e.n in pe?pe[e.n]:void 0}case"member":{let o=M(e.o,t);if(o==null){if(e.opt)return;throw new J(`Could not read "${_o(e,t)}" from ${o===null?"null":"undefined"}`)}let i=Ye(e.computed?M(e.p,t):e.p.v);return o[i]}case"new":{let o=M(e.callee,t);if(typeof o!="function")throw new J(`Cannot construct ${Qe(o)}: it is not a constructor`);if(o===Function)throw new J("Cannot construct Function: expressions never compile code");let i=Js(e.args,t);return Reflect.construct(o,i)}case"call":{let o,i;if(e.callee.t==="member"){let s=M(e.callee.o,t);if(s==null){if(e.callee.opt||e.opt)return;throw new J(`Could not call "${_o(e.callee,t)}" from ${s===null?"null":"undefined"}`)}let a=Ye(e.callee.computed?M(e.callee.p,t):e.callee.p.v);o=s,i=s[a]}else if(e.callee.t==="id"){Ye(e.callee.n);let s=t.lookup(e.callee.n);s?(o=s,i=s[e.callee.n]):i=pe[e.callee.n]}else i=M(e.callee,t);if(i==null&&e.opt)return;if(typeof i!="function"){let s=e.callee.t==="id"?e.callee.n:_o(e.callee,t);throw e.callee.t==="id"&&!t.lookup(s)&&!(s in pe)?Su.has(s)?new J(`"${s}" is blocked. Expressions run in a sandbox without access to it.`):new J(`"${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 J(`"${s}" is not a function`)}return i.apply(o,Js(e.args,t))}case"unary":{if(e.op==="...")return{[Vo]:M(e.a,t)};if(e.op==="delete"){if(e.a.t!=="member")throw new J("delete needs a property, as in `delete user.name` or `delete list[0]`");let i=M(e.a.o,t);if(i==null)return!0;let s=Ye(e.a.computed?M(e.a.p,t):e.a.p.v);return delete i[s]}if(e.op==="typeof"){if(e.a.t==="id"){if(ta(e.a.n))return"undefined";let i=t.lookup(e.a.n);return typeof(i?i[e.a.n]:pe[e.a.n])}return typeof M(e.a,t)}let o=M(e.a,t);switch(e.op){case"!":return!o;case"-":return-o;case"+":return+o;case"~":return~o;case"void":return}throw new J(`Unsupported unary operator: ${e.op}`)}case"update":{let o=Number(M(e.a,t)),i=e.op==="++"?o+1:o-1;return Zs(e.a,i,t),e.prefix?i:o}case"bin":{let o=M(e.l,t),i=M(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 J(`Unsupported operator: ${e.op}`)}case"logic":{let o=M(e.l,t);return e.op==="&&"?o&&M(e.r,t):e.op==="||"?o||M(e.r,t):o!=null?o:M(e.r,t)}case"cond":return M(e.test,t)?M(e.cons,t):M(e.alt,t);case"assign":{let o;if(e.op==="=")o=M(e.value,t);else if(e.op==="&&="||e.op==="||="||e.op==="??="){let i=M(e.target,t);if(!(e.op==="&&="?!!i:e.op==="||="?!i:i==null))return i;o=M(e.value,t)}else{let i=M(e.target,t),s=M(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 J(`Unsupported assignment: ${e.op}`)}}return Zs(e.target,o,t),o}case"if":return M(e.test,t)?M(e.cons,t):e.alt?M(e.alt,t):void 0;case"method":{let o=e.params,i=e.body;return function(...s){let a=Xs(o,s,t),l=this,c=l!==null&&typeof l=="object"?t.child(l):t;return Gs(M(i,c.child(a)))}}case"arrow":{let o=e.params,i=e.body;return(...s)=>Gs(M(i,t.child(Xs(o,s,t))))}case"obj":{let o={};for(let i of e.props)if(i.spread)Object.assign(o,M(i.spread,t));else{let s=Ye(i.key!==null?i.key:String(M(i.keyExpr,t)));if(i.getter){let a=M(i.value,t);Object.defineProperty(o,s,{enumerable:!0,configurable:!0,get(){return a.call(this)}});continue}o[s]=M(i.value,t)}return o}case"arr":{let o=[];for(let i of e.els)i&&typeof i=="object"&&"spread"in i?o.push(...M(i.spread,t)):o.push(M(i,t));return o}case"return":return new An(e.a?M(e.a,t):void 0);case"seq":{let o;for(let i of e.body)if(o=M(i,t),o instanceof An)return o;return o}}throw new J(`Unknown node: ${e.t}`)}function Wo(e,t,n,r){if(e.kind==="rest"){n[e.name]=t;return}if(e.def!==void 0&&t===void 0&&(t=M(e.def,r.child(n))),e.kind==="id"){n[e.name]=t;return}if(e.kind==="obj"){if(t==null)throw new J(`Cannot destructure ${t===null?"null":"undefined"}`);let i=new Set;for(let{key:s,value:a}of e.props)i.add(s),Wo(a,t[Ye(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&&Wo(i,o[s],n,r)}),e.rest&&(n[e.rest]=o.slice(e.elements.length))}function Xs(e,t,n){let r={};for(let o=0;o<e.length;o++){let i=e[o];Wo(i,i.kind==="rest"?t.slice(o):t[o],r,n)}return r}function Js(e,t){let n=[];for(let r of e){let o=M(r,t);o&&typeof o=="object"&&Vo in o?n.push(...o[Vo]):n.push(o)}return n}function Zs(e,t,n){if(e.t==="id"){Ye(e.n),n.set(e.n,t);return}if(e.t==="member"){let r=M(e.o,n);if(r==null)throw new J("Could not write to null or undefined");let o=Ye(e.computed?M(e.p,n):e.p.v);r[o]=t;return}throw new J("Invalid assignment target")}function _o(e,t){return e.t==="member"?e.computed?String(M(e.p,t)):String(e.p.v):e.t==="id"?e.n:"value"}function Qe(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)}ee();X();var Sn=new Map;function H(e,t){Sn.set(e.startsWith("$")?e:`$${e}`,t)}var Ko=new Map;function Vt(e,t){Ko.set(e,t)}var xt=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&&Sn.has(t))return this.magicContainer(t,Sn);if(Ko.has(t))return this.magicContainer(t,Ko)}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(V(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}},je=new xt(V({}));X();ee();ee();function Be(){return E.devtools===!0}function Xe(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 Tt(e){Be()&&console.warn(`[Voodoo] ${e}`)}var ra=new Set;function Mn(e,t){Be()&&(ra.has(e)||(ra.add(e),console.warn(`[Voodoo] ${t}`)))}var Cu=new Set(["confirm-title","confirm-label","confirm-cancel","hold-duration"]);function oa(e,t,n){Be()&&(Cu.has(n)||Mn(`unknown-directive:${n}`,`unknown directive "${t}" at ${Xe(e)}. No directive named "${n}" was registered. Check the spelling or register with V.directive("${n}", ...).`))}function ia(e,t){Mn(`unknown-component:${t}`,`component "${t}" not registered at ${Xe(e)}. Register with V.component("${t}", { ... }) before using the tag, or remove the attribute to leave the element as plain HTML.`)}function Yo(e,t,n,r){if(!Be())return;let o=r instanceof Error?r.message.split(`
|
|
59
59
|
`)[0]:String(r);Tt(`invalid expression in ${t}="${n}" on element ${Xe(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 na(e,t,n){Be()&&Tt(`duplicate key "${String(t)}" in v-for="${n}" on element ${Xe(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 ra(e,t,n){Be()&&Tt(`required prop "${n}" missing from component "${t}" at ${Xe(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Yo(e,t){Mn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var Lt=new WeakMap,pr=new WeakMap,Je=new WeakSet,Qo=new WeakMap;function Zo(e){return Je.has(e)}function ei(e){Je.add(e)}function Yt(e){return Lt.get(e)}function De(e){let t=e;for(;t;){let n=Lt.get(t);if(n)return n;t=t.parentNode}return je}function ca(e,t){let n=Qo.get(e);n||Qo.set(e,n=[]),n.push(t)}var Go=new WeakSet;function ti(e){Go.add(e),e.remove()}function ke(e,t){let n=pr.get(e);n||pr.set(e,n=[]),n.push(t)}function U(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)U(n[r])}let t=pr.get(e);if(t){pr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){q(r,"cleanup")}}e.nodeType===1&&Du(e),Lt.delete(e),Qo.delete(e),Je.delete(e)}var fr=new Map,Su=4e3;function Kt(e,t){let n=`${e}\0${t}`,r=fr.get(n);if(r!==void 0)return r;let o=Mu(e,t);return fr.size>=Su&&fr.clear(),fr.set(n,o),o}function Mu(e,t){let n=E.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 u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!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 Cu(e){let t=[],n=At.get(e);if(n&&n.size)for(let[r,o]of n){let i=Kt(r,o);i&&(t.push(i),ia(e,i.name))}else{let r=ua(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Hu(i))continue;let s=Kt(i,e.getAttribute(i));s&&(t.push(s),ia(e,s.name))}}return t.length<2?t:t.sort((r,o)=>oa(o)-oa(r))}var Ru=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ua(e){return Ru?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Hu(e){return ri(e)||e.charCodeAt(0)===46&&e.length>1}function oa(e){var t,n;return(n=(t=Ge.get(e.name))==null?void 0:t.priority)!=null?n:0}var Cn=new Map,mr=new WeakMap;function ia(e,t){let n=Cn.get(t);n||Cn.set(t,n=new Set),n.add(e);let r=mr.get(e);r||mr.set(e,r=new Set),r.add(t)}function Du(e){var n;let t=mr.get(e);if(t){for(let r of t)(n=Cn.get(r))==null||n.delete(e);mr.delete(e)}}function ni(e,t){var n;return(n=Cn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function gr(e,t){let n=[],r=Cn.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(`[${E.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 Qt(e,t){let n=e;for(;n;){if(ni(n,t))return n;n=n.parentElement}return null}var At=new WeakMap;function ri(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Le(e,t){var r;let n=(r=At.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function ot(e,t){let n=At.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function da(e){let t=At.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];ri(o.name)&&n.set(o.name,o.value)}return n}function Pu(e){if(!E.cleanAttributes)return;let t=ua(e),n=At.get(e);n||At.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];ri(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function fa(e){let t=At.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function pa(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M(He(e),t)}catch(o){Be()&&Ko(r!=null?r:t.el,n!=null?n:"expression",e,o),q(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ma=new WeakSet;function ga(e){ma.add(e)}function sa(e,t,n){let r=Ge.get(t.name);if(!r){Be()&&t.raw.startsWith(E.prefix)&&ea(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Re(!0);ke(e,()=>a.stop()),ca(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let u=kt;kt=e;try{a()}finally{kt=u}};l.run(()=>ve(c,{scope:l}))},cleanup(a){ke(e,a)},walk(a,l){W(a,l)}};try{r.setup(s)}catch(a){q(a,`directive ${t.raw}`)}}var Xo=null;function va(e){Xo=e}var Nu=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(e,t){let n=t!=null?t:De(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let u of c)W(u,n);return}if(e.nodeType===3){ya(e,n);return}if(e.nodeType!==1)return;let r=e;if(Je.has(r))return;let o=r.tagName;if(Nu.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Je.add(r);return}let i=n,s=Cu(r),a=ce.size===0&&Gt.size===0||r.hasAttribute(`${E.prefix}component`)?null:Uu(o);if(s.length===0&&!a){ha(r,i);return}Je.add(r);let l=kt;kt=r;try{$u(r,s,a,i)}finally{kt=l}}var kt=null;function oi(){return kt}function Ou(e,t,n){let r=null;try{r=He(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=O(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=M(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=M(a.value,i)}catch(l){Be()?Ko(n,e,e,l):q(l,"v-data")}return i}function $u(e,t,n,r){let o=r;for(let u of t){let d=Ge.get(u.name);if(d!=null&&d.terminal){sa(e,u,o);return}}let i=t.find(u=>u.name==="data"),s=t.find(u=>u.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&Xo){let u=Xo(e,a,o);u&&(o=u,l=!0,Lt.set(e,o))}else(i||s)&&(o=Ou(i&&i.expression||"{}",o,e),Lt.set(e,o));let c=l?r:o;for(let u of t)u.name==="data"||u.name==="component"||sa(e,u,c);Pu(e),ma.has(e)||ha(e,o)}function ha(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&ya(o,t);for(let o of n)W(o,(r=Lt.get(o))!=null?r:t)}var Fu=500,aa=new Map;function Iu(e){let t=e.trim();if(!t)return!1;let n=aa.get(t);if(n!==void 0)return n;let r=!0;try{r=He(t).t!=="seq"}catch(o){r=!1}return aa.set(t,r),r}function ju(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 Bu(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):ju(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<=Fu)&&Iu(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 qu=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function zu(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=He(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 pe):!1}function ya(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Je.has(e))return;let r=e.parentElement;for(;r;){if(qu.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Bu(n);if(!o.some(s=>s.expression))return;Je.add(e);let i=new Re(!0);ke(e,()=>i.stop()),ca(e,i),i.run(()=>ve(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=O(a.expression,t,"interpolation");s+=zu(a,l,t)?a.raw:Qe(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function it(e,t){Lt.set(e,t)}function Uu(e){let t=e.toLowerCase();if(ce.has(t))return t;let n=Gt.get(t);return n!=null?n:null}var Gt=new Map;var Jo=!1,Wt=null,_u=[];function la(e,t){for(let n of _u)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function ba(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),la(t,!1),W(t,je),la(t,!0),Jo||(Jo=!0,E.autoDiscover&&Vu(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Vu(e){typeof MutationObserver!="undefined"&&(Wt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Go.has(o)){Go.delete(o);continue}o.nodeType===1&&!o.isConnected&&U(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Je.has(o)||W(o,De(o.parentNode)))}}}),Wt.observe(e,{childList:!0,subtree:!0}))}function wa(){Wt==null||Wt.disconnect(),Wt=null,Jo=!1}function Ea(e){W(e!=null?e:document.body,e?De(e.parentNode):je)}X();ee();var hr=new Set,xa=new Set;function Jt(e,t){let n=Et(e);ce.set(n,t),Gt.set(n.replace(/-/g,""),n),Wu(n)}function Wu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.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=Yt(s))!=null&&r.component||Ku(s))continue;let a=De(s.parentNode);Zo(s)&&(U(s),fa(s)),W(s,a)}}}function Ku(e){let t=e.parentElement;for(;t&&t!==document.body;){if(pa(t)&&!Zo(t))return!0;t=t.parentElement}return!1}function Yu(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 Qu(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 ii(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Gu(e,t,n,r,o){var c;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(Et(u),u),a.set(ii(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let l=Array.from(e.attributes);for(let u of l){let d=Kt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let p=(c=a.get(d.arg.toLowerCase()))!=null?c:ii(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>ve(()=>{i[p]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let f=a.get(u.name.toLowerCase());f?i[f]=Yu(u.value,t[f]):s.length||(i[ii(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&ra(e,o,u);return i}function Xu(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 u=(c=o.get(a))!=null?c:[];u.push(s),o.set(a,u)}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 u of l)c.appendChild(u);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(u=>{u.nodeType===1&&Ju(u,n)}),s.replaceWith(c)}}var vr=null;function Ta(e){vr=e}function Ju(e,t){vr==null||vr(e,t)}function ka(e,t,n){var x,C,N,R,le,B,xe,te;let r=t?Et(t):"",o=r?(N=(C=ce.get(r))!=null?C:ce.get((x=Gt.get(r))!=null?x:""))!=null?N:{}:{};r&&!ce.has(r)&&!Gt.has(r)&&ta(e,t);let i=new Re(!0),s=Qu(o),a=Gu(e,s,n,i,r||"inline");!o.state&&o.data&&Yo("data()","state()"),o.destroyed&&Yo("destroyed()","unmounted()");let l=(R=o.state)!=null?R:o.data,c={},u={},d=o.inheritScope?n:n.root,f=new xt({},d,e);f.component=u;try{c=l?(le=l.call(u,a))!=null?le:{}:{}}catch(A){q(A,`state() of component "${t}"`)}let p=e.getAttribute(`${E.prefix}data`);if(p){let A=O(p,n,"v-data");A&&typeof A=="object"&&Object.assign(c,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(f.provides={...A})}catch(A){q(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,F])=>[L,F!=null?F:{}]);for(let[L,F]of A){let gt=(B=F.from)!=null?B:L,xo=n.inject(gt,F.default);L in c||(c[L]=xo)}}let m=V(c),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wt(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...F)=>L.apply(u,F);for(let[A,L]of Object.entries(o))typeof L=="function"&&(Zu.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...F)=>L.apply(u,F)));let h=(A,L)=>{let F=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});F.__voodoo=!0,e.dispatchEvent(F)},y={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(te=(xe=n.owner)==null?void 0:xe.component)!=null?te:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(X(),Is)).then(L=>L.nextTick(A)),$watch:(A,L)=>he(()=>O(A,f),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?f.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,F){return typeof L=="symbol"?!0:L in v?(v[L].value=F,!0):L in a?(a[L]=F,!0):(m[L]=F,!0)},has(A,L){if(typeof L=="symbol")return!1;let F=L;return F==="$refs"||F in y||F in v||F in g||F in a||F in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(f.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>he(()=>T[A],(F,gt)=>L.call(T,F,gt)));if(o.style&&!xa.has(r)){xa.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Xt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,Xu(e,A,n)}return hr.add(T),fe(()=>{Xt(o,T,"mounted"),o.updated&&i.run(()=>ve(()=>{for(let A of Object.keys(m))m[A];Xt(o,T,"updated")}))}),ke(e,()=>{Xt(o,T,"beforeUnmount"),i.stop(),hr.delete(T),Xt(o,T,"unmounted"),Xt(o,T,"destroyed")}),f}var Zu=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Xt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){q(o,`hook ${n}`)}}X();ee();var Zt=[],si=null,yr=0,La=-1,li=0,ai=!1;function Aa(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function ed(){if(si||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(si=new MutationObserver(()=>{yr++}),si.observe(e,{childList:!0,subtree:!0}))}function Sa(){if(ai)return;ai=!0;let e=()=>{ai=!1,td()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function td(){var t;yr===La?li++:li=0,La=yr;let e=Aa();for(let n=Zt.length-1;n>=0;n--){let r=Zt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Zt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Zt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Zt.length&&Sa()}function ci(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}ed(),Zt.push({...e,since:Aa()}),Sa()}function Ma(){return typeof document=="undefined"||!document.body?!1:li>=2}function nd(){return typeof document=="undefined"||!document.body?!1:yr===0}function br(e){typeof document!="undefined"&&ci({ready:()=>Ma()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Ca(e){if(typeof document!="undefined"){if(nd()){Promise.resolve().then(e);return}ci({ready:()=>Ma()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function wr(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ci({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var rd=0,Er=null;function Ra(e){Er=e}function Ha(e={}){let t=`voodoo-app-${++rd}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=Et(m);ce.has(g)||(Jt(g,v),s.push(g))}}function f(m){var g,h;if(c)return c;a=m,l=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Jt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,je)}catch(y){return q(y,`application mounting "${t}"`),null}if(c=(h=(g=Yt(m))==null?void 0:g.component)!=null?h:null,c){let y=u;u=[];for(let w of y)w(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,v){var h;let g=Et(m);return v===void 0?(h=n&&n[m])!=null?h:ce.get(g):(n?n[m]=v:e.components={[m]:v},c&&!ce.has(g)&&(Jt(g,v),s.push(g)),p)},directive(m,v){return Er==null||Er(m,v),p},use(m,v){return dr(od(),m,v),p},provide(m,v){return i[m]=v,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let v=null;return wr(m,g=>{v=f(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return c?Promise.resolve(c):new Promise(m=>u.push(m))},unmount(){if(a){U(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=l,ce.delete(t);for(let m of s)ce.delete(m);s.length=0,c=null,a=null}}};return p}var Da=null;function Pa(e){Da=e}function od(){return Da}X();X();var st=new Map,ui=Te(0),di=new Map;function xr(e,t,n={}){let r=st.get(e);if(!t){if(!r){let l=V({});return st.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[u,d]of Object.entries(c))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(l){}let a=V(s);for(let[l,c]of Object.entries(i)){let u=c.value;typeof u=="function"&&(a[l]=(...d)=>u.apply(a,d))}if(st.set(e,a),ui.value++,n.persist&&typeof localStorage!="undefined"){let l=he(a,()=>{try{localStorage.setItem(o,JSON.stringify(id(a)))}catch(c){}},{deep:!0});di.set(e,l)}return a}function id(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var St=new Proxy({},{get:(e,t)=>(ui.value,st.get(t)),has:(e,t)=>(ui.value,st.has(t)),ownKeys:()=>[...st.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Na(e){var t;(t=di.get(e))==null||t(),di.delete(e),st.delete(e)}function Oa(){return[...st.keys()]}var fi={};rr(fi,{capitalize:()=>Fa,chunk:()=>fd,clone:()=>Rn,debounce:()=>we,device:()=>ne,escapeHtml:()=>Mt,formatCurrency:()=>Td,formatDate:()=>Ld,formatFileSize:()=>Sd,formatNumber:()=>kd,formatPercent:()=>Md,get:()=>md,groupBy:()=>ud,isBrowser:()=>Tr,matchesMedia:()=>en,memoize:()=>cd,merge:()=>$a,once:()=>ld,parseDuration:()=>_,random:()=>vd,relativeTime:()=>Ad,sample:()=>hd,set:()=>gd,setFormatDefaults:()=>xd,sleep:()=>ad,slugify:()=>yd,sortBy:()=>pd,stripTags:()=>Ed,throttle:()=>Hn,titleCase:()=>wd,truncate:()=>bd,uid:()=>ue,unique:()=>dd,uuid:()=>sd});function sd(){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 ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function ad(e){return new Promise(t=>setTimeout(t,e))}function _(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 we(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 Hn(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 ld(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function cd(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 Rn(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=>Rn(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Rn(r)]));if(e instanceof Set)return new Set([...e].map(n=>Rn(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Rn(r);return t}function $a(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]=$a({...i},o):e[r]=o}return e}function ud(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 dd(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 fd(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 pd(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 md(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 gd(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 vd(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function hd(e){return e[Math.floor(Math.random()*e.length)]}function yd(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 bd(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 Fa(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function wd(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>Fa(t.toLowerCase()))}function Mt(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ed(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var tn="pt-BR",Ia="BRL";function xd(e,t){e&&(tn=e),t&&(Ia=t)}function Td(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:tn,{style:"currency",currency:(o=t.currency)!=null?o:Ia}).format(n)}function kd(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:tn,o).format(n)}function Ld(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:tn;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 Ad(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:tn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function Sd(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 Md(e,t=0,n){return new Intl.NumberFormat(n!=null?n:tn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var Tr=typeof window!="undefined"&&typeof window.document!="undefined";function en(e){if(!Tr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ne={get touch(){return Tr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return en("(max-width: 767px)")},get tablet(){return en("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return en("(min-width: 1024px)")},get online(){return!Tr||navigator.onLine},get reducedMotion(){return en("(prefers-reduced-motion: reduce)")},get darkMode(){return en("(prefers-color-scheme: dark)")}};var re=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(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}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},kr=[],Lr=[],Dn=[],Pn=new Map;function ja(e){var t;return`${(t=e.method)!=null?t:"GET"} ${rn(e)}`}function Cd(e){if(!e){Pn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Pn.keys()])t(n)&&Pn.delete(n)}var qa="voodoo:offline-queue";function pi(){try{return JSON.parse(localStorage.getItem(qa)||"[]")}catch(e){return[]}}function mi(e){try{localStorage.setItem(qa,JSON.stringify(e))}catch(t){}}function Rd(e){var n,r;if(typeof localStorage=="undefined")return;let t=pi();t.push({url:rn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),mi(t)}async function za(){if(typeof localStorage=="undefined")return 0;let e=pi();if(!e.length)return 0;mi([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await at({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=pi();mi([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{za()});function rn(e){let t=e.url,n=de.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 Ua(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Hd(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 Dd(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 Pd=new Set(["GET","HEAD","OPTIONS"]);function Nd(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Od(e,t,n,r){var o;return Pd.has(e)||t.retryUnsafe===!0||Nd(n)?!0:(((o=t.retry)!=null?o:0)>0&&Mn(`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 at(e){var u,d,f,p,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of kr)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Pn.get(ja(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Rd(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 v=Ua();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Hd(t.body,r),i=rn(t),s=Od(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await Dd(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await Ba(((f=t.retryDelay)!=null?f:500)*2**v);continue}let R=new re(`Request failed with status ${x.status}`,N,t);for(let le of Dn)le(R);throw R}for(let R of Lr)N=await R(N);return t.cache&&n==="GET"&&Pn.set(ja(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof re)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(v<s-1){await Ba(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new re(l,void 0,t,a);for(let v of Dn)v(c);throw c}function Ba(e){return new Promise(t=>setTimeout(t,e))}async function nn(e){return(await at(e)).data}var me={defaults:de,get(e,t={}){return nn({...t,url:e,method:"GET"})},post(e,t,n={}){return nn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return nn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return nn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return nn({...t,url:e,method:"DELETE"})},head(e,t={}){return nn({...t,url:e,method:"HEAD"})},request:at,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=rn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Ua();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(d):o(new re(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new re("Network failure during upload"))),i.addEventListener("abort",()=>o(new re("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(rn({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(rn({url:e,params:n.params}),{headers:{...de.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 u=s.split(`
|
|
62
|
-
`);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}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 sa(e,t,n){Be()&&Tt(`duplicate key "${String(t)}" in v-for="${n}" on element ${Xe(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 aa(e,t,n){Be()&&Tt(`required prop "${n}" missing from component "${t}" at ${Xe(e)}. Pass the value on the tag with ${n}="..." for a fixed value or :${n}="expression" for a state value.`)}function Qo(e,t){Mn(`alias:${e}`,`"${e}" is an alias for "${t}" and still works, but the official name is "${t}". Prefer "${t}" in new code.`)}var Lt=new WeakMap,gr=new WeakMap,Je=new WeakSet,Go=new WeakMap;function ei(e){return Je.has(e)}function ti(e){Je.add(e)}function Yt(e){return Lt.get(e)}function De(e){let t=e;for(;t;){let n=Lt.get(t);if(n)return n;t=t.parentNode}return je}function pa(e,t){let n=Go.get(e);n||Go.set(e,n=[]),n.push(t)}var Xo=new WeakSet;function ni(e){Xo.add(e),e.remove()}function ke(e,t){let n=gr.get(e);n||gr.set(e,n=[]),n.push(t)}function U(e){if(e.nodeType===1){let n=[];for(let r=e.firstChild;r;r=r.nextSibling)(r.nodeType===1||r.nodeType===3)&&n.push(r);for(let r=n.length-1;r>=0;r--)U(n[r])}let t=gr.get(e);if(t){gr.delete(e);for(let n=t.length-1;n>=0;n--)try{t[n]()}catch(r){q(r,"cleanup")}}e.nodeType===1&&Ou(e),Lt.delete(e),Go.delete(e),Je.delete(e)}var mr=new Map,Ru=4e3;function Kt(e,t){let n=`${e}\0${t}`,r=mr.get(n);if(r!==void 0)return r;let o=Hu(e,t);return mr.size>=Ru&&mr.clear(),mr.set(n,o),o}function Hu(e,t){let n=E.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 u of o){let d=u.indexOf("=");d>-1?s[u.slice(0,d)]=u.slice(d+1):s[u]=!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 Du(e){let t=[],n=At.get(e);if(n&&n.size)for(let[r,o]of n){let i=Kt(r,o);i&&(t.push(i),ca(e,i.name))}else{let r=ma(e);for(let o=0;o<r.length;o++){let i=r[o];if(!Nu(i))continue;let s=Kt(i,e.getAttribute(i));s&&(t.push(s),ca(e,s.name))}}return t.length<2?t:t.sort((r,o)=>la(o)-la(r))}var Pu=typeof Element!="undefined"&&!!Element.prototype.getAttributeNames;function ma(e){return Pu?e.getAttributeNames():Array.from(e.attributes,t=>t.name)}function Nu(e){return oi(e)||e.charCodeAt(0)===46&&e.length>1}function la(e){var t,n;return(n=(t=Ge.get(e.name))==null?void 0:t.priority)!=null?n:0}var Cn=new Map,vr=new WeakMap;function ca(e,t){let n=Cn.get(t);n||Cn.set(t,n=new Set),n.add(e);let r=vr.get(e);r||vr.set(e,r=new Set),r.add(t)}function Ou(e){var n;let t=vr.get(e);if(t){for(let r of t)(n=Cn.get(r))==null||n.delete(e);vr.delete(e)}}function ri(e,t){var n;return(n=Cn.get(t))!=null&&n.has(e)?!0:e.hasAttribute(`${E.prefix}${t}`)||e.hasAttribute(`data-v-${t}`)}function hr(e,t){let n=[],r=Cn.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(`[${E.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 Qt(e,t){let n=e;for(;n;){if(ri(n,t))return n;n=n.parentElement}return null}var At=new WeakMap;function oi(e){return e.startsWith(E.prefix)||e.startsWith("data-v-")||e.charCodeAt(0)===64||e.charCodeAt(0)===58&&e.length>1}function Le(e,t){var r;let n=(r=At.get(e))==null?void 0:r.get(t);return n!==void 0?n:e.getAttribute(t)}function ot(e,t){let n=At.get(e);return n!=null&&n.has(t)?!0:e.hasAttribute(t)}function ga(e){let t=At.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];oi(o.name)&&n.set(o.name,o.value)}return n}function Fu(e){if(!E.cleanAttributes)return;let t=ma(e),n=At.get(e);n||At.set(e,n=new Map);for(let r=0;r<t.length;r++){let o=t[r];oi(o)&&(n.set(o,e.getAttribute(o)),e.removeAttribute(o))}}function va(e){let t=At.get(e);if(t){for(let[n,r]of t)if(!e.hasAttribute(n))try{e.setAttribute(n,r)}catch(o){}}}function ha(e){let t=e.attributes;for(let n=0;n<t.length;n++){let r=t[n].name;if(r.startsWith(E.prefix)||r.charCodeAt(0)===64||r.charCodeAt(0)===58||r.startsWith("data-v-"))return!0}return!1}function O(e,t,n,r){if(e)try{return M(He(e),t)}catch(o){Be()&&Yo(r!=null?r:t.el,n!=null?n:"expression",e,o),q(o,n?`${n} ("${e}")`:`expression "${e}"`);return}}var ya=new WeakSet;function ba(e){ya.add(e)}function ua(e,t,n){let r=Ge.get(t.name);if(!r){Be()&&t.raw.startsWith(E.prefix)&&oa(e,t.raw,t.name);return}let o=null,i=()=>{if(!o){let a=o=new Re(!0);ke(e,()=>a.stop()),pa(e,a)}return o},s={el:e,scope:n,expression:t.expression,arg:t.arg,modifiers:t.modifiers,raw:t.raw,evaluate(a){return O(a!=null?a:t.expression,n,t.raw,e)},effect(a){let l=i(),c=()=>{let u=kt;kt=e;try{a()}finally{kt=u}};l.run(()=>ve(c,{scope:l}))},cleanup(a){ke(e,a)},walk(a,l){W(a,l)}};try{r.setup(s)}catch(a){q(a,`directive ${t.raw}`)}}var Jo=null;function wa(e){Jo=e}var $u=new Set(["SCRIPT","STYLE","NOSCRIPT"]);function W(e,t){let n=t!=null?t:De(e.parentNode);if(e.nodeType===11){let c=Array.from(e.childNodes);for(let u of c)W(u,n);return}if(e.nodeType===3){xa(e,n);return}if(e.nodeType!==1)return;let r=e;if(Je.has(r))return;let o=r.tagName;if($u.has(o))return;if(r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)){Je.add(r);return}let i=n,s=Du(r),a=ce.size===0&&Gt.size===0||r.hasAttribute(`${E.prefix}component`)?null:Wu(o);if(s.length===0&&!a){Ea(r,i);return}Je.add(r);let l=kt;kt=r;try{ju(r,s,a,i)}finally{kt=l}}var kt=null;function ii(){return kt}function Iu(e,t,n){let r=null;try{r=He(e)}catch(a){r=null}if(!(r&&r.t==="obj"&&r.props.every(a=>!a.spread&&!a.keyExpr))){let a=O(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=M(a.value,i);Object.defineProperty(i.data,a.key,{enumerable:!0,configurable:!0,get:()=>l.call(i.data)})}else i.data[a.key]=M(a.value,i)}catch(l){Be()?Yo(n,e,e,l):q(l,"v-data")}return i}function ju(e,t,n,r){let o=r;for(let u of t){let d=Ge.get(u.name);if(d!=null&&d.terminal){ua(e,u,o);return}}let i=t.find(u=>u.name==="data"),s=t.find(u=>u.name==="component"),a=s?s.expression||"":n||"",l=!1;if(a&&Jo){let u=Jo(e,a,o);u&&(o=u,l=!0,Lt.set(e,o))}else(i||s)&&(o=Iu(i&&i.expression||"{}",o,e),Lt.set(e,o));let c=l?r:o;for(let u of t)u.name==="data"||u.name==="component"||ua(e,u,c);Fu(e),ya.has(e)||Ea(e,o)}function Ea(e,t){var r;let n=[];for(let o=e.firstChild;o;o=o.nextSibling)o.nodeType===1?n.push(o):o.nodeType===3&&xa(o,t);for(let o of n)W(o,(r=Lt.get(o))!=null?r:t)}var Bu=500,da=new Map;function qu(e){let t=e.trim();if(!t)return!1;let n=da.get(t);if(n!==void 0)return n;let r=!0;try{r=He(t).t!=="seq"}catch(o){r=!1}return da.set(t,r),r}function zu(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 Uu(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):zu(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<=Bu)&&qu(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 _u=new Set(["PRE","CODE","SCRIPT","STYLE","TEXTAREA"]);function Vu(e,t,n){if(e.explicit||e.raw===void 0)return!1;let r;try{r=He(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 pe):!1}function xa(e,t){let n=e.textContent;if(!n||n.indexOf("{")===-1||Je.has(e))return;let r=e.parentElement;for(;r;){if(_u.has(r.tagName)||r.hasAttribute(`${E.prefix}ignore`)||r.hasAttribute(`${E.prefix}pre`)||r.hasAttribute("data-v-ignore")||r.hasAttribute("data-v-pre"))return;r=r.parentElement}let o=Uu(n);if(!o.some(s=>s.expression))return;Je.add(e);let i=new Re(!0);ke(e,()=>i.stop()),pa(e,i),i.run(()=>ve(()=>{let s="";for(let a of o){if(a.text!==void 0){s+=a.text;continue}let l=O(a.expression,t,"interpolation");s+=Vu(a,l,t)?a.raw:Qe(l)}e.textContent!==s&&(e.textContent=s)},{scope:i}))}function it(e,t){Lt.set(e,t)}function Wu(e){let t=e.toLowerCase();if(ce.has(t))return t;let n=Gt.get(t);return n!=null?n:null}var Gt=new Map;var Zo=!1,Wt=null,Ku=[];function fa(e,t){for(let n of Ku)try{n(e,t)}catch(r){console.error("[Voodoo] a start hook failed",r)}}function Ta(e){var n;if(typeof document=="undefined")return;let t=(n=e!=null?e:E.root)!=null?n:document.body;t&&(Object.assign(pe,E.globals),fa(t,!1),W(t,je),fa(t,!0),Zo||(Zo=!0,E.autoDiscover&&Yu(t),document.dispatchEvent(new CustomEvent("voodoo:ready",{detail:{root:t}}))))}function Yu(e){typeof MutationObserver!="undefined"&&(Wt=new MutationObserver(t=>{for(let n of t){for(let r=0;r<n.removedNodes.length;r++){let o=n.removedNodes[r];if(Xo.has(o)){Xo.delete(o);continue}o.nodeType===1&&!o.isConnected&&U(o)}for(let r=0;r<n.addedNodes.length;r++){let o=n.addedNodes[r];o.nodeType===1&&(Je.has(o)||W(o,De(o.parentNode)))}}}),Wt.observe(e,{childList:!0,subtree:!0}))}function ka(){Wt==null||Wt.disconnect(),Wt=null,Zo=!1}function La(e){W(e!=null?e:document.body,e?De(e.parentNode):je)}X();ee();var br=new Set,Aa=new Set;function Jt(e,t){let n=Et(e);ce.set(n,t),Gt.set(n.replace(/-/g,""),n),Qu(n)}function Qu(e){var r;if(typeof document=="undefined"||!document.body)return;let t=e.replace(/-/g,""),n=[e,t,`[${E.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=Yt(s))!=null&&r.component||Gu(s))continue;let a=De(s.parentNode);ei(s)&&(U(s),va(s)),W(s,a)}}}function Gu(e){let t=e.parentElement;for(;t&&t!==document.body;){if(ha(t)&&!ei(t))return!0;t=t.parentElement}return!1}function Xu(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 Ju(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 si(e){return e.replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Zu(e,t,n,r,o){var c;let i=V({}),s=Object.keys(t),a=new Map;for(let u of s)a.set(u.toLowerCase(),u),a.set(Et(u),u),a.set(si(u).toLowerCase(),u);for(let u of s)t[u].default!==void 0&&(i[u]=t[u].default);let l=Array.from(e.attributes);for(let u of l){let d=Kt(u.name,u.value);if(d&&d.name==="bind"&&d.arg){let p=(c=a.get(d.arg.toLowerCase()))!=null?c:si(d.arg);if(s.length&&!a.has(d.arg.toLowerCase()))continue;r.run(()=>ve(()=>{i[p]=O(d.expression,n,`:${d.arg}`)}));continue}if(d)continue;let f=a.get(u.name.toLowerCase());f?i[f]=Xu(u.value,t[f]):s.length||(i[si(u.name)]=u.value)}for(let u of s)t[u].required&&i[u]===void 0&&aa(e,o,u);return i}function ed(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 u=(c=o.get(a))!=null?c:[];u.push(s),o.set(a,u)}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 u of l)c.appendChild(u);else for(;s.firstChild;)c.appendChild(s.firstChild);Array.from(c.childNodes).forEach(u=>{u.nodeType===1&&td(u,n)}),s.replaceWith(c)}}var yr=null;function Sa(e){yr=e}function td(e,t){yr==null||yr(e,t)}function Ma(e,t,n){var x,C,N,R,le,B,xe,te;let r=t?Et(t):"",o=r?(N=(C=ce.get(r))!=null?C:ce.get((x=Gt.get(r))!=null?x:""))!=null?N:{}:{};r&&!ce.has(r)&&!Gt.has(r)&&ia(e,t);let i=new Re(!0),s=Ju(o),a=Zu(e,s,n,i,r||"inline");!o.state&&o.data&&Qo("data()","state()"),o.destroyed&&Qo("destroyed()","unmounted()");let l=(R=o.state)!=null?R:o.data,c={},u={},d=o.inheritScope?n:n.root,f=new xt({},d,e);f.component=u;try{c=l?(le=l.call(u,a))!=null?le:{}:{}}catch(A){q(A,`state() of component "${t}"`)}let p=e.getAttribute(`${E.prefix}data`);if(p){let A=O(p,n,"v-data");A&&typeof A=="object"&&Object.assign(c,A)}if(o.provide)try{let A=typeof o.provide=="function"?o.provide.call(u):o.provide;A&&typeof A=="object"&&(f.provides={...A})}catch(A){q(A,`provide() of component "${t}"`)}if(o.inject){let A=Array.isArray(o.inject)?o.inject.map(L=>[L,{from:L}]):Object.entries(o.inject).map(([L,$])=>[L,$!=null?$:{}]);for(let[L,$]of A){let gt=(B=$.from)!=null?B:L,To=n.inject(gt,$.default);L in c||(c[L]=To)}}let m=V(c),v={};if(o.computed)for(let[A,L]of Object.entries(o.computed))v[A]=wt(()=>L.call(u));let g={};if(o.methods)for(let[A,L]of Object.entries(o.methods))g[A]=(...$)=>L.apply(u,$);for(let[A,L]of Object.entries(o))typeof L=="function"&&(nd.has(A)||A==="state"||A==="data"||A in g||(g[A]=(...$)=>L.apply(u,$)));let h=(A,L)=>{let $=new CustomEvent(A,{detail:L,bubbles:!0,cancelable:!0});$.__voodoo=!0,e.dispatchEvent($)},y={$el:e,$props:a,$name:r||"inline",$scope:f,$parent:(te=(xe=n.owner)==null?void 0:xe.component)!=null?te:null,emit:h,$emit:h,$nextTick:A=>Promise.resolve().then(()=>(X(),qs)).then(L=>L.nextTick(A)),$watch:(A,L)=>he(()=>O(A,f),L)},w={get(A,L){if(typeof L!="symbol")return L==="$refs"?f.allRefs:L in y?y[L]:L in v?v[L].value:L in g?g[L]:L in a?a[L]:m[L]},set(A,L,$){return typeof L=="symbol"?!0:L in v?(v[L].value=$,!0):L in a?(a[L]=$,!0):(m[L]=$,!0)},has(A,L){if(typeof L=="symbol")return!1;let $=L;return $==="$refs"||$ in y||$ in v||$ in g||$ in a||$ in m},ownKeys(){return[...new Set([...Object.keys(m),...Object.keys(a),...Object.keys(g),...Object.keys(v)])]},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}},T=new Proxy(u,w);if(f.data=T,Object.setPrototypeOf(u,T),o.watch)for(let[A,L]of Object.entries(o.watch))i.run(()=>he(()=>T[A],($,gt)=>L.call(T,$,gt)));if(o.style&&!Aa.has(r)){Aa.add(r);let A=document.createElement("style");A.setAttribute("data-voodoo-component",r),A.textContent=o.style,document.head.appendChild(A)}if(Xt(o,T,"beforeMount"),o.template){let A=document.createDocumentFragment();for(;e.firstChild;)A.appendChild(e.firstChild);e.innerHTML=o.template,ed(e,A,n)}return br.add(T),fe(()=>{Xt(o,T,"mounted"),o.updated&&i.run(()=>ve(()=>{for(let A of Object.keys(m))m[A];Xt(o,T,"updated")}))}),ke(e,()=>{Xt(o,T,"beforeUnmount"),i.stop(),br.delete(T),Xt(o,T,"unmounted"),Xt(o,T,"destroyed")}),f}var nd=new Set(["beforeMount","mounted","updated","beforeUnmount","unmounted","destroyed"]);function Xt(e,t,n){let r=e[n];if(typeof r=="function")try{r.call(t)}catch(o){q(o,`hook ${n}`)}}X();ee();var Zt=[],ai=null,wr=0,Ca=-1,ci=0,li=!1;function Ra(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function rd(){if(ai||typeof MutationObserver=="undefined"||typeof document=="undefined")return;let e=document.documentElement;e&&(ai=new MutationObserver(()=>{wr++}),ai.observe(e,{childList:!0,subtree:!0}))}function Ha(){if(li)return;li=!0;let e=()=>{li=!1,od()};if(typeof requestAnimationFrame=="function"){let t=!1,n=()=>{t||(t=!0,e())};requestAnimationFrame(n),setTimeout(n,32);return}setTimeout(e,0)}function od(){var t;wr===Ca?ci++:ci=0,Ca=wr;let e=Ra();for(let n=Zt.length-1;n>=0;n--){let r=Zt[n],o=null;try{o=r.ready()}catch(i){o=null}if(o){Zt.splice(n,1),r.action(o);continue}e-r.since>1e4&&(Zt.splice(n,1),(t=r.onGiveUp)==null||t.call(r))}Zt.length&&Ha()}function ui(e){let t=null;try{t=e.ready()}catch(n){t=null}if(t){e.action(t);return}rd(),Zt.push({...e,since:Ra()}),Ha()}function Da(){return typeof document=="undefined"||!document.body?!1:ci>=2}function id(){return typeof document=="undefined"||!document.body?!1:wr===0}function Rn(e){typeof document!="undefined"&&ui({ready:()=>Da()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}function Pa(e){if(typeof document!="undefined"){if(id()){Promise.resolve().then(e);return}ui({ready:()=>Da()?document.body:null,action:()=>e(),onGiveUp:()=>{document.body&&e()}})}}function Er(e,t,n){if(typeof e!="string"){t(e);return}typeof document!="undefined"&&ui({ready:()=>document.querySelector(e),action:r=>t(r),onGiveUp:n})}var sd=0,xr=null;function Na(e){xr=e}function Oa(e={}){let t=`voodoo-app-${++sd}`,{components:n,...r}=e,o={globalProperties:{}},i={},s=[],a=null,l="",c=null,u=[];function d(){if(n)for(let[m,v]of Object.entries(n)){let g=Et(m);ce.has(g)||(Jt(g,v),s.push(g))}}function f(m){var g,h;if(c)return c;a=m,l=m.innerHTML,Object.assign(pe,o.globalProperties),d();let v={...r};if(Object.keys(i).length){let y=v.provide;v.provide=()=>({...typeof y=="function"?y():y!=null?y:{},...i})}Jt(t,v),m.setAttribute(`${E.prefix}component`,t);try{W(m,je)}catch(y){return q(y,`application mounting "${t}"`),null}if(c=(h=(g=Yt(m))==null?void 0:g.component)!=null?h:null,c){let y=u;u=[];for(let w of y)w(c)}return c}let p={name:t,config:o,get instance(){return c},get container(){return a},get isMounted(){return c!==null},component(m,v){var h;let g=Et(m);return v===void 0?(h=n&&n[m])!=null?h:ce.get(g):(n?n[m]=v:e.components={[m]:v},c&&!ce.has(g)&&(Jt(g,v),s.push(g)),p)},directive(m,v){return xr==null||xr(m,v),p},use(m,v){return pr(ad(),m,v),p},provide(m,v){return i[m]=v,p},mount(m){if(c)return c;if(typeof m!="string")return f(m);let v=null;return Er(m,g=>{v=f(g)},()=>{console.warn(`[Voodoo] createApp().mount("${m}") did not find the element. The application remains unmounted.`)}),v},whenMounted(){return c?Promise.resolve(c):new Promise(m=>u.push(m))},unmount(){if(a){U(a),a.removeAttribute(`${E.prefix}component`),a.innerHTML=l,ce.delete(t);for(let m of s)ce.delete(m);s.length=0,c=null,a=null}}};return p}var Fa=null;function $a(e){Fa=e}function ad(){return Fa}X();X();var st=new Map,di=Te(0),fi=new Map;function Tr(e,t,n={}){let r=st.get(e);if(!t){if(!r){let l=V({});return st.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[u,d]of Object.entries(c))i[u]&&!("value"in i[u])||(s[u]=d)}}catch(l){}let a=V(s);for(let[l,c]of Object.entries(i)){let u=c.value;typeof u=="function"&&(a[l]=(...d)=>u.apply(a,d))}if(st.set(e,a),di.value++,n.persist&&typeof localStorage!="undefined"){let l=he(a,()=>{try{localStorage.setItem(o,JSON.stringify(ld(a)))}catch(c){}},{deep:!0});fi.set(e,l)}return a}function ld(e){let t={},n=Object.getOwnPropertyDescriptors(ie(e));for(let[r,o]of Object.entries(e))typeof o!="function"&&(n[r]&&!("value"in n[r])||(t[r]=o));return t}var St=new Proxy({},{get:(e,t)=>(di.value,st.get(t)),has:(e,t)=>(di.value,st.has(t)),ownKeys:()=>[...st.keys()],getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});function Ia(e){var t;(t=fi.get(e))==null||t(),fi.delete(e),st.delete(e)}function ja(){return[...st.keys()]}var pi={};or(pi,{capitalize:()=>qa,chunk:()=>gd,clone:()=>Hn,debounce:()=>we,device:()=>ne,escapeHtml:()=>Mt,formatCurrency:()=>Ad,formatDate:()=>Md,formatFileSize:()=>Rd,formatNumber:()=>Sd,formatPercent:()=>Hd,get:()=>hd,groupBy:()=>pd,isBrowser:()=>kr,matchesMedia:()=>en,memoize:()=>fd,merge:()=>Ba,once:()=>dd,parseDuration:()=>_,random:()=>bd,relativeTime:()=>Cd,sample:()=>wd,set:()=>yd,setFormatDefaults:()=>Ld,sleep:()=>ud,slugify:()=>Ed,sortBy:()=>vd,stripTags:()=>kd,throttle:()=>Dn,titleCase:()=>Td,truncate:()=>xd,uid:()=>ue,unique:()=>md,uuid:()=>cd});function cd(){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 ue(e="v"){return`${e}${Math.random().toString(36).slice(2,9)}`}function ud(e){return new Promise(t=>setTimeout(t,e))}function _(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 we(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 Dn(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 dd(e){let t=!1,n;return function(...r){return t||(t=!0,n=e.apply(this,r)),n}}function fd(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 Hn(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=>Hn(n));if(e instanceof Date)return new Date(e.getTime());if(e instanceof Map)return new Map([...e].map(([n,r])=>[n,Hn(r)]));if(e instanceof Set)return new Set([...e].map(n=>Hn(n)));let t={};for(let[n,r]of Object.entries(e))t[n]=Hn(r);return t}function Ba(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]=Ba({...i},o):e[r]=o}return e}function pd(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 md(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 gd(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 vd(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 hd(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 yd(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 bd(e=0,t=1){return Math.floor(Math.random()*(t-e+1))+e}function wd(e){return e[Math.floor(Math.random()*e.length)]}function Ed(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 xd(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 qa(e){let t=String(e!=null?e:"");return t.charAt(0).toUpperCase()+t.slice(1)}function Td(e){return String(e!=null?e:"").replace(/\w\S*/g,t=>qa(t.toLowerCase()))}function Mt(e){return String(e!=null?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function kd(e){return String(e!=null?e:"").replace(/<\/?[^>]+(>|$)/g,"")}var tn="pt-BR",za="BRL";function Ld(e,t){e&&(tn=e),t&&(za=t)}function Ad(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:tn,{style:"currency",currency:(o=t.currency)!=null?o:za}).format(n)}function Sd(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:tn,o).format(n)}function Md(e,t="short",n){let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"";let o=n!=null?n:tn;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 Cd(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:tn,{numeric:"auto"});for(let[a,l]of i)if(o>=l||a==="second")return s.format(Math.round(r/l),a);return""}function Rd(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 Hd(e,t=0,n){return new Intl.NumberFormat(n!=null?n:tn,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)}var kr=typeof window!="undefined"&&typeof window.document!="undefined";function en(e){if(!kr||typeof window.matchMedia!="function")return!1;try{return window.matchMedia(e).matches}catch(t){return!1}}var ne={get touch(){return kr&&("ontouchstart"in window||navigator.maxTouchPoints>0)},get mobile(){return en("(max-width: 767px)")},get tablet(){return en("(min-width: 768px) and (max-width: 1023px)")},get desktop(){return en("(min-width: 1024px)")},get online(){return!kr||navigator.onLine},get reducedMotion(){return en("(prefers-reduced-motion: reduce)")},get darkMode(){return en("(prefers-color-scheme: dark)")}};var re=class extends Error{constructor(n,r,o,i){super(n);S(this,"response",r);S(this,"config",o);S(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}},de={baseURL:"",headers:{Accept:"application/json, text/html, */*"},timeout:3e4,retry:0,retryDelay:500,credentials:"same-origin",csrfMeta:"csrf-token",csrfHeader:"X-CSRF-TOKEN"},Lr=[],Ar=[],Pn=[],Nn=new Map;function Ua(e){var t;return`${(t=e.method)!=null?t:"GET"} ${rn(e)}`}function Dd(e){if(!e){Nn.clear();return}let t=typeof e=="string"?n=>n.includes(e):n=>e.test(n);for(let n of[...Nn.keys()])t(n)&&Nn.delete(n)}var Va="voodoo:offline-queue";function mi(){try{return JSON.parse(localStorage.getItem(Va)||"[]")}catch(e){return[]}}function gi(e){try{localStorage.setItem(Va,JSON.stringify(e))}catch(t){}}function Pd(e){var n,r;if(typeof localStorage=="undefined")return;let t=mi();t.push({url:rn(e),method:(n=e.method)!=null?n:"POST",body:e.body,headers:(r=e.headers)!=null?r:{},at:Date.now()}),gi(t)}async function Wa(){if(typeof localStorage=="undefined")return 0;let e=mi();if(!e.length)return 0;gi([]);let t=0;for(let n=0;n<e.length;n++){let r=e[n];try{await at({url:r.url,method:r.method,body:r.body,headers:r.headers,offlineQueue:!1}),t++}catch(o){let i=mi();gi([...e.slice(n),...i]);break}}return t}typeof window!="undefined"&&window.addEventListener("online",()=>{Wa()});function rn(e){let t=e.url,n=de.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 Ka(){var t;if(typeof document=="undefined")return null;let e=document.querySelector(`meta[name="${de.csrfMeta}"]`);return(t=e==null?void 0:e.getAttribute("content"))!=null?t:null}function Nd(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 Od(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 Fd=new Set(["GET","HEAD","OPTIONS"]);function $d(e){for(let[t,n]of Object.entries(e))if(t.toLowerCase()==="idempotency-key"&&String(n).trim()!=="")return!0;return!1}function Id(e,t,n,r){var o;return Fd.has(e)||t.retryUnsafe===!0||$d(n)?!0:(((o=t.retry)!=null?o:0)>0&&Mn(`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 at(e){var u,d,f,p,m;let t={method:"GET",timeout:de.timeout,retry:de.retry,retryDelay:de.retryDelay,credentials:de.credentials,responseType:"auto",...e,headers:{...de.headers,...e.headers}};for(let v of Lr)t=await v(t);let n=((u=t.method)!=null?u:"GET").toUpperCase();if(t.cache&&n==="GET"){let v=Nn.get(Ua(t));if(v&&v.expires>Date.now())return v.value}if(t.offlineQueue&&typeof navigator!="undefined"&&navigator.onLine===!1&&n!=="GET")return Pd(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 v=Ka();v&&!r[de.csrfHeader]&&(r[de.csrfHeader]=v)}r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");let o=Nd(t.body,r),i=rn(t),s=Id(n,t,r,i)?((d=t.retry)!=null?d:0)+1:1,a;for(let v=0;v<s;v++){let g=new AbortController,h=t.signal,y=null;h&&(h.aborted?g.abort(h.reason):(y=()=>g.abort(h.reason),h.addEventListener("abort",y,{once:!0})));let w=()=>{y&&h&&h.removeEventListener("abort",y),y=null},T=t.timeout&&t.timeout>0?setTimeout(()=>g.abort(new DOMException("timeout","TimeoutError")),t.timeout):null;try{let x=await fetch(i,{method:n,headers:r,body:n==="GET"||n==="HEAD"?void 0:o,credentials:t.credentials,signal:g.signal});T&&clearTimeout(T),w();let N={data:await Od(x,t.responseType),status:x.status,statusText:x.statusText,headers:x.headers,ok:x.ok,raw:x,config:t};if(!x.ok){if(x.status>=500&&v<s-1){await _a(((f=t.retryDelay)!=null?f:500)*2**v);continue}let R=new re(`Request failed with status ${x.status}`,N,t);for(let le of Pn)le(R);throw R}for(let R of Ar)N=await R(N);return t.cache&&n==="GET"&&Nn.set(Ua(t),{expires:Date.now()+t.cache,value:N}),N}catch(x){if(T&&clearTimeout(T),w(),x instanceof re)throw x;if(a=x,(x==null?void 0:x.name)==="AbortError"&&((p=t.signal)==null?void 0:p.aborted))break;if(v<s-1){await _a(((m=t.retryDelay)!=null?m:500)*2**v);continue}}}let l=(a==null?void 0:a.name)==="TimeoutError"?`Timeout after ${t.timeout}ms`:`Network failure accessing ${i}`,c=new re(l,void 0,t,a);for(let v of Pn)v(c);throw c}function _a(e){return new Promise(t=>setTimeout(t,e))}async function nn(e){return(await at(e)).data}var me={defaults:de,get(e,t={}){return nn({...t,url:e,method:"GET"})},post(e,t,n={}){return nn({...n,url:e,method:"POST",body:t})},put(e,t,n={}){return nn({...n,url:e,method:"PUT",body:t})},patch(e,t,n={}){return nn({...n,url:e,method:"PATCH",body:t})},delete(e,t={}){return nn({...t,url:e,method:"DELETE"})},head(e,t={}){return nn({...t,url:e,method:"HEAD"})},request:at,upload(e,t,n={}){return new Promise((r,o)=>{var l,c;let i=new XMLHttpRequest,s=rn({url:e});i.open((l=n.method)!=null?l:"POST",s);for(let[u,d]of Object.entries({...de.headers,...n.headers}))u.toLowerCase()!=="content-type"&&i.setRequestHeader(u,d);let a=Ka();a&&i.setRequestHeader(de.csrfHeader,a),i.upload.addEventListener("progress",u=>{var d;u.lengthComputable&&((d=n.onProgress)==null||d.call(n,Math.round(u.loaded/u.total*100),u.loaded,u.total))}),i.addEventListener("load",()=>{let u=i.getResponseHeader("content-type")||"",d=i.responseText;if(u.includes("json"))try{d=JSON.parse(i.responseText)}catch(f){}i.status>=200&&i.status<300?r(d):o(new re(`Upload failed with status ${i.status}`))}),i.addEventListener("error",()=>o(new re("Network failure during upload"))),i.addEventListener("abort",()=>o(new re("Upload canceled"))),(c=n.signal)==null||c.addEventListener("abort",()=>i.abort()),i.send(t)})},sse(e,t={}){let n=new EventSource(rn({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(rn({url:e,params:n.params}),{headers:{...de.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 u=s.split(`
|
|
62
|
+
`);s=(a=u.pop())!=null?a:"";for(let d of u)d.trim()&&t(d)}s.trim()&&t(s)},interceptors:{request:{use(e){return Lr.push(e),()=>{let t=Lr.indexOf(e);t>-1&&Lr.splice(t,1)}}},response:{use(e){return Ar.push(e),()=>{let t=Ar.indexOf(e);t>-1&&Ar.splice(t,1)}}},error:{use(e){return Pn.push(e),()=>{let t=Pn.indexOf(e);t>-1&&Pn.splice(t,1)}}}},setHeader(e,t){t===null?delete de.headers[e]:de.headers[e]=t},setToken(e,t="Bearer"){this.setHeader("Authorization",e?`${t} ${e}`:null)},setBaseURL(e){de.baseURL=e},clearCache:Dd,flushOfflineQueue:Wa,parseDuration:_};Ee();var jd=`
|
|
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
|
-
`,Fd={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},Nn=new Map,lt={duration:4e3,position:"top-right",max:6};function Id(e){se(),Q("toast",$d);let t=Nn.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),Nn.set(e,t)),t}function Ct(e){var f,p,m,v;let t=(f=e.position)!=null?f:lt.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:lt.duration,o=Id(t),i=ue("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 g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),Nn.delete(t))},220))},u=g=>{var w,T,x,C;let h=(w=g.type)!=null?w:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let N=document.createElement("span");N.className="v-toast-icon",N.setAttribute("aria-hidden","true"),N.textContent=(T=Fd[h])!=null?T:"",s.appendChild(N);let R=document.createElement("div");R.className="v-toast-body";let le=document.createElement("div");if(le.className="v-toast-title",le.textContent=(x=g.title)!=null?x:"",R.appendChild(le),g.description){let B=document.createElement("div");B.className="v-toast-desc",B.textContent=g.description,R.appendChild(B)}if(s.appendChild(R),g.action){let B=document.createElement("button");B.type="button",B.className="v-toast-action",B.textContent=g.action.label,B.addEventListener("click",()=>{var xe;(xe=g.action)==null||xe.onClick(),c()}),s.appendChild(B)}if(g.closable!==!1&&h!=="loading"){let B=document.createElement("button");B.type="button",B.className="v-toast-close",B.setAttribute("aria-label","Close notification"),B.innerHTML="×",B.addEventListener("click",c),s.appendChild(B)}}let y=(C=g.duration)!=null?C:r;if(y>0){let N=document.createElement("div");N.className="v-toast-bar",N.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild(N)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>lt.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{l&&clearTimeout(l),g>0&&(l=setTimeout(c,g))};return d(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:c,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(lt.duration)}}}function on(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Pe=Object.assign((e,t={})=>Ct({...on(e,"default"),...t}),{success:(e,t={})=>Ct({...on(e,"success"),...t}),error:(e,t={})=>Ct({...on(e,"error"),...t}),warning:(e,t={})=>Ct({...on(e,"warning"),...t}),info:(e,t={})=>Ct({...on(e,"info"),...t}),loading:(e,t={})=>Ct({...on(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=Ct({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:lt.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:lt.duration}),s}},clear(){for(let[e,t]of Nn)t.remove(),Nn.delete(e)},configure(e){Object.assign(lt,e)},settings:lt});X();function Ka(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 G=Ka(()=>typeof localStorage!="undefined"?localStorage:void 0),Sr=Ka(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Mr={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}},ct={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())}},sn=new Map,Cr={set(e,t,n=0){return sn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=sn.get(e);return n?n.expires<Date.now()?(sn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){sn.delete(e)},clear(){sn.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 sn.size}},gi="voodoo:theme",vi=null,Ar=Te(0),qe={get current(){var e,t;return Ar.value,(t=(e=G.get(gi))!=null?e:vi)!=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){vi=e,G.set(gi,e),Ar.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return vi!==null||G.get(gi)!=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(()=>{Ar.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Ar.value++,this.current==="system"&&this.apply()}))}};var Ne=V({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function hi(){typeof window!="undefined"&&(Ne.width=window.innerWidth,Ne.height=window.innerHeight,Ne.mobile=window.innerWidth<768,Ne.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ne.desktop=window.innerWidth>=1024,Ne.portrait=window.innerHeight>=window.innerWidth,Ne.landscape=!Ne.portrait)}var Rt=V({online:!0,type:"unknown",saveData:!1,slow:!1});function Rr(){var t;if(typeof navigator=="undefined")return;Rt.online=navigator.onLine;let e=navigator.connection;e&&(Rt.type=(t=e.effectiveType)!=null?t:"unknown",Rt.saveData=!!e.saveData,Rt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var yi={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""}}},Ya=!1;function Qa(){var t,n;if(Ya||(Ya=!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",()=>St),H("$http",()=>me),H("$toast",()=>Pe),H("$clipboard",()=>yi),H("$storage",()=>G),H("$session",()=>Sr),H("$cookie",()=>Mr),H("$cache",()=>Cr),H("$url",()=>ct),H("$theme",()=>qe),H("$device",()=>ne),H("$screen",()=>Ne),H("$network",()=>Rt),H("$nextTick",()=>bt),H("$watch",r=>(o,i)=>he(()=>O(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;hi(),Rr();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(hi)}),window.addEventListener("orientationchange",hi),window.addEventListener("online",Rr),window.addEventListener("offline",Rr),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",Rr)}X();var Ga=new WeakMap;function jd(e){var o,i,s;let t=(i=(o=oi())!=null?o:e.el)!=null?i:e,n=Ga.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},Ga.set(t,n));let r=(s=oi())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;ke(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Ut(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 Hr(e,t){let n=jd(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Ut(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function Xa(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 Ja(e){return Array.isArray(e)?e.slice():null}function Bd(e,t){let n=Hr(e,"state");return n.value===void 0&&(n.value=Te(t)),n.value}function qd(e,t,n){let r=Hr(e,"effect"),o=Ja(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||Xa(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=ve(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function zd(e,t,n){let r=Hr(e,"memo"),o=Ja(n);return o?(r.value?Xa(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Te(t()),r.deps=o),r.value):(r.value||(r.value=wt(t)),r.value)}function Ud(e,t){let n=Hr(e,"ref");return n.value||(n.value=kn({current:t})),n.value}function _d(e,t){return t!==void 0&&!(e in St)&&xr(e,t),St[e]}function Za(){Vt("useState",e=>t=>Bd(e,t)),Vt("useEffect",e=>(t,n)=>qd(e,t,n)),Vt("useMemo",e=>(t,n)=>zd(e,t,n)),Vt("useRef",e=>t=>Ud(e,t)),Vt("useContext",()=>(e,t)=>_d(e,t))}X();function bi(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 wi(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 Dr(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=V({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,u,d,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 me.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:(u=t.timeout)!=null?u:me.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=bi(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(l.signal.aborted)return;let v=m instanceof re&&(f=wi(m))!=null?f:m.message;s.error={name:"ResourceError",message:v},(p=t.onError)==null||p.call(t,m,v)}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}Ee();Ee();var el=`
|
|
107
|
+
`,Bd={success:"ok",error:"!",warning:"!",info:"i",loading:"",default:""},On=new Map,lt={duration:4e3,position:"top-right",max:6};function qd(e){se(),Q("toast",jd);let t=On.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),On.set(e,t)),t}function Ct(e){var f,p,m,v;let t=(f=e.position)!=null?f:lt.position,n=(p=e.type)!=null?p:"default",r=(m=e.duration)!=null?m:n==="loading"?0:lt.duration,o=qd(t),i=ue("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 g;s.remove(),(g=e.onClose)==null||g.call(e),o.children.length||(o.remove(),On.delete(t))},220))},u=g=>{var w,T,x,C;let h=(w=g.type)!=null?w:n;if(s.setAttribute("data-type",h),g.html)s.innerHTML=g.html;else{s.textContent="";let N=document.createElement("span");N.className="v-toast-icon",N.setAttribute("aria-hidden","true"),N.textContent=(T=Bd[h])!=null?T:"",s.appendChild(N);let R=document.createElement("div");R.className="v-toast-body";let le=document.createElement("div");if(le.className="v-toast-title",le.textContent=(x=g.title)!=null?x:"",R.appendChild(le),g.description){let B=document.createElement("div");B.className="v-toast-desc",B.textContent=g.description,R.appendChild(B)}if(s.appendChild(R),g.action){let B=document.createElement("button");B.type="button",B.className="v-toast-action",B.textContent=g.action.label,B.addEventListener("click",()=>{var xe;(xe=g.action)==null||xe.onClick(),c()}),s.appendChild(B)}if(g.closable!==!1&&h!=="loading"){let B=document.createElement("button");B.type="button",B.className="v-toast-close",B.setAttribute("aria-label","Close notification"),B.innerHTML="×",B.addEventListener("click",c),s.appendChild(B)}}let y=(C=g.duration)!=null?C:r;if(y>0){let N=document.createElement("div");N.className="v-toast-bar",N.style.animation=`v-toast-bar ${y}ms linear forwards`,s.appendChild(N)}};for(u(e),o.appendChild(s),requestAnimationFrame(()=>s.classList.add("v-in"));o.children.length>lt.max;)(v=o.firstElementChild)==null||v.remove();let d=g=>{l&&clearTimeout(l),g>0&&(l=setTimeout(c,g))};return d(r),s.addEventListener("mouseenter",()=>{l&&clearTimeout(l)}),s.addEventListener("mouseleave",()=>d(r)),{id:i,close:c,update(g){var h;u({...e,...g}),g.duration!==void 0?d(g.duration):((h=g.type)!=null?h:n)!=="loading"&&d(lt.duration)}}}function on(e,t){return typeof e=="string"?{title:e,type:t}:{type:t,...e}}var Pe=Object.assign((e,t={})=>Ct({...on(e,"default"),...t}),{success:(e,t={})=>Ct({...on(e,"success"),...t}),error:(e,t={})=>Ct({...on(e,"error"),...t}),warning:(e,t={})=>Ct({...on(e,"warning"),...t}),info:(e,t={})=>Ct({...on(e,"info"),...t}),loading:(e,t={})=>Ct({...on(e,"loading"),duration:0,...t}),async promise(e,t={}){var r,o,i;let n=Ct({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:lt.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:lt.duration}),s}},clear(){for(let[e,t]of On)t.remove(),On.delete(e)},configure(e){Object.assign(lt,e)},settings:lt});X();function Xa(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 G=Xa(()=>typeof localStorage!="undefined"?localStorage:void 0),Mr=Xa(()=>typeof sessionStorage!="undefined"?sessionStorage:void 0),Cr={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}},ct={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())}},sn=new Map,Rr={set(e,t,n=0){return sn.set(e,{value:t,expires:n>0?Date.now()+n:1/0}),t},get(e,t){let n=sn.get(e);return n?n.expires<Date.now()?(sn.delete(e),t):n.value:t},has(e){return this.get(e)!==void 0},remove(e){sn.delete(e)},clear(){sn.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 sn.size}},vi="voodoo:theme",hi=null,Sr=Te(0),qe={get current(){var e,t;return Sr.value,(t=(e=G.get(vi))!=null?e:hi)!=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){hi=e,G.set(vi,e),Sr.value++,this.apply()},toggle(){let e=this.resolved==="dark"?"light":"dark";return this.set(e),e},get chosen(){return hi!==null||G.get(vi)!=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(()=>{Sr.value++}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),typeof matchMedia!="undefined"&&matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Sr.value++,this.current==="system"&&this.apply()}))}};var Ne=V({width:0,height:0,mobile:!1,tablet:!1,desktop:!1,portrait:!1,landscape:!1,matches(e){return typeof matchMedia!="undefined"&&matchMedia(e).matches}});function yi(){typeof window!="undefined"&&(Ne.width=window.innerWidth,Ne.height=window.innerHeight,Ne.mobile=window.innerWidth<768,Ne.tablet=window.innerWidth>=768&&window.innerWidth<1024,Ne.desktop=window.innerWidth>=1024,Ne.portrait=window.innerHeight>=window.innerWidth,Ne.landscape=!Ne.portrait)}var Rt=V({online:!0,type:"unknown",saveData:!1,slow:!1});function Hr(){var t;if(typeof navigator=="undefined")return;Rt.online=navigator.onLine;let e=navigator.connection;e&&(Rt.type=(t=e.effectiveType)!=null?t:"unknown",Rt.saveData=!!e.saveData,Rt.slow=e.effectiveType==="slow-2g"||e.effectiveType==="2g")}var bi={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""}}},Ja=!1;function Za(){var t,n;if(Ja||(Ja=!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",()=>St),H("$http",()=>me),H("$toast",()=>Pe),H("$clipboard",()=>bi),H("$storage",()=>G),H("$session",()=>Mr),H("$cookie",()=>Cr),H("$cache",()=>Rr),H("$url",()=>ct),H("$theme",()=>qe),H("$device",()=>ne),H("$screen",()=>Ne),H("$network",()=>Rt),H("$nextTick",()=>bt),H("$watch",r=>(o,i)=>he(()=>O(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;yi(),Hr();let e=0;window.addEventListener("resize",()=>{cancelAnimationFrame(e),e=requestAnimationFrame(yi)}),window.addEventListener("orientationchange",yi),window.addEventListener("online",Hr),window.addEventListener("offline",Hr),(n=(t=navigator.connection)==null?void 0:t.addEventListener)==null||n.call(t,"change",Hr)}X();var el=new WeakMap;function zd(e){var o,i,s;let t=(i=(o=ii())!=null?o:e.el)!=null?i:e,n=el.get(t);n||(n={slots:[],index:0,scheduled:!1,bound:!1},el.set(t,n));let r=(s=ii())!=null?s:e.el;if(!n.bound&&r){n.bound=!0;let a=n;ke(r,()=>{for(let l of a.slots)l.dispose&&l.dispose(),l.runner&&Ut(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 Dr(e,t){let n=zd(e),r=n.index++,o=n.slots[r];return(!o||o.kind!==t)&&(o&&(o.dispose&&o.dispose(),o.runner&&Ut(o.runner)),o={kind:t,deps:null,value:void 0},n.slots[r]=o),o}function tl(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 nl(e){return Array.isArray(e)?e.slice():null}function Ud(e,t){let n=Dr(e,"state");return n.value===void 0&&(n.value=Te(t)),n.value}function _d(e,t,n){let r=Dr(e,"effect"),o=nl(n),i=()=>{if(r.dispose){let s=r.dispose;r.dispose=void 0,s()}};if(o){if(r.deps===null&&!r.runner||tl(r.deps,o)){r.deps=o,i();let a=t();typeof a=="function"&&(r.dispose=a)}return}r.runner||(r.deps=null,r.runner=ve(()=>{i();let s=t();typeof s=="function"&&(r.dispose=s)}))}function Vd(e,t,n){let r=Dr(e,"memo"),o=nl(n);return o?(r.value?tl(r.deps,o)&&(r.deps=o,r.value.value=t()):(r.value=Te(t()),r.deps=o),r.value):(r.value||(r.value=wt(t)),r.value)}function Wd(e,t){let n=Dr(e,"ref");return n.value||(n.value=kn({current:t})),n.value}function Kd(e,t){return t!==void 0&&!(e in St)&&Tr(e,t),St[e]}function rl(){Vt("useState",e=>t=>Ud(e,t)),Vt("useEffect",e=>(t,n)=>_d(e,t,n)),Vt("useMemo",e=>(t,n)=>Vd(e,t,n)),Vt("useRef",e=>t=>Wd(e,t)),Vt("useContext",()=>(e,t)=>Kd(e,t))}X();function wi(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 Ei(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 Pr(e,t={}){let n=()=>typeof e=="function"?e():e,r=()=>typeof t.params=="function"?t.params():t.params,o=null,i=null,s=V({data:null,loading:!1,error:null,loaded:!1,async reload(){var c,u,d,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 me.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:(u=t.timeout)!=null?u:me.defaults.timeout,signal:l.signal});if(l.signal.aborted)return;s.data=wi(m.data,t.jsonPath),s.loaded=!0,(d=t.onSuccess)==null||d.call(t,s.data)}catch(m){if(l.signal.aborted)return;let v=m instanceof re&&(f=Ei(m))!=null?f:m.message;s.error={name:"ResourceError",message:v},(p=t.onError)==null||p.call(t,m,v)}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}Ee();Ee();var ol=`
|
|
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 tl(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 an(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function ln(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function nl(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 rl(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function On(e,t={}){Q("transitions",el);let n=tl(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.enterFrom),an(e,n.enterActive),rl(()=>{var s;ln(e,n.enterFrom),an(e,n.enterTo);let o=(s=t.duration)!=null?s:nl(e),i=()=>{ln(e,n.enterActive),ln(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function $n(e,t={}){Q("transitions",el);let n=tl(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.leaveFrom),an(e,n.leaveActive),rl(()=>{var s;ln(e,n.leaveFrom),an(e,n.leaveTo);let o=(s=t.duration)!=null?s:nl(e),i=()=>{ln(e,n.leaveActive),ln(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Ht(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 Dt(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 cn(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 un(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 ol(e){let t=document;typeof t.startViewTransition=="function"&&!ne.reducedMotion?t.startViewTransition(e):e()}X();ee();function Vd(e,t,n){try{let o={t:"assign",op:"=",target:He(e),value:{t:"lit",v:n}};M(o,t)}catch(r){q(r,`assignment in "${e}"`)}}function cl(e){let t=E.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`)?_(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Qe(n());let r=e.firstChild;r&&r.nodeType===3&&ei(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;ga(t),n(()=>{let i=r();for(let s of Array.from(t.children))U(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=cl(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,On(e,i)):$n(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=E.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(E.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)ti(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),ei(p.template);let l=cl(e),c=-1,u=[],d=()=>{let p=u;if(u=[],!p.length)return;let m=()=>{for(let v of p)U(v),v.remove()};l&&p[0]instanceof HTMLElement?$n(p[0],l).then(m):m()};r(()=>{let p=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){p=g;break}}if(p===c||(c=p,d(),p===-1))return;let m=i[p].template,v=ul(m,a,t);u=v,l&&v[0]instanceof HTMLElement&&On(v[0],l)}),ke(e,d)},{priority:P.IF,terminal:!0});function ul(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&&(it(l,n),W(l,n))}else{let s=e.cloneNode(!0);i.push(s),it(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Wd=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Wd.exec(n);if(!o){q(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,l,c]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),f=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${u}for`),p.removeAttribute(":key"),p.removeAttribute(`${u}bind:key`),p.removeAttribute(`${u}key`),ti(e);let m=[];ke(f,()=>{for(let h of m)for(let y of h.nodes)U(y),y.remove();m=[]}),r(()=>{var le,B,xe;let h=O(s,t,"v-for"),y=Kd(h,a,l,c),w=new Map;for(let te of m)w.set(te.key,te);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((te,A)=>{let L=d?O(d,t.child(te),":key"):`__index_${A}`;d&&x.has(L)&&na(e,L,n);let F=w.get(L);if(F&&!x.has(L)){x.add(L);for(let[Zc,eu]of Object.entries(te))F.data[Zc]=eu;T.push(F);return}let gt=t.reactiveChild(te),xo=ul(p,f,gt,C);x.add(L),T.push({key:L,scope:gt,nodes:xo,data:gt.data})}),C.fragment.firstChild&&((le=f.parentNode)==null||le.insertBefore(C.fragment,f));for(let[te,A]of C.pending)W(te,A);let N=new Set(T);for(let te of m)if(!(x.has(te.key)&&N.has(te)))for(let A of te.nodes)U(A),A.remove();let R=f;for(let te=T.length-1;te>=0;te--){let A=T[te],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let F of A.nodes)(B=f.parentNode)==null||B.insertBefore(F,R);R=(xe=A.nodes[0])!=null?xe:R}m=T})},{priority:P.FOR,terminal:!0});function Kd(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 Yd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Qd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Gd=/[\s\x00-\x1f]/g;function Xd(e){let t=e.replace(Gd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function il(e,t,n,r=!1,o=!1){if(t==="class")return dl(e,n);if(t==="style")return Ei(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Tt(`:srcdoc refused in ${Xe(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(E.sanitizeUrls&&!r){if(Qd.has(t)&&typeof n=="string"&&Xd(n)){Tt(`value refused in :${t} of ${Xe(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)){Tt(`attribute "${t}" refused in ${Xe(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(Yd.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 sl=new WeakMap;function dl(e,t){let n=sl.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),sl.set(e,n));let r=new Set(n);fl(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function fl(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)fl(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 Ei(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)Ei(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)}}}b("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,u]of Object.entries(l))il(e,c,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{il(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>dl(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>Ei(e,n()))});var al={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},Jd=["ctrl","shift","alt","meta"];function ll(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=He(e),l=M(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){q(a,`event ${n.type} ("${e}")`)}}var Zd={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},pl={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{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(u)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=u=>{s&&(u.preventDefault(),u.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"])pl[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=u=>{a=!0,i=u.clientX,s=u.clientY},c=u=>{if(!a)return;a=!1;let d=u.clientX-i,f=u.clientY-s,p=40;(e==="left"?d<-p&&Math.abs(d)>Math.abs(f):e==="right"?d>p&&Math.abs(d)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(d):f>p&&Math.abs(f)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function ml(e,t,n,r,o,i){var p;let s=(p=Zd[t])!=null?p:t,a=pl[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),ll(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 g of Jd)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in al||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=al[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),ll(n,r,m,e)}},u=o.debounce;u!==void 0&&(c=we(c,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(c=Hn(c,_(d===!0?250:d,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&ml(e,t,n,r,o,i)});var ef=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of ef)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{ml(t,e,n,r,o,i)});b("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",u=a==="INPUT"&&l==="radio",d=a==="SELECT",f=d&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||c||u||p?"change":"input",T=()=>{var C,N;let x;if(c){let R=O(t,n,"v-model");if(Array.isArray(R)){let le=s.value,B=[...R],xe=B.indexOf(le);s.checked&&xe===-1?B.push(le):!s.checked&&xe>-1&&B.splice(xe,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(f)x=Array.from(s.selectedOptions).map(R=>R.value);else if(p)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}Vd(t,n,x)};y>0&&(T=we(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(c){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(f){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(p)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&bt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("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:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(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}),u=O(t,c,"v-watch");typeof u=="function"&&u.call(n.data,a,l)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Qe(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){q(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:P.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"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});X();ee();var hl=()=>E.prefix;function D(e,t){return Le(e,`${hl()}${t}`)}function ki(e,t){return ot(e,`${hl()}${t}`)}function tf(e,t){var s,a,l;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let c=O(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:ki(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((l=D(e,"timeout"))!=null?l:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:ki(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function gl(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&W(l,r)};switch(n){case"none":return;case"delete":U(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);U(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)&&W(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))U(a);e.innerHTML=t,o(e.childNodes)}}}function Pr(e,t=0){if(e==null)return"";if(typeof e!="object")return Mt(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>${Mt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${Pr(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>${Pr(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${Mt(r)}</dt><dd>${Pr(o,t+1)}</dd>`).join("")}</dl>`:""}function nf(e,t,n,r){let o=document.querySelector(e);if(!o){q(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))U(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 u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of c)d.nodeType===1&&W(d,u)}}var xi=new WeakMap;async function Fn(e){var d,f,p,m,v;let{el:t,scope:n,method:r}=e,o=tf(t,n),i=Ge.has("confirm");if(o.confirmMessage&&!i&&!await rf(o.confirmMessage))return;(d=xi.get(t))==null||d.abort();let s=new AbortController;xi.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 g=l!=null?l:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!1)}};c(),dn(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.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}),h=bi(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?nf(o.templateSelector,h,n,a):typeof h=="string"?gl(a,h,o.swap,n):h!=null&&(of(),gl(a,Pr(h),o.swap,n)),o.toastSuccess&&Pe.success(o.toastSuccess),o.onSuccess&&Ti(o.onSuccess,n,t,{data:h,response:g}),dn(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof re?(m=wi(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Pe.error(o.toastError):o.onError||Pe.error(h),o.onError&&Ti(o.onError,n,t,{error:g,message:h}),dn(t,"voodoo:error",{error:g,message:h}),q(g,`request ${r} ${e.url}`)}finally{u(),xi.delete(t),o.onComplete&&Ti(o.onComplete,n,t,{}),dn(t,"voodoo:complete",{})}}function dn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ti(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function rf(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var vl=!1;function of(){vl||(vl=!0,Promise.resolve().then(()=>(Ee(),Wa)).then(({injectStyle:e})=>{e("json-render",`
|
|
129
|
+
`;function il(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 an(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.add(n)}function ln(e,t){for(let n of t.split(/\s+/).filter(Boolean))e.classList.remove(n)}function sl(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 al(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function Fn(e,t={}){Q("transitions",ol);let n=il(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.enterFrom),an(e,n.enterActive),al(()=>{var s;ln(e,n.enterFrom),an(e,n.enterTo);let o=(s=t.duration)!=null?s:sl(e),i=()=>{ln(e,n.enterActive),ln(e,n.enterTo),r()};o<=0?i():setTimeout(i,o+20)})})}function $n(e,t={}){Q("transitions",ol);let n=il(t);return ne.reducedMotion?Promise.resolve():new Promise(r=>{an(e,n.leaveFrom),an(e,n.leaveActive),al(()=>{var s;ln(e,n.leaveFrom),an(e,n.leaveTo);let o=(s=t.duration)!=null?s:sl(e),i=()=>{ln(e,n.leaveActive),ln(e,n.leaveTo),r()};o<=0?i():setTimeout(i,o+20)})})}function Ht(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 Dt(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 cn(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 un(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 ll(e){let t=document;typeof t.startViewTransition=="function"&&!ne.reducedMotion?t.startViewTransition(e):e()}X();ee();function Yd(e,t,n){try{let o={t:"assign",op:"=",target:He(e),value:{t:"lit",v:n}};M(o,t)}catch(r){q(r,`assignment in "${e}"`)}}function pl(e){let t=E.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`)?_(e.getAttribute(`${t}duration`)):void 0}}b("text",({el:e,effect:t,evaluate:n})=>{t(()=>{e.textContent=Qe(n());let r=e.firstChild;r&&r.nodeType===3&&ti(r)})});b("html",e=>{let{el:t,effect:n,evaluate:r,scope:o}=e;ba(t),n(()=>{let i=r();for(let s of Array.from(t.children))U(s);t.innerHTML=i==null?"":String(i);for(let s of Array.from(t.children))W(s,o)})});b("show",({el:e,effect:t,evaluate:n})=>{let r=e.style.display==="none"?"":e.style.display,o=!0,i=pl(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,Fn(e,i)):$n(e,i).then(()=>{e.style.display="none"})})});b("if",({el:e,scope:t,expression:n,effect:r})=>{var f;let o=E.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(E.devtools?` v-if: ${n} `:"");(f=e.parentNode)==null||f.insertBefore(a,e);for(let p of i)ni(p.template),p.template.removeAttribute(`${o}if`),p.template.removeAttribute(`${o}else-if`),p.template.removeAttribute(`${o}else`),ti(p.template);let l=pl(e),c=-1,u=[],d=()=>{let p=u;if(u=[],!p.length)return;let m=()=>{for(let v of p)U(v),v.remove()};l&&p[0]instanceof HTMLElement?$n(p[0],l).then(m):m()};r(()=>{let p=-1;for(let g=0;g<i.length;g++){let h=i[g];if(h.expression===null||O(h.expression,t,"v-if")){p=g;break}}if(p===c||(c=p,d(),p===-1))return;let m=i[p].template,v=ml(m,a,t);u=v,l&&v[0]instanceof HTMLElement&&Fn(v[0],l)}),ke(e,d)},{priority:P.IF,terminal:!0});function ml(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&&(it(l,n),W(l,n))}else{let s=e.cloneNode(!0);i.push(s),it(s,n),r?(r.fragment.appendChild(s),r.pending.push([s,n])):(o.insertBefore(s,t),W(s,n))}return i}b("else-if",()=>{},{priority:P.IF,terminal:!0});b("else",()=>{},{priority:P.IF,terminal:!0});var Qd=/^\s*\(?\s*([^)]*?)\s*\)?\s+(?:in|of)\s+(.+?)\s*$/;b("for",({el:e,scope:t,expression:n,effect:r})=>{var g;let o=Qd.exec(n);if(!o){q(new Error(`Invalid syntax in v-for="${n}". Use "item in items".`),"v-for");return}let i=o[1].split(",").map(h=>h.trim()).filter(Boolean),s=o[2],[a,l,c]=i,u=E.prefix,d=e.getAttribute(":key")||e.getAttribute(`${u}bind:key`)||e.getAttribute(`${u}key`),f=document.createComment(E.devtools?` v-for: ${n} `:"");(g=e.parentNode)==null||g.insertBefore(f,e);let p=e.cloneNode(!0);p.removeAttribute(`${u}for`),p.removeAttribute(":key"),p.removeAttribute(`${u}bind:key`),p.removeAttribute(`${u}key`),ni(e);let m=[];ke(f,()=>{for(let h of m)for(let y of h.nodes)U(y),y.remove();m=[]}),r(()=>{var le,B,xe;let h=O(s,t,"v-for"),y=Gd(h,a,l,c),w=new Map;for(let te of m)w.set(te.key,te);let T=[],x=new Set,C={fragment:document.createDocumentFragment(),pending:[]};y.forEach((te,A)=>{let L=d?O(d,t.child(te),":key"):`__index_${A}`;d&&x.has(L)&&sa(e,L,n);let $=w.get(L);if($&&!x.has(L)){x.add(L);for(let[nu,ru]of Object.entries(te))$.data[nu]=ru;T.push($);return}let gt=t.reactiveChild(te),To=ml(p,f,gt,C);x.add(L),T.push({key:L,scope:gt,nodes:To,data:gt.data})}),C.fragment.firstChild&&((le=f.parentNode)==null||le.insertBefore(C.fragment,f));for(let[te,A]of C.pending)W(te,A);let N=new Set(T);for(let te of m)if(!(x.has(te.key)&&N.has(te)))for(let A of te.nodes)U(A),A.remove();let R=f;for(let te=T.length-1;te>=0;te--){let A=T[te],L=A.nodes[A.nodes.length-1];if(L&&L.nextSibling!==R)for(let $ of A.nodes)(B=f.parentNode)==null||B.insertBefore($,R);R=(xe=A.nodes[0])!=null?xe:R}m=T})},{priority:P.FOR,terminal:!0});function Gd(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 Xd=new Set(["disabled","checked","readonly","required","selected","hidden","open","multiple","autofocus","novalidate","inert"]),Jd=new Set(["href","src","action","formaction","xlink:href","ping","poster"]),Zd=/[\s\x00-\x1f]/g;function ef(e){let t=e.replace(Zd,"").toLowerCase();return t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text/html")||t.startsWith("data:application/xhtml")}function cl(e,t,n,r=!1,o=!1){if(t==="class")return gl(e,n);if(t==="style")return xi(e,n);if(E.sanitizeUrls&&!o&&t==="srcdoc"){Tt(`:srcdoc refused in ${Xe(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(E.sanitizeUrls&&!r){if(Jd.has(t)&&typeof n=="string"&&ef(n)){Tt(`value refused in :${t} of ${Xe(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)){Tt(`attribute "${t}" refused in ${Xe(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(Xd.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 ul=new WeakMap;function gl(e,t){let n=ul.get(e);n||(n=(e.getAttribute("class")||"").split(/\s+/).filter(Boolean),ul.set(e,n));let r=new Set(n);vl(t,r),e.setAttribute("class",Array.from(r).join(" ")),e.getAttribute("class")||e.removeAttribute("class")}function vl(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)vl(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 xi(e,t){if(t){if(typeof t=="string"){e.style.cssText=t;return}if(Array.isArray(t)){for(let n of t)xi(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)}}}b("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,u]of Object.entries(l))cl(e,c,u)});return}if(t==="key")return;let s=!!n.prop,a=!!n.dangerous;r(()=>{cl(e,t,o(),s,a)})},{priority:P.BIND});b("class",({el:e,effect:t,evaluate:n})=>{t(()=>gl(e,n()))});b("style",({el:e,effect:t,evaluate:n})=>{t(()=>xi(e,n()))});var dl={enter:["Enter"],esc:["Escape"],escape:["Escape"],space:[" ","Spacebar"],tab:["Tab"],delete:["Delete","Backspace"],backspace:["Backspace"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},tf=["ctrl","shift","alt","meta"];function fl(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=He(e),l=M(a,s);typeof l=="function"&&(a.t==="id"||a.t==="member")&&l.call(t.data,i?o:n)}catch(a){q(a,`event ${n.type} ("${e}")`)}}var nf={hover:"mouseenter",unhover:"mouseleave",tap:"click",press:"pointerdown",release:"pointerup",rightclick:"contextmenu",enterkey:"keydown",type:"input",submitform:"submit"},hl={hold(e,t,n,r){let o=_(typeof n.duration=="string"&&n.duration||Object.keys(n).find(u=>/^[\d.]+(ms|s)?$/.test(u))||e.getAttribute(`${E.prefix}hold-duration`)||800,800),i=null,s=!1,a=u=>{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(u)},o)},l=()=>{i&&clearTimeout(i),i=null,e.classList.remove("v-holding")},c=u=>{s&&(u.preventDefault(),u.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"])hl[`swipe${e}`]=(t,n,r,o)=>{let i=0,s=0,a=!1,l=u=>{a=!0,i=u.clientX,s=u.clientY},c=u=>{if(!a)return;a=!1;let d=u.clientX-i,f=u.clientY-s,p=40;(e==="left"?d<-p&&Math.abs(d)>Math.abs(f):e==="right"?d>p&&Math.abs(d)>Math.abs(f):e==="up"?f<-p&&Math.abs(f)>Math.abs(d):f>p&&Math.abs(f)>Math.abs(d))&&n(new CustomEvent(`swipe${e}`,{detail:{dx:d,dy:f}}))};t.addEventListener("pointerdown",l),window.addEventListener("pointerup",c),o(()=>{t.removeEventListener("pointerdown",l),window.removeEventListener("pointerup",c)})};function yl(e,t,n,r,o,i){var p;let s=(p=nf[t])!=null?p:t,a=hl[t];if(a){a(e,m=>{o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),fl(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 g of tf)if(o[g]&&!m[`${g}Key`])return;let v=Object.keys(o).filter(g=>g in dl||/^[a-z0-9]$/.test(g));if(v.length&&!v.some(h=>{let y=dl[h];return y?y.includes(m.key):m.key.toLowerCase()===h}))return}o.prevent&&m.preventDefault(),o.stop&&m.stopPropagation(),fl(n,r,m,e)}},u=o.debounce;u!==void 0&&(c=we(c,_(u===!0?250:u,250)));let d=o.throttle;d!==void 0&&(c=Dn(c,_(d===!0?250:d,250)));let f={capture:!!o.capture,once:!!o.once,passive:!!o.passive};l.addEventListener(s,c,f),i(()=>l.removeEventListener(s,c,f))}b("on",({el:e,arg:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{t&&yl(e,t,n,r,o,i)});var rf=["click","dblclick","input","change","keyup","keydown","keypress","mouseenter","mouseleave","mouseover","mousedown","mouseup","contextmenu","wheel","paste","dragstart","dragover","dragleave","drop"];for(let e of rf)b(e,({el:t,expression:n,scope:r,modifiers:o,cleanup:i})=>{yl(t,e,n,r,o,i)});b("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",u=a==="INPUT"&&l==="radio",d=a==="SELECT",f=d&&s.multiple,p=a==="INPUT"&&l==="file",m=l==="number"||l==="range",v=!!r.lazy,g=!!r.number||m,h=!!r.trim,y=r.debounce?_(r.debounce===!0?250:r.debounce,250):e.getAttribute(`${E.prefix}debounce`)?_(e.getAttribute(`${E.prefix}debounce`),250):0,w=v||d||c||u||p?"change":"input",T=()=>{var C,N;let x;if(c){let R=O(t,n,"v-model");if(Array.isArray(R)){let le=s.value,B=[...R],xe=B.indexOf(le);s.checked&&xe===-1?B.push(le):!s.checked&&xe>-1&&B.splice(xe,1),x=B}else x=s.checked}else if(u){if(!s.checked)return;x=s.value}else if(f)x=Array.from(s.selectedOptions).map(R=>R.value);else if(p)x=r.single?(N=(C=s.files)==null?void 0:C[0])!=null?N:null:s.files;else if(x=s.value,h&&typeof x=="string"&&(x=x.trim()),g&&typeof x=="string"){let R=x===""?null:Number(x);x=R===null||Number.isNaN(R)?x:R}Yd(t,n,x)};y>0&&(T=we(T,y)),s.addEventListener(w,T),i(()=>s.removeEventListener(w,T)),o(()=>{let x=O(t,n,"v-model");if(c){s.checked=Array.isArray(x)?x.includes(s.value):!!x;return}if(u){s.checked=String(x)===s.value;return}if(f){let N=Array.isArray(x)?x.map(String):[];for(let R of Array.from(s.options))R.selected=N.includes(R.value);return}if(p)return;let C=x==null?"":String(x);s.value!==C&&(s.value=C),d&&s.value!==C&&bt(()=>{s.value!==C&&(s.value=C)})})},{priority:P.MODEL});b("init",({el:e,expression:t,scope:n})=>{fe(()=>{let r=n.child({$el:e}),o=O(t,r,"v-init");typeof o=="function"&&o.call(n.data)})},{priority:P.INIT});b("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:P.REF});b("effect",({effect:e,evaluate:t})=>{e(()=>{t()})});b("watch",({el:e,expression:t,scope:n,effect:r})=>{let o=e.getAttribute(`${E.prefix}model`),i,s=!0;r(()=>{let a=o?O(o,n,"v-watch"):O(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}),u=O(t,c,"v-watch");typeof u=="function"&&u.call(n.data,a,l)}})});b("cloak",({el:e})=>{e.removeAttribute(`${E.prefix}cloak`)});b("once",({el:e,effect:t,evaluate:n})=>{let r=n();r!==void 0&&(e.textContent=Qe(r))});b("teleport",({el:e,expression:t,cleanup:n})=>{var s;let r=t.trim()||"body",o=r==="body"?document.body:document.querySelector(r);if(!o){q(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:P.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"])b(e,()=>{},{priority:P.TRANSITION});b("data",()=>{},{priority:P.DATA});b("component",()=>{},{priority:P.COMPONENT});X();ee();var El=()=>E.prefix;function D(e,t){return Le(e,`${El()}${t}`)}function Li(e,t){return ot(e,`${El()}${t}`)}function of(e,t){var s,a,l;let n=D(e,"target"),r=D(e,"loading"),o={},i=D(e,"headers");if(i){let c=O(i,t,"v-headers");c&&typeof c=="object"&&(o=c)}return{target:n?document.querySelector(n):null,swap:D(e,"swap")||"innerHTML",loadingTarget:r?document.querySelector(r):null,loadingClass:D(e,"loading-class")||"v-loading",disableWhileLoading:Li(e,"disable-loading"),confirmMessage:D(e,"confirm"),toastSuccess:D(e,"toast-success"),toastError:D(e,"toast-error"),onSuccess:D(e,"on-success"),onError:D(e,"on-error"),onComplete:D(e,"on-complete"),cacheMs:_((s=D(e,"cache"))!=null?s:void 0,0),retry:Number((a=D(e,"retry"))!=null?a:0),timeout:_((l=D(e,"timeout"))!=null?l:void 0,me.defaults.timeout),storeAs:D(e,"as"),jsonPath:D(e,"json-path"),templateSelector:D(e,"template"),offlineQueue:Li(e,"offline-queue"),headers:o,redirect:D(e,"redirect"),scrollTo:D(e,"scroll-to")}}function bl(e,t,n,r){var i,s;let o=a=>{for(let l of Array.from(a))l.nodeType===1&&W(l,r)};switch(n){case"none":return;case"delete":U(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);U(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)&&W(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))U(a);e.innerHTML=t,o(e.childNodes)}}}function Nr(e,t=0){if(e==null)return"";if(typeof e!="object")return Mt(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>${Mt(a)}</th>`).join(""),s=e.map(a=>`<tr>${o.map(l=>`<td>${Nr(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>${Nr(o,t+1)}</li>`).join("")}</ul>`}let n=Object.entries(e);return n.length?`<dl class="v-json-object">${n.map(([r,o])=>`<dt>${Mt(r)}</dt><dd>${Nr(o,t+1)}</dd>`).join("")}</dl>`:""}function sf(e,t,n,r){let o=document.querySelector(e);if(!o){q(new Error(`Template not found: ${e}`),"v-template");return}for(let s of Array.from(r.children))U(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 u=n.reactiveChild({item:a,index:s,...a&&typeof a=="object"?a:{}});for(let d of c)d.nodeType===1&&W(d,u)}}var Ti=new WeakMap;async function In(e){var d,f,p,m,v;let{el:t,scope:n,method:r}=e,o=of(t,n),i=Ge.has("confirm");if(o.confirmMessage&&!i&&!await af(o.confirmMessage))return;(d=Ti.get(t))==null||d.abort();let s=new AbortController;Ti.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 g=l!=null?l:t;"disabled"in g&&(g.disabled=!0)}},u=()=>{if(t.classList.remove(o.loadingClass),t.removeAttribute("aria-busy"),o.loadingTarget&&(o.loadingTarget.style.display="none"),o.disableWhileLoading){let g=l!=null?l:t;"disabled"in g&&(g.disabled=!1)}};c(),dn(t,"voodoo:before-request",{method:r,url:e.url});try{let g=await me.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}),h=wi(g.data,o.jsonPath);o.storeAs?n.set(o.storeAs,h):o.templateSelector?sf(o.templateSelector,h,n,a):typeof h=="string"?bl(a,h,o.swap,n):h!=null&&(lf(),bl(a,Nr(h),o.swap,n)),o.toastSuccess&&Pe.success(o.toastSuccess),o.onSuccess&&ki(o.onSuccess,n,t,{data:h,response:g}),dn(t,"voodoo:success",{data:h,response:g}),o.scrollTo&&((p=document.querySelector(o.scrollTo))==null||p.scrollIntoView({behavior:"smooth"})),o.redirect&&location.assign(o.redirect)}catch(g){if((g==null?void 0:g.name)==="AbortError")return;let h=g instanceof re?(m=Ei(g))!=null?m:g.message:(v=g==null?void 0:g.message)!=null?v:"Unknown error";o.toastError?Pe.error(o.toastError):o.onError||Pe.error(h),o.onError&&ki(o.onError,n,t,{error:g,message:h}),dn(t,"voodoo:error",{error:g,message:h}),q(g,`request ${r} ${e.url}`)}finally{u(),Ti.delete(t),o.onComplete&&ki(o.onComplete,n,t,{}),dn(t,"voodoo:complete",{})}}function dn(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function ki(e,t,n,r){var s;let o=t.child({$el:n,...r}),i=O(e,o,"HTTP callback");typeof i=="function"&&i.call(t.data,(s=r.data)!=null?s:r.error)}async function af(e){let t=globalThis.V;return t&&typeof t.confirm=="function"&&t.confirm!==globalThis.confirm?!!await t.confirm(e):globalThis.confirm(e)}var wl=!1;function lf(){wl||(wl=!0,Promise.resolve().then(()=>(Ee(),Ga)).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 sf(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 af({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||sf(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u: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=_((d=D(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=we(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var lf=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of lf)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{af({el:n,scope:r,cleanup:i,run:a=>{let l=In(o,r);if(!l)return;let c=D(n,"body")||D(n,"data-body"),u=c?O(c,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),f=d?O(d,r,"v-params"):void 0;Fn({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function In(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=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=In(n,t);r&&Fn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=In(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Fn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Fn({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=In(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),l=Number((f=D(e,"min-length"))!=null?f:0),c=we(()=>{let p=o.value.trim();p.length<l||Fn({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=D(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=Dr(()=>In(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((l=D(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=D(e,"retry"))!=null?c:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:ki(e,"manual"),onSuccess:f=>dn(e,"voodoo:success",{data:f}),onError:(f,p)=>dn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});va(ka);Ta(it);Ra(bl);Qa();Za();var jn=new Map;function yl(e,t){let n=jn.get(e);return n||jn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function cf(e,t){let n=yl(e,r=>{n(),t(r)});return n}function uf(e,t){let n=jn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){q(o,`event "${e}"`)}}function df(e,t){var n;if(!t){jn.delete(e);return}(n=jn.get(e))==null||n.delete(t)}function bl(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;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();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;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);(v=n.updated)==null||v.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:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function ff(e){return Object.defineProperties(je.data,Object.getOwnPropertyDescriptors(e)),je.data}var pf="0.12.1",Nr={...fi,version:pf,config:E,reactive:V,ref:Te,shallowRef:Io,computed:wt,effect:ve,watch:he,watchEffect:Bo,nextTick:bt,toRaw:ie,markRaw:kn,unref:jo,stop:Ut,effectScope:No,EffectScope:Re,flushSync:Ro,data:ff,store:xr,stores:St,removeStore:Na,storeNames:Oa,scope:je,component:Jt,components:ce,directive:bl,directives:Ge,magic:H,magics:Sn,createApp:Ha,start:ba,whenReady:br,whenElement:wr,walk:W,refresh:Ea,destroy:U,stopObserving:wa,getScope:Yt,findScope:De,addCleanup:ke,parseAttribute:Kt,parse:He,tokenize:ur,evaluate:M,evaluateIn:O,stringify:Qe,clearParseCache:Vs,globals:pe,http:me,request:at,HttpError:re,resource:Dr,toast:Pe,storage:G,session:Sr,cookie:Mr,cache:Cr,url:ct,theme:qe,clipboard:yi,screen:Ne,network:Rt,enter:On,leave:$n,fadeIn:cn,fadeOut:un,slideUp:Dt,slideDown:Ht,viewTransition:ol,injectStyle:Q,ensureTokens:se,on:yl,once:cf,off:df,emit:uf,use(e,t){dr(Nr,e,t)},onError(e){Ho(e)},instances:hr,Scope:xt,PRIORITY:P,VoodooSyntaxError:z,VoodooRuntimeError:Z};Pa(Nr);X();var mf=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 Ml(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Oe(e){return e.length<2?e:Array.from(new Set(e))}function Pt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Li(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 Cl(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function gf(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ze)return e.toArray();if(typeof e=="string")return Nt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Nt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Nt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Cl(o))return Li(o);let i=[];for(let s of gf(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Oe(i)}if(e instanceof ze)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 Oe(o)}return[]}function wl(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Cl(r.trim())?Li(r):[document.createTextNode(r)]}if(e instanceof ze)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 Or(e,t,n){let r=Ml(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!mf.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function vf(e,t){for(let[n,r]of Object.entries(t))Or(e,n,r)}function El(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 xl(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Rl=new WeakMap;function Tl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function kl(e){e.removeAttribute("hidden");let t=Rl.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 Ll(e){let t=e.style.display;t&&t!=="none"&&Rl.set(e,t),e.style.display="none"}var Al="input,select,textarea";function Sl(e){return e.matches(Al)?[e]:Array.from(e.querySelectorAll(Al))}function hf(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 $r=new WeakMap;function yf(e){let t=$r.get(e);return t||$r.set(e,t=[]),t}var ze=class e{constructor(t=[]){S(this,"length");S(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(Oe(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe([...this.elements,...Nt(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))U(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))U(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=Pt(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]=El(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[xl(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=xl(String(n));if(t.length<2){let i=this.elements[0];return i?El(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)vf(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Ml(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Or(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)Or(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)Or(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=Pt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Pt(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=Pt(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 wl(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=Nt(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=Nt(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 wl(t))r.insertBefore(o,n);U(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Nt(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);U(n),n.remove()}}return this}remove(){for(let t of this.elements)U(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))U(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 Pt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),yf(l).push({type:c,selector:o,handler:i,wrapped:u,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?Pt(t):null;for(let a of this.elements){let l=$r.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}$r.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)kl(t);return this}hide(){for(let t of this.elements)Ll(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Tl(n):t)?kl(n):Ll(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)un(n,t);return this}slideUp(t=240){for(let n of this.elements)Dt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ht(n,t);return this}slideToggle(t=240){for(let n of this.elements)Tl(n)?(n.removeAttribute("hidden"),Ht(n,t)):Dt(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 Sl(t)){if(!hf(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 Sl(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 u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=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(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=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&&U(n),W(n,De(n.parentNode));return this}destroy(){for(let t of this.elements)U(t);return this}};function Ai(e,t){if(typeof e=="function"){Si(e);let n=typeof document!="undefined"?document.documentElement:null;return new ze(n?[n]:[])}return new ze(Nt(e,t))}function Si(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Ca(()=>{try{e==null||e()}catch(n){q(n,"V.ready")}t()})})}function Hl(e){return new ze(Li(e))}X();ee();Ee();Ee();ee();var Mi=new WeakMap;function dt(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Fr(e,t){return ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`)}function j(e,t){let n=Mi.get(e);return n&&t in n?n[t]:dt(e,t)}function Ir(e,t,n){var o;let r=(o=Mi.get(e))!=null?o:{};r[t]=n,Mi.set(e,r)}function $(e){b(e,({el:t,expression:n})=>{Ir(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ue(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var bf=`
|
|
138
|
+
`)}))}function cf(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 uf({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||cf(e),[o,...i]=r.split(/[.\s]+/),s=_((u=D(e,"poll"))!=null?u: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=_((d=D(e,"debounce"))!=null?d:void 0,0),c=f=>{(e.tagName==="FORM"||e.href)&&f.preventDefault(),n(f)};l>0&&(c=we(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var df=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of df)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{uf({el:n,scope:r,cleanup:i,run:a=>{let l=jn(o,r);if(!l)return;let c=D(n,"body")||D(n,"data-body"),u=c?O(c,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),f=d?O(d,r,"v-params"):void 0;In({el:n,scope:r,method:t,url:l,body:u,params:f,event:a})}})});function jn(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=O(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=jn(n,t);r&&In({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=jn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){In({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),In({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});b("search",({el:e,scope:t,expression:n,cleanup:r})=>{var d,f;let o=e,i=jn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=_((d=D(e,"debounce"))!=null?d:void 0,300),l=Number((f=D(e,"min-length"))!=null?f:0),c=we(()=>{let p=o.value.trim();p.length<l||In({el:e,scope:t,method:"GET",url:i,params:{[s]:p}})},a),u=()=>c();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),c.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,u,d;let o=n.indexOf(":"),i=D(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=Pr(()=>jn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?O(D(e,"params"),t,"v-params"):void 0,cache:_((l=D(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=D(e,"retry"))!=null?c:0),timeout:_((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:_((d=D(e,"poll"))!=null?d:void 0,0),manual:Li(e,"manual"),onSuccess:f=>dn(e,"voodoo:success",{data:f}),onError:(f,p)=>dn(e,"voodoo:error",{error:f,message:p})});t.set(i,a),r(()=>a.stop())},{priority:P.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"])b(e,()=>{},{priority:P.TRANSITION});wa(Ma);Sa(it);Na(Tl);Za();rl();var Bn=new Map;function xl(e,t){let n=Bn.get(e);return n||Bn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function ff(e,t){let n=xl(e,r=>{n(),t(r)});return n}function pf(e,t){let n=Bn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){q(o,`event "${e}"`)}}function mf(e,t){var n;if(!t){Bn.delete(e);return}(n=Bn.get(e))==null||n.delete(t)}function Tl(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;b(e,i=>{var u,d;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();(u=n.created)==null||u.call(n,i.el,l(c)),(d=n.beforeMount)==null||d.call(n,i.el,l(c)),i.effect(()=>{var m,v;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);(v=n.updated)==null||v.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:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function gf(e){return Object.defineProperties(je.data,Object.getOwnPropertyDescriptors(e)),je.data}var vf="0.12.3",Or={...pi,version:vf,config:E,reactive:V,ref:Te,shallowRef:jo,computed:wt,effect:ve,watch:he,watchEffect:qo,nextTick:bt,toRaw:ie,markRaw:kn,unref:Bo,stop:Ut,effectScope:Oo,EffectScope:Re,flushSync:Ho,data:gf,store:Tr,stores:St,removeStore:Ia,storeNames:ja,scope:je,component:Jt,components:ce,directive:Tl,directives:Ge,magic:H,magics:Sn,createApp:Oa,start:Ta,whenReady:Rn,whenElement:Er,walk:W,refresh:La,destroy:U,stopObserving:ka,getScope:Yt,findScope:De,addCleanup:ke,parseAttribute:Kt,parse:He,tokenize:dr,evaluate:M,evaluateIn:O,stringify:Qe,clearParseCache:Ys,globals:pe,http:me,request:at,HttpError:re,resource:Pr,toast:Pe,storage:G,session:Mr,cookie:Cr,cache:Rr,url:ct,theme:qe,clipboard:bi,screen:Ne,network:Rt,enter:Fn,leave:$n,fadeIn:cn,fadeOut:un,slideUp:Dt,slideDown:Ht,viewTransition:ll,injectStyle:Q,ensureTokens:se,on:xl,once:ff,off:mf,emit:pf,use(e,t){pr(Or,e,t)},onError(e){Do(e)},instances:br,Scope:xt,PRIORITY:P,VoodooSyntaxError:z,VoodooRuntimeError:J};$a(Or);X();var hf=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 Dl(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Oe(e){return e.length<2?e:Array.from(new Set(e))}function Pt(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function Ai(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 Pl(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function yf(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ze)return e.toArray();if(typeof e=="string")return Nt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Nt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Nt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(Pl(o))return Ai(o);let i=[];for(let s of yf(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return Oe(i)}if(e instanceof ze)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 Oe(o)}return[]}function kl(e){if(e==null)return[];if(typeof e=="string"){let r=e;return Pl(r.trim())?Ai(r):[document.createTextNode(r)]}if(e instanceof ze)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 Fr(e,t,n){let r=Dl(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!hf.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function bf(e,t){for(let[n,r]of Object.entries(t))Fr(e,n,r)}function Ll(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 Al(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var Nl=new WeakMap;function Sl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Ml(e){e.removeAttribute("hidden");let t=Nl.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 Cl(e){let t=e.style.display;t&&t!=="none"&&Nl.set(e,t),e.style.display="none"}var Rl="input,select,textarea";function Hl(e){return e.matches(Rl)?[e]:Array.from(e.querySelectorAll(Rl))}function wf(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 $r=new WeakMap;function Ef(e){let t=$r.get(e);return t||$r.set(e,t=[]),t}var ze=class e{constructor(t=[]){S(this,"length");S(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(Oe(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe(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(Oe([...this.elements,...Nt(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))U(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))U(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=Pt(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]=Ll(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[Al(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=Al(String(n));if(t.length<2){let i=this.elements[0];return i?Ll(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)bf(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=Dl(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Fr(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)Fr(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)Fr(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=Pt(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Pt(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Pt(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=Pt(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 kl(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=Nt(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=Nt(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 kl(t))r.insertBefore(o,n);U(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Nt(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);U(n),n.remove()}}return this}remove(){for(let t of this.elements)U(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))U(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 Pt(t)){let u=d=>{if(!o){i.call(l,d);return}let f=d.target,p=f==null?void 0:f.closest(o);!p||!l.contains(p)||i.call(p,d)};l.addEventListener(c,u,s),Ef(l).push({type:c,selector:o,handler:i,wrapped:u,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?Pt(t):null;for(let a of this.elements){let l=$r.get(a);if(!l)continue;let c=[];for(let u of l){let d=!s||s.includes(u.type),f=o===null||u.selector===o,p=i===null||u.handler===i;d&&f&&p?a.removeEventListener(u.type,u.wrapped,u.options):c.push(u)}$r.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)Ml(t);return this}hide(){for(let t of this.elements)Cl(t);return this}toggle(t){for(let n of this.elements)(t===void 0?Sl(n):t)?Ml(n):Cl(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}fadeOut(t=220){for(let n of this.elements)un(n,t);return this}slideUp(t=240){for(let n of this.elements)Dt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),Ht(n,t);return this}slideToggle(t=240){for(let n of this.elements)Sl(n)?(n.removeAttribute("hidden"),Ht(n,t)):Dt(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 Hl(t)){if(!wf(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 Hl(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 u=l.name.endsWith("[]"),d=u?l.name.slice(0,-2):l.name,f=a,p;if(c==="checkbox"){if(!l.checked&&!u){n[d]=(r=n[d])!=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(u){let m=n[d];Array.isArray(m)?m.push(p):n[d]=[p];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(p):m===void 0||m===!1?n[d]=p:n[d]=[m,p];continue}n[d]=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&&U(n),W(n,De(n.parentNode));return this}destroy(){for(let t of this.elements)U(t);return this}};function Si(e,t){if(typeof e=="function"){Mi(e);let n=typeof document!="undefined"?document.documentElement:null;return new ze(n?[n]:[])}return new ze(Nt(e,t))}function Mi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{Pa(()=>{try{e==null||e()}catch(n){q(n,"V.ready")}t()})})}function Ol(e){return new ze(Ai(e))}X();ee();Ee();Ee();ee();var Ci=new WeakMap;function dt(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Ir(e,t){return ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`)}function j(e,t){let n=Ci.get(e);return n&&t in n?n[t]:dt(e,t)}function jr(e,t,n){var o;let r=(o=Ci.get(e))!=null?o:{};r[t]=n,Ci.set(e,r)}function F(e){b(e,({el:t,expression:n})=>{jr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function Ue(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=O(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var xf=`
|
|
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
|
-
`,ut=null;function Ae(e){if(typeof document=="undefined")return;Q("ui-live",
|
|
141
|
+
`,ut=null;function Ae(e){if(typeof document=="undefined")return;Q("ui-live",xf),(!ut||!ut.isConnected)&&(ut=document.createElement("div"),ut.className="v-visually-hidden",ut.setAttribute("role","status"),ut.setAttribute("aria-live","polite"),document.body.appendChild(ut));let t=ut;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Br(e,t,n){return hr(e,t).filter(r=>Qt(r,n)===e)}Ee();ee();var Tf=`
|
|
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 qn(){se(),Q("dnd",wf)}var fn=new Map,pn=new Map;function Ri(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 _e(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function Ef(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Dl(e){return _e(e).map((t,n)=>Ef(t,n))}function Pl(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var k=null,Bn=0;function xf(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 Nl(e,t){if(!(k!=null&&k.ghost))return;let n=k.axis==="y"?k.lastX:e,r=k.axis==="x"?k.lastY:t;k.ghost.style.transform=`translate3d(${Math.round(n-k.grabX)}px, ${Math.round(r-k.grabY)}px, 0)`}function Tf(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 kf(){if(!k)return;let e=56,t=16,n=k.lastX,r=k.lastY,o=document.elementFromPoint(n,r),i=Tf(o!=null?o:k.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 Lf(){let e=()=>{!k||k.keyboard||(kf(),Bn=requestAnimationFrame(e))};Bn=requestAnimationFrame(e)}function Af(){Bn&&cancelAnimationFrame(Bn),Bn=0}function Ol(e,t){let n=fn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Hi(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function $l(e,t){for(let n of pn.values())n.el.classList.toggle("v-drop-active",t&&Hi(n,e));for(let n of fn.values())n.el.classList.toggle("v-drop-active",t&&Ol(n.el,e))}function Sf(e,t,n,r){let o=Pl(e),i=null;for(let s of _e(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 Di(e,t){qn();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;k={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?_e(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"):(k.ghost=xf(e,n),Nl(t.x,t.y),Lf()),$l(k,!0),document.addEventListener("keydown",Il,!0),K(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Mf(e,t){var a,l,c;if(!k)return;k.lastX=e,k.lastY=t,Nl(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;k.mode==="sort"&&r&&Ol(r,k)?(k.overList&&k.overList!==r&&k.overList.classList.remove("v-drop-over"),k.overList=r,r.classList.add("v-drop-over"),Sf(r,k.item,e,t)):k.overList&&!r&&k.overList.classList.remove("v-drop-over");let i=o?pn.get(o):void 0,s=i?Hi(i,k):!1;k.overDrop&&k.overDrop!==o&&(k.overDrop.classList.remove("v-drop-over"),k.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),k.overDrop=o),(c=k.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Cf(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function Fl(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"),$l(e,!1),Af(),document.removeEventListener("keydown",Il,!0),k=null}function Pi(){var i;let e=k;if(!e)return;let t=e.item.parentElement,n=t?_e(t).indexOf(e.item):-1,r=e.overDrop,o=r?pn.get(r):void 0;if(e.mode==="sort"&&t&&fn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Dl(t)};K(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&K(e.startList,"voodoo:sorted",{...a,order:Dl(e.startList)}),Ae(`Item moved to position ${n+1} of ${_e(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),Ue(o.expression,o.scope,r,a,s),Ae("Item dropped in drop zone")}K(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),Fl(e)}function Ci(){let e=k;e&&(Cf(e),K(e.item,"voodoo:drag-cancel",{item:e.item}),Ae("Drag canceled"),Fl(e))}function Il(e){!k||e.key!=="Escape"||(e.preventDefault(),Ci())}function jl(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,Di(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),Mf(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=p=>{p.pointerId===o&&(a&&Pi(),c())},d=()=>{a&&Ci(),c()},f=p=>{if(p.button!==0||k)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&Ci(),c()})}function Rf(e){return e?Array.from(fn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function Hf(e,t){if(!k)return!1;let n=e.parentElement;if(!n)return!1;let r=Pl(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=_e(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]),Ae(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Rf(k.group),c=l.indexOf(n);if(c===-1)return!1;let u=l[c+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),Ae(`Moved to list ${l.indexOf(u)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Df(e){return Array.from(pn.values()).filter(t=>Hi(t,e)).map(t=>t.el)}b("dnd-group",({el:e,expression:t})=>{qn();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});b("sortable",({el:e,expression:t,cleanup:n})=>{qn(),e.classList.add("v-sortable");let r=j(e,"sortable-handle")||t.trim()||null,o={el:e,group:Ri(e,j(e,"sortable-group")),handle:r};fn.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 _e(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of _e(e))i(l)});s==null||s.observe(e,{childList:!0}),jl(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=_e(e).find(u=>u===l||u.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let u=_e(e).find(d=>d===c||d.contains(c));if(u){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),k&&k.item===u){Pi(),Ae("Item dropped");return}if(k)return;Di(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ae("Item grabbed. Use arrow keys to move and space to drop.");return}!k||k.item!==u||l.key.startsWith("Arrow")&&Hf(u,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),fn.delete(e)})});$("sortable-group");$("sortable-handle");b("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;qn(),e.classList.add("v-draggable");let o=j(e,"draggable-handle")||null,i=(j(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=j(e,"draggable-data")||t.trim(),l=Ri(e,j(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?O(a,n,"v-draggable-data"):null;jl(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,f=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!k||(k.overDrop=v,ne.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),Ae(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},p=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),k&&k.item===e){Pi(),u=[];return}if(k)return;Di(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=k?Df(k):[],d=0,u.length?f():Ae("No targets available");return}if(!(!k||k.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,f();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let v of u)v.classList.remove("v-drop-over")})});$("draggable-handle");$("draggable-axis");$("draggable-data");$("draggable-group");b("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{qn(),e.classList.add("v-droppable");let o={el:e,group:Ri(e,j(e,"droppable-group")),accept:j(e,"droppable-accept"),expression:t,scope:n};pn.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{pn.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});$("droppable-accept");$("droppable-group");var Pf=`
|
|
165
|
+
`;function zn(){se(),Q("dnd",Tf)}var fn=new Map,pn=new Map;function Hi(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 _e(e){return Array.from(e.children).filter(t=>!t.classList.contains("v-drag-ghost"))}function kf(e,t){var n;return(n=e.getAttribute("data-id"))!=null?n:e.id||String(t)}function Fl(e){return _e(e).map((t,n)=>kf(t,n))}function $l(e){let t=getComputedStyle(e);return t.display.includes("flex")?t.flexDirection.startsWith("row"):t.display.includes("grid")?t.gridAutoFlow.startsWith("column"):!1}var k=null,qn=0;function Lf(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 Il(e,t){if(!(k!=null&&k.ghost))return;let n=k.axis==="y"?k.lastX:e,r=k.axis==="x"?k.lastY:t;k.ghost.style.transform=`translate3d(${Math.round(n-k.grabX)}px, ${Math.round(r-k.grabY)}px, 0)`}function Af(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 Sf(){if(!k)return;let e=56,t=16,n=k.lastX,r=k.lastY,o=document.elementFromPoint(n,r),i=Af(o!=null?o:k.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 Mf(){let e=()=>{!k||k.keyboard||(Sf(),qn=requestAnimationFrame(e))};qn=requestAnimationFrame(e)}function Cf(){qn&&cancelAnimationFrame(qn),qn=0}function jl(e,t){let n=fn.get(e);return n?e===t.startList?!0:!n.group||!t.group?!1:n.group===t.group:!1}function Di(e,t){return!(e.accept&&!t.item.matches(e.accept)||e.group&&e.group!==t.group)}function Bl(e,t){for(let n of pn.values())n.el.classList.toggle("v-drop-active",t&&Di(n,e));for(let n of fn.values())n.el.classList.toggle("v-drop-active",t&&jl(n.el,e))}function Rf(e,t,n,r){let o=$l(e),i=null;for(let s of _e(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 Pi(e,t){zn();let n=e.getBoundingClientRect(),r=t.mode==="sort"?e.parentElement:null;k={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?_e(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"):(k.ghost=Lf(e,n),Il(t.x,t.y),Mf()),Bl(k,!0),document.addEventListener("keydown",zl,!0),K(e,"voodoo:drag-start",{item:e,data:t.data,group:t.group})}function Hf(e,t){var a,l,c;if(!k)return;k.lastX=e,k.lastY=t,Il(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;k.mode==="sort"&&r&&jl(r,k)?(k.overList&&k.overList!==r&&k.overList.classList.remove("v-drop-over"),k.overList=r,r.classList.add("v-drop-over"),Rf(r,k.item,e,t)):k.overList&&!r&&k.overList.classList.remove("v-drop-over");let i=o?pn.get(o):void 0,s=i?Di(i,k):!1;k.overDrop&&k.overDrop!==o&&(k.overDrop.classList.remove("v-drop-over"),k.overDrop=null),o&&s&&(o.classList.add("v-drop-over"),k.overDrop=o),(c=k.ghost)==null||c.classList.toggle("v-drag-invalid",!!o&&!s)}function Df(e){e.startParent&&(e.startNext&&e.startNext.parentNode===e.startParent?e.startParent.insertBefore(e.item,e.startNext):e.startParent.appendChild(e.item))}function ql(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"),Bl(e,!1),Cf(),document.removeEventListener("keydown",zl,!0),k=null}function Ni(){var i;let e=k;if(!e)return;let t=e.item.parentElement,n=t?_e(t).indexOf(e.item):-1,r=e.overDrop,o=r?pn.get(r):void 0;if(e.mode==="sort"&&t&&fn.has(t)&&(t!==e.startList||n!==e.startIndex)){let a={item:e.item,oldIndex:e.startIndex,newIndex:n,from:e.startList,to:t,order:Fl(t)};K(t,"voodoo:sorted",a),e.startList&&e.startList!==t&&K(e.startList,"voodoo:sorted",{...a,order:Fl(e.startList)}),Ae(`Item moved to position ${n+1} of ${_e(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),Ue(o.expression,o.scope,r,a,s),Ae("Item dropped in drop zone")}K(e.item,"voodoo:drag-end",{item:e.item,data:e.data}),ql(e)}function Ri(){let e=k;e&&(Df(e),K(e.item,"voodoo:drag-cancel",{item:e.item}),Ae("Drag canceled"),ql(e))}function zl(e){!k||e.key!=="Escape"||(e.preventDefault(),Ri())}function Ul(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,Pi(r,{mode:t.mode,data:t.data(),group:t.group(),axis:t.axis(),pointerId:o,x:i,y:s})}p.preventDefault(),Hf(p.clientX,p.clientY)}},c=()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),r=null,o=-1,a=!1},u=p=>{p.pointerId===o&&(a&&Ni(),c())},d=()=>{a&&Ri(),c()},f=p=>{if(p.button!==0||k)return;let m=p.target;if(!m||m.closest('input,textarea,select,option,[contenteditable="true"]')||t.handle&&!m.closest(t.handle))return;let v=t.itemFrom(m);v&&(r=v,o=p.pointerId,i=p.clientX,s=p.clientY,a=!1,window.addEventListener("pointermove",l,{passive:!1}),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",d))};e.addEventListener("pointerdown",f),n(()=>{e.removeEventListener("pointerdown",f),a&&Ri(),c()})}function Pf(e){return e?Array.from(fn.values()).filter(t=>t.group===e).map(t=>t.el).sort((t,n)=>t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):[]}function Nf(e,t){if(!k)return!1;let n=e.parentElement;if(!n)return!1;let r=$l(n),o=t==="ArrowDown"||r&&t==="ArrowRight",i=t==="ArrowUp"||r&&t==="ArrowLeft",s=_e(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]),Ae(`Position ${l+1} of ${s.length}`),e.focus(),!0)}if(!r&&(t==="ArrowLeft"||t==="ArrowRight")){let l=Pf(k.group),c=l.indexOf(n);if(c===-1)return!1;let u=l[c+(t==="ArrowRight"?1:-1)];return u?(u.appendChild(e),Ae(`Moved to list ${l.indexOf(u)+1} of ${l.length}`),e.focus(),!0):!1}return!1}function Of(e){return Array.from(pn.values()).filter(t=>Di(t,e)).map(t=>t.el)}b("dnd-group",({el:e,expression:t})=>{zn();let n=t.trim()||"default";e.setAttribute("data-v-dnd-group",n),e.classList.add("v-dnd-group")});b("sortable",({el:e,expression:t,cleanup:n})=>{zn(),e.classList.add("v-sortable");let r=j(e,"sortable-handle")||t.trim()||null,o={el:e,group:Hi(e,j(e,"sortable-group")),handle:r};fn.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 _e(e))i(l);let s=typeof MutationObserver=="undefined"?null:new MutationObserver(()=>{for(let l of _e(e))i(l)});s==null||s.observe(e,{childList:!0}),Ul(e,{mode:"sort",handle:r,group:()=>o.group,data:()=>null,axis:()=>null,itemFrom:l=>{let c=_e(e).find(u=>u===l||u.contains(l));return c!=null?c:null}},n);let a=l=>{let c=l.target;if(!c)return;let u=_e(e).find(d=>d===c||d.contains(c));if(u){if(l.key===" "||l.key==="Spacebar"){if(l.preventDefault(),k&&k.item===u){Ni(),Ae("Item dropped");return}if(k)return;Pi(u,{mode:"sort",data:null,group:o.group,axis:null,pointerId:-1,x:0,y:0,keyboard:!0}),Ae("Item grabbed. Use arrow keys to move and space to drop.");return}!k||k.item!==u||l.key.startsWith("Arrow")&&Nf(u,l.key)&&l.preventDefault()}};e.addEventListener("keydown",a),n(()=>{e.removeEventListener("keydown",a),s==null||s.disconnect(),fn.delete(e)})});F("sortable-group");F("sortable-handle");b("draggable",({el:e,expression:t,scope:n,cleanup:r})=>{var m;zn(),e.classList.add("v-draggable");let o=j(e,"draggable-handle")||null,i=(j(e,"draggable-axis")||"").trim().toLowerCase(),s=i==="x"||i==="y"?i:null,a=j(e,"draggable-data")||t.trim(),l=Hi(e,j(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?O(a,n,"v-draggable-data"):null;Ul(e,{mode:"free",handle:o,group:()=>l,data:c,axis:()=>s,itemFrom:()=>e},r);let u=[],d=0,f=()=>{u.forEach((g,h)=>g.classList.toggle("v-drop-over",h===d));let v=u[d];!v||!k||(k.overDrop=v,ne.reducedMotion?v.scrollIntoView({block:"nearest"}):v.scrollIntoView({block:"nearest",behavior:"smooth"}),Ae(v.getAttribute("aria-label")||`Target ${d+1} of ${u.length}`))},p=v=>{if(v.key===" "||v.key==="Spacebar"){if(v.preventDefault(),k&&k.item===e){Ni(),u=[];return}if(k)return;Pi(e,{mode:"free",data:c(),group:l,axis:s,pointerId:-1,x:0,y:0,keyboard:!0}),u=k?Of(k):[],d=0,u.length?f():Ae("No targets available");return}if(!(!k||k.item!==e||!u.length)){if(v.key==="ArrowDown"||v.key==="ArrowRight"){v.preventDefault(),d=(d+1)%u.length,f();return}(v.key==="ArrowUp"||v.key==="ArrowLeft")&&(v.preventDefault(),d=(d-1+u.length)%u.length,f())}};e.addEventListener("keydown",p),r(()=>{e.removeEventListener("keydown",p);for(let v of u)v.classList.remove("v-drop-over")})});F("draggable-handle");F("draggable-axis");F("draggable-data");F("draggable-group");b("droppable",({el:e,expression:t,scope:n,cleanup:r})=>{zn(),e.classList.add("v-droppable");let o={el:e,group:Hi(e,j(e,"droppable-group")),accept:j(e,"droppable-accept"),expression:t,scope:n};pn.set(e,o),e.hasAttribute("aria-dropeffect")||e.setAttribute("aria-dropeffect","move"),r(()=>{pn.delete(e),e.classList.remove("v-drop-over","v-drop-active")})});F("droppable-accept");F("droppable-group");var Ff=`
|
|
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 J(){se(),Q("ui",Pf)}function mn(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 Ze(e,t){return e.id||(e.id=ue(`${t}-`)),e.id}var Wl='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 zn(e){return Array.from(e.querySelectorAll(Wl)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function zr(e,t){let n=zn(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 ye(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 Ni=0,Kl="";function Yl(){if(Ni++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Kl=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Ql(){Ni!==0&&(--Ni>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Kl))}function Gl(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function Nf(e,t=!0){if(e.removeAttribute("hidden"),t&&!ne.reducedMotion){cn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function Of(e,t=!0){if(t&&!ne.reducedMotion){un(e);return}e.style.display="none"}var $f={top:"bottom",bottom:"top",left:"right",right:"left"};function Xl(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function Jl(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},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(c[d]<u[d]){let m=$f[d];if(c[m]>=u[m])d=m;else for(let v of Object.keys(c))c[v]-u[v]>c[d]-u[d]&&(d=v)}let f=0,p=0;return d==="top"||d==="bottom"?(f=d==="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=d==="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",d),d}var Br=[],Bl=!1,Ff={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:"?"},If=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function Fi(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"?If?n.meta=!0:n.ctrl=!0:n.key=(r=Ff[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function jf(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 Bf(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 Zl(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 qf(e){if(e.defaultPrevented)return;let t=Bf(e.target);for(let n of[...Br])for(let r of n.combos)if(jf(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function Ur(e,t,n={}){let r=e.split(",").map(i=>Fi(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return Br.push(o),Bl||(Bl=!0,document.addEventListener("keydown",qf)),()=>{let i=Br.indexOf(o);i>-1&&Br.splice(i,1)}}b("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{J();let o=mn(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Ze(o,"v-toggle")),ye(e,r);let a=i?o.classList.contains(i):!Gl(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(Of(o,s),a=!1):(Nf(o,s),a=!0),l(),K(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Oi=class{constructor(t){S(this,"panel");S(this,"triggers",new Set);S(this,"listeners",new Set);S(this,"open");S(this,"duration");this.panel=t,this.duration=_(j(t,"collapse-duration"),240);let n=(j(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!Gl(t),t.classList.add("v-collapse-panel"),Ze(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"),ne.reducedMotion?this.panel.style.removeProperty("display"):Ht(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ne.reducedMotion?this.panel.style.display="none":Dt(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},ql=new WeakMap;function Ii(e){let t=ql.get(e);return t||ql.set(e,t=new Oi(e)),t}b("collapse",({el:e})=>{J(),Ii(e)});b("collapse-toggle",({el:e,expression:t,cleanup:n})=>{J();let r=mn(e,t);if(!r)return;let o=Ii(r);o.triggers.add(e),o.sync(),ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});$("collapse-duration");var qr=class{constructor(t,n,r){S(this,"trigger");S(this,"panel");S(this,"kind");S(this,"placement");S(this,"open",!1);S(this,"lastFocus",null);S(this,"homeParent");S(this,"homeNext");S(this,"reposition",()=>{this.open&&Jl(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});S(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});S(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&zr(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=Xl(j(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Ze(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?ec(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=zn(this.panel)[0])==null||t.focus()),K(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)};ne.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),K(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 ec(e){J(),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"))}}b("dropdown-menu",({el:e})=>{ec(e)});b("dropdown",({el:e,expression:t,cleanup:n})=>{J();let r=mn(e,t);if(!r)return;let o=new qr(e,r,"menu");ye(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 u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.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()})});b("popover",({el:e,expression:t,cleanup:n})=>{J();let r=mn(e,t);if(!r)return;let o=new qr(e,r,"dialog");ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});$("dropdown-position");$("popover-position");b("tooltip",({el:e,expression:t,cleanup:n})=>{J();let r=t.trim();if(!r)return;let o=Xl(j(e,"tooltip-position"),"top"),i=_(j(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Wl);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ue("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&Jl(e,a,o)},d=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),ne.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,d()},i))},m=g=>{g.key==="Escape"&&f()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),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",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});$("tooltip-position");$("tooltip-delay");b("tabs",({el:e,expression:t,cleanup:n})=>{J();let r=jr(e,"tab","tabs"),o=jr(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>dt(g,"tab")||String(h),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=Fr(e,"tabs-url")?dt(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),w=o.find(T=>dt(T,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),Ze(g,"v-tab"),w&&(Ze(w,"v-panel"),w.setAttribute("role","tabpanel"),w.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",w.id))});let c="",u=(g,h=!1)=>{if(r.some((y,w)=>i(y,w)===g)){c=g,r.forEach((y,w)=>{let T=i(y,w)===g;y.setAttribute("aria-selected",String(T)),y.setAttribute("tabindex",T?"0":"-1"),y.classList.toggle("v-active",T),T&&h&&y.focus()});for(let y of o)y.hidden=dt(y,"tab-panel")!==g;l&&ct.set(l,g),K(e,"voodoo:tab",{id:g})}},d=g=>{let h=Qt(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},f=g=>{let h=Qt(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),w=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",x=-1;g.key===w?x=(y+1)%r.length:g.key===T?x=(y-1+r.length)%r.length:g.key==="Home"?x=0:g.key==="End"&&(x=r.length-1),x!==-1&&(g.preventDefault(),u(i(r[x],x),!0))},p=()=>{if(!l)return;let g=ct.get(l);g&&g!==c&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let v=(l?ct.get(l):void 0)||t.trim()||i(r[0],0);u(v),c||u(i(r[0],0))});$("tab");$("tab-panel");$("tabs-url");b("accordion",({el:e,cleanup:t})=>{J();let n=jr(e,"accordion-item","accordion");if(!n.length)return;let r=Fr(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,u=l.lastElementChild;if(!c||!u||c===u)continue;let d=(dt(l,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let f=Ii(u);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"),Ze(u,"v-accordion-panel"),c.setAttribute("aria-controls",u.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",Ze(c,"v-accordion-header"))),o.push(c),i.push(f)}let s=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;l.preventDefault();let d=i[u];if(r&&!d.open)for(let p of i)p!==d&&p.hide();d.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let d=-1;l.key==="ArrowDown"?d=(u+1)%o.length:l.key==="ArrowUp"?d=(u-1+o.length)%o.length:l.key==="Home"?d=0:l.key==="End"&&(d=o.length-1),d!==-1&&(l.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});$("accordion-item");$("accordion-single");var $i=class{constructor(t){S(this,"origem",null);S(this,"panel");S(this,"triggers",new Set);S(this,"open",!1);S(this,"backdrop",null);S(this,"lastFocus",null);S(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&zr(this.panel,t)}});S(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=(j(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"),Ze(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",Ze(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(),Yl();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ne.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=zn(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),K(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))};ne.reducedMotion?t():setTimeout(t,300),Ql(),(r=this.lastFocus)==null||r.focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},zl=new WeakMap;function ji(e){let t=zl.get(e);return t||zl.set(e,t=new $i(e)),t}b("drawer-content",({el:e})=>{J(),ji(e)});function tc(e,t,n){J();let r=mn(e,t);if(!r)return;let o=ji(r);o.triggers.add(e),o.sync(),ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}b("drawer",({el:e,expression:t,cleanup:n})=>{tc(e,t,n)});b("offcanvas",({el:e,expression:t,cleanup:n})=>{tc(e,t,n)});b("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?mn(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Qt(e,"drawer-content");if(!r)return;ye(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),ji(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});$("drawer-side");b("theme-toggle",({el:e,cleanup:t})=>{ye(e,t);let n=()=>{let i=qe.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=qe.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),qe.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});b("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:P.INIT});b("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&zr(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&fe(()=>{var l;return((l=zn(e)[0])!=null?l:e).focus()}),i=a}):fe(()=>{var a;return((a=zn(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});b("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)||Ue(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});b("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||Ue(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});b("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=Ur(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=Fi(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Zl(s)),r(i)});b("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(j(e,"scroll-offset")||"0")||0,a=ne.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(d){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let u=l;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=j(e,"scrollspy-class")||"v-active",o=parseFloat(j(e,"scroll-offset")||"0")||0,i=n.map(c=>{let u=c.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:c,section:d}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(c=u);if(c.link!==s){s=c.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}K(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Hn(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)})});$("scroll-offset");$("scrollspy-class");b("sticky",({el:e,expression:t,cleanup:n})=>{J();let r=parseFloat(t.trim()||j(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())});$("sticky-offset");b("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"){Ue(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(Ue(t,n,e,void 0,d),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});b("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=j(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=Ue(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,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(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});$("infinite-distance");function nc(e,t,n,r){if(J(),!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=j(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())}b("lazy-src",({el:e,expression:t,cleanup:n})=>{nc(e,t.trim(),n,!1)});b("lazy-bg",({el:e,expression:t,cleanup:n})=>{nc(e,t.trim(),n,!0)});$("lazy-error");b("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{J();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 Bi(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 qi(e,t){J();let n=j(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ae(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function rc(e,t){var r;let n=j(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()}b("copy",({el:e,expression:t,cleanup:n})=>{J(),ye(e,n);let r=o=>{o.preventDefault();let i=rc(e,t);i&&Bi(i).then(s=>{qi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("copy-from",({el:e,expression:t,cleanup:n})=>{if(J(),Ir(e,"copy-from",t),Fr(e,"copy"))return;ye(e,n);let r=o=>{o.preventDefault();let i=rc(e,"");i&&Bi(i).then(s=>{qi(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("copy-label");function zf(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>${Mt(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)}b("print",({el:e,expression:t,cleanup:n})=>{ye(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&zf(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("share",({el:e,expression:t,cleanup:n})=>{J(),ye(e,n);let r=o=>{o.preventDefault();let i=t.trim()||j(e,"share-url")||location.href,s={title:j(e,"share-title")||document.title,url:i},a=j(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>K(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}Bi(i).then(c=>{qi(e,c),K(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("share-title");$("share-url");$("share-text");b("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;ye(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)})});b("download",({el:e,expression:t,cleanup:n})=>{ye(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=j(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),K(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});$("download-name");b("resizable",({el:e,expression:t,cleanup:n})=>{J();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,u)=>{let d=0,f=0,p=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,p+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-f)}px`)},g=h=>{var y;(y=c.releasePointerCapture)==null||y.call(c,h.pointerId),c.removeEventListener("pointermove",v),c.removeEventListener("pointerup",g),c.removeEventListener("pointercancel",g),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",h=>{var w;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,f=h.clientY,p=y.width,m=y.height,(w=c.setPointerCapture)==null||w.call(c,h.pointerId),c.addEventListener("pointermove",v),c.addEventListener("pointerup",g),c.addEventListener("pointercancel",g)}),c.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,w=e.getBoundingClientRect(),T=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${w.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,w.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${w.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,w.height-y)}px`:T=!1,T&&(h.preventDefault(),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",c),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),l(u,c),e.appendChild(u),s.push(u)}n(()=>{for(let c of s)c.remove()})});function Ul(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Uf(){let e=[];for(let t of gr(document,"command-item")){let n=(dt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:j(t,"command-hint")||"",el:t}))}return e}function _l(){if(J(),document.querySelector(".v-command"))return;let e=Uf(),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=ue("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Yl();let s=e,a=0,l=m=>{let v=m.target;!v||n.contains(v)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),Ql(),t==null||t.focus()},u=()=>{let m=s[a];m&&(c(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let w=document.createElement("span");if(w.textContent=g.label,y.appendChild(w),g.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=g.hint,y.appendChild(T)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},f=()=>{let m=Ul(o.value.trim());s=m?e.filter(v=>Ul(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&zr(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),d(),o.focus(),document.addEventListener("focusin",l,!0)}b("command",({el:e,expression:t,cleanup:n})=>{J();let r=t.trim()||j(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),_l()},i=Ur(r,()=>_l(),{allowInInput:!0}),s=Fi(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",Zl(s)),ye(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});b("command-item",({el:e,expression:t})=>{Ir(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});$("command-key");$("command-hint");var Vl=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];b("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=_(j(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,Ue(t,n,e,void 0,{idle:!0,after:o}),K(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let u of Vl)window.addEventListener(u,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let u of Vl)window.removeEventListener(u,c)})});$("idle-after");function oc(e,t,n,r,o,i){let s=a=>{Ue(t,n,e,a,{online:navigator.onLine}),K(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&fe(()=>s())}b("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{oc(e,t,n,o,"online",!!r.immediate)});b("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{oc(e,t,n,o,"offline",r["no-immediate"]!==!0)});X();ee();Ee();X();ee();Ee();var $e={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 sc(e,t){var i,s,a,l,c,u;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:((u=(c=r[1])!=null?c:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,f)=>f in o?o[f]:d)}var Wr=new Map;function I(e,t,n){let r=e.toLowerCase();Wr.set(r,{name:r,fn:t,message:n}),n&&!$e[r]&&($e[r]=n),b(`validate-${r}`,({el:o,cleanup:i})=>{eo(o,i)})}function et(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function _f(e,t){return et(e,t)!==null}var Vf=new Set(["INPUT","SELECT","TEXTAREA"]),Wf=new Set(["submit","button","reset","image"]);function Se(e){var t;return!!e&&typeof e=="object"&&Vf.has((t=e.tagName)!=null?t:"")}function Ve(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function Vn(e){var n;let t=Ve(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 _i(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Kf(e){var o,i;let t=et(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${_r(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 _r(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Kr(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 Se(c)?c:null}let o=r.querySelector(`[name="${_r(n)}"]`);if(Se(o))return o;let i=document.getElementById(n);return Se(i)?i:null}var Yf=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,Qf=/^-?\d+$/,Gf=/^-?\d+(?:[.,]\d+)?$/,Xf=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,Jf=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function Wn(e){return e.replace(/\D/g,"")}function Yr(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function Zf(e){let t=Wn(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 ep(e){let t=Wn(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 tp(e){let t=Wn(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 np(e){let t=Wn(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 Ot(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 Qr(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=Ot(e);if(r)return r;let o=Kr(t,e);return o?Ot(Vn(o)):null}I("required",(e,t,n)=>{let r=Ve(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});I("email",e=>Yf.test(e.trim()));I("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}});I("number",e=>e.trim()!==""&&Number.isFinite(Yr(e)));I("integer",e=>Qf.test(e.trim()));I("decimal",(e,t)=>{var i;let n=e.trim();if(!Gf.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});I("alpha",e=>Xf.test(e.trim().replace(/\s+/g,"")));I("alphanumeric",e=>Jf.test(e.trim().replace(/\s+/g,"")));I("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));I("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));I("min",(e,t,n)=>{let r=Qr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()>=r.getTime()}return Yr(e)>=Number(t!=null?t:0)});I("max",(e,t,n)=>{let r=Qr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()<=r.getTime()}return Yr(e)<=Number(t!=null?t:1/0)});I("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Yr(e);return Number.isFinite(o)&&o>=n&&o<=r});I("match",(e,t,n)=>{if(!t)return!0;let r=Kr(n,t);return r?Vn(r)===e:!0});I("same",(e,t,n)=>{if(!t)return!0;let r=Kr(n,t);return!r||Vn(r)===e});I("different",(e,t,n)=>{if(!t)return!0;let r=Kr(n,t);return!r||Vn(r)!==e});I("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=et(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${E.prefix}regex: ${t}`),!0}});I("date",e=>Ot(e)!==null);I("after",(e,t,n)=>{let r=Qr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()>r.getTime()});I("before",(e,t,n)=>{let r=Qr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()<r.getTime()});I("accepted",(e,t,n)=>{let r=Ve(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});I("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("phone",e=>np(e));I("cpf",e=>Zf(e));I("cnpj",e=>ep(e));I("cep",e=>Wn(e).length===8);I("creditcard",e=>tp(e));I("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:sc($e.strongpassword,{param:String(n)})});I("unique",async(e,t,n)=>{let r=t||et(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await me.get(r,{params:{value:e,field:_i(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:$e.unique:o?$e.unique:!0}catch(o){if(o instanceof re){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return $e.unique}return!0}});var rp={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},op=new Set(["required","accepted"]);function ip(e){var o;let t=null;if(e.startsWith(E.prefix)?t=e.slice(E.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=rp[t])!=null?o:t;return Wr.has(r)?r:null}function Vi(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!Wr.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of da(e)){let f=ip(u);if(f){if(d.trim()==="false"){n.add(f);continue}r(f,d)}}let o=Ve(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((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var sp=`
|
|
270
|
+
`;function Z(){se(),Q("ui",Ff)}function mn(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 Ze(e,t){return e.id||(e.id=ue(`${t}-`)),e.id}var Gl='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 Un(e){return Array.from(e.querySelectorAll(Gl)).filter(t=>!t.hasAttribute("disabled")&&t.getClientRects().length>0)}function Ur(e,t){let n=Un(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 ye(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 Oi=0,Xl="";function Jl(){if(Oi++>0)return;let e=window.innerWidth-document.documentElement.clientWidth;Xl=document.body.style.paddingRight,e>0&&(document.body.style.paddingRight=`${e}px`),document.body.classList.add("v-scroll-lock")}function Zl(){Oi!==0&&(--Oi>0||(document.body.classList.remove("v-scroll-lock"),document.body.style.paddingRight=Xl))}function ec(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function $f(e,t=!0){if(e.removeAttribute("hidden"),t&&!ne.reducedMotion){cn(e);return}e.style.removeProperty("display"),getComputedStyle(e).display==="none"&&(e.style.display="block")}function If(e,t=!0){if(t&&!ne.reducedMotion){un(e);return}e.style.display="none"}var jf={top:"bottom",bottom:"top",left:"right",right:"left"};function tc(e,t){let n=(e||"").trim().toLowerCase();return n==="top"||n==="bottom"||n==="left"||n==="right"?n:t}function nc(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},u={top:s.height+o,bottom:s.height+o,left:s.width+o,right:s.width+o},d=n;if(c[d]<u[d]){let m=jf[d];if(c[m]>=u[m])d=m;else for(let v of Object.keys(c))c[v]-u[v]>c[d]-u[d]&&(d=v)}let f=0,p=0;return d==="top"||d==="bottom"?(f=d==="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=d==="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",d),d}var qr=[],_l=!1,Bf={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:"?"},qf=typeof navigator!="undefined"&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent||"");function ji(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"?qf?n.meta=!0:n.ctrl=!0:n.key=(r=Bf[o])!=null?r:o;return n.key?(n.hasModifier=n.ctrl||n.alt||n.meta,n):null}function zf(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 Uf(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 rc(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 _f(e){if(e.defaultPrevented)return;let t=Uf(e.target);for(let n of[...qr])for(let r of n.combos)if(zf(r,e)&&!(t&&!n.options.allowInInput&&!r.hasModifier)){n.options.preventDefault!==!1&&e.preventDefault(),n.handler(e);break}}function _r(e,t,n={}){let r=e.split(",").map(i=>ji(i)).filter(i=>i!==null);if(!r.length||typeof document=="undefined")return()=>{};let o={combos:r,handler:t,options:n};return qr.push(o),_l||(_l=!0,document.addEventListener("keydown",_f)),()=>{let i=qr.indexOf(o);i>-1&&qr.splice(i,1)}}b("toggle",({el:e,expression:t,modifiers:n,cleanup:r})=>{Z();let o=mn(e,t);if(!o)return;let i=typeof n.class=="string"?n.class:null,s=!n.instant;e.setAttribute("aria-controls",Ze(o,"v-toggle")),ye(e,r);let a=i?o.classList.contains(i):!ec(o),l=()=>{e.setAttribute("aria-expanded",String(a))},c=u=>{u.preventDefault(),i?(o.classList.toggle(i),a=o.classList.contains(i)):a?(If(o,s),a=!1):($f(o,s),a=!0),l(),K(e,"voodoo:toggle",{target:o,open:a})};l(),e.addEventListener("click",c),r(()=>e.removeEventListener("click",c))});var Fi=class{constructor(t){S(this,"panel");S(this,"triggers",new Set);S(this,"listeners",new Set);S(this,"open");S(this,"duration");this.panel=t,this.duration=_(j(t,"collapse-duration"),240);let n=(j(t,"collapse")||"").trim().toLowerCase();this.open=n==="open"||n==="true"||!ec(t),t.classList.add("v-collapse-panel"),Ze(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"),ne.reducedMotion?this.panel.style.removeProperty("display"):Ht(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!0}))}hide(){this.open&&(this.open=!1,ne.reducedMotion?this.panel.style.display="none":Dt(this.panel,this.duration),this.sync(),K(this.panel,"voodoo:collapse",{open:!1}))}toggle(){this.open?this.hide():this.show()}},Vl=new WeakMap;function Bi(e){let t=Vl.get(e);return t||Vl.set(e,t=new Fi(e)),t}b("collapse",({el:e})=>{Z(),Bi(e)});var $i=new WeakSet;b("collapse-toggle",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=Bi(r);o.triggers.add(e),o.sync(),ye(e,n),$i.add(e),n(()=>$i.delete(e));let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})});F("collapse-duration");var zr=class{constructor(t,n,r){S(this,"trigger");S(this,"panel");S(this,"kind");S(this,"placement");S(this,"open",!1);S(this,"lastFocus",null);S(this,"homeParent");S(this,"homeNext");S(this,"reposition",()=>{this.open&&nc(this.trigger,this.panel,this.placement,this.kind==="menu"?"start":"center")});S(this,"onDocumentPointerDown",t=>{let n=t.target;n&&(this.panel.contains(n)||this.trigger.contains(n)||this.hide())});S(this,"onKeyDown",t=>{if(!this.open)return;if(t.key==="Escape"){t.preventDefault(),this.hide(!0);return}if(this.kind!=="menu"){t.key==="Tab"&&Ur(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=tc(j(t,r==="menu"?"dropdown-position":"popover-position"),"bottom"),Ze(n,r==="menu"?"v-menu":"v-popover"),n.classList.add(r==="menu"?"v-dropdown-menu":"v-popover"),n.hidden=!0,r==="menu"?oc(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=Un(this.panel)[0])==null||t.focus()),K(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)};ne.reducedMotion?n():setTimeout(n,160),t&&((r=this.lastFocus)!=null?r:this.trigger).focus(),K(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 oc(e){Z(),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"))}}b("dropdown-menu",({el:e})=>{oc(e)});b("dropdown",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=new zr(e,r,"menu");ye(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 u=o.items();u.length&&u[a.key==="ArrowDown"?0:u.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()})});b("popover",({el:e,expression:t,cleanup:n})=>{Z();let r=mn(e,t);if(!r)return;let o=new zr(e,r,"dialog");ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.dispose()})});F("dropdown-position");F("popover-position");b("tooltip",({el:e,expression:t,cleanup:n})=>{Z();let r=t.trim();if(!r)return;let o=tc(j(e,"tooltip-position"),"top"),i=_(j(e,"tooltip-delay"),200),s=!e.hasAttribute("tabindex")&&!e.hasAttribute("disabled")&&!e.matches(Gl);s&&e.setAttribute("tabindex","0");let a=null,l=null,c=()=>{let g=document.createElement("div");return g.className="v-tooltip",g.setAttribute("role","tooltip"),g.id=ue("v-tip-"),g.textContent=r,document.body.appendChild(g),g},u=()=>{a&&nc(e,a,o)},d=()=>{a||(a=c(),e.setAttribute("aria-describedby",a.id),u(),requestAnimationFrame(()=>a==null?void 0:a.classList.add("v-in")),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0))},f=()=>{if(l&&(clearTimeout(l),l=null),!a)return;let g=a;a=null,e.removeAttribute("aria-describedby"),window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0),g.classList.remove("v-in"),ne.reducedMotion?g.remove():setTimeout(()=>g.remove(),160)},p=()=>{l||a||(l=setTimeout(()=>{l=null,d()},i))},m=g=>{g.key==="Escape"&&f()},v=()=>{s&&e.focus()};e.addEventListener("mouseenter",p),e.addEventListener("focusin",d),e.addEventListener("pointerdown",v),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",d),e.removeEventListener("pointerdown",v),e.removeEventListener("mouseleave",f),e.removeEventListener("focusout",f),e.removeEventListener("keydown",m)})});F("tooltip-position");F("tooltip-delay");b("tabs",({el:e,expression:t,cleanup:n})=>{Z();let r=Br(e,"tab","tabs"),o=Br(e,"tab-panel","tabs");if(!r.length)return;let i=(g,h)=>dt(g,"tab")||String(h),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=Ir(e,"tabs-url")?dt(e,"tabs-url")||"tab":null;r.forEach((g,h)=>{let y=i(g,h),w=o.find(T=>dt(T,"tab-panel")===y);g.classList.add("v-tab","v-focus-ring"),g.setAttribute("role","tab"),Ze(g,"v-tab"),w&&(Ze(w,"v-panel"),w.setAttribute("role","tabpanel"),w.setAttribute("aria-labelledby",g.id),g.setAttribute("aria-controls",w.id))});let c="",u=(g,h=!1)=>{if(r.some((y,w)=>i(y,w)===g)){c=g,r.forEach((y,w)=>{let T=i(y,w)===g;y.setAttribute("aria-selected",String(T)),y.setAttribute("tabindex",T?"0":"-1"),y.classList.toggle("v-active",T),T&&h&&y.focus()});for(let y of o)y.hidden=dt(y,"tab-panel")!==g;l&&ct.set(l,g),K(e,"voodoo:tab",{id:g})}},d=g=>{let h=Qt(g.target,"tab");!h||!r.includes(h)||(g.preventDefault(),u(i(h,r.indexOf(h))))},f=g=>{let h=Qt(g.target,"tab");if(!h||!r.includes(h))return;let y=r.indexOf(h),w=a?"ArrowDown":"ArrowRight",T=a?"ArrowUp":"ArrowLeft",x=-1;g.key===w?x=(y+1)%r.length:g.key===T?x=(y-1+r.length)%r.length:g.key==="Home"?x=0:g.key==="End"&&(x=r.length-1),x!==-1&&(g.preventDefault(),u(i(r[x],x),!0))},p=()=>{if(!l)return;let g=ct.get(l);g&&g!==c&&u(g)};e.addEventListener("click",d),e.addEventListener("keydown",f),window.addEventListener("popstate",p),n(()=>{e.removeEventListener("click",d),e.removeEventListener("keydown",f),window.removeEventListener("popstate",p)});let v=(l?ct.get(l):void 0)||t.trim()||i(r[0],0);u(v),c||u(i(r[0],0))});F("tab");F("tab-panel");F("tabs-url");b("accordion",({el:e,cleanup:t})=>{Z();let n=Br(e,"accordion-item","accordion");if(!n.length)return;let r=Ir(e,"accordion-single"),o=[],i=[];for(let l of n){let c=l.firstElementChild,u=l.lastElementChild;if(!c||!u||c===u)continue;let d=(dt(l,"accordion-item")||"").trim().toLowerCase();d!=="open"&&d!=="true"&&(u.style.display="none");let f=Bi(u);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"),Ze(u,"v-accordion-panel"),c.setAttribute("aria-controls",u.id),c.setAttribute("aria-expanded",String(f.open)),n.length<=6&&!u.hasAttribute("role")&&(u.setAttribute("role","region"),u.setAttribute("aria-labelledby",Ze(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 u=o.indexOf(c);if(u===-1)return;l.preventDefault();let d=i[u],f=$i.has(c);if(r&&(f?d.open:!d.open))for(let m of i)m!==d&&m.hide();f||d.toggle()},a=l=>{var f;let c=(f=l.target)==null?void 0:f.closest(".v-accordion-header");if(!c)return;let u=o.indexOf(c);if(u===-1)return;if(l.key==="Enter"||l.key===" "){l.preventDefault(),c.click();return}let d=-1;l.key==="ArrowDown"?d=(u+1)%o.length:l.key==="ArrowUp"?d=(u-1+o.length)%o.length:l.key==="Home"?d=0:l.key==="End"&&(d=o.length-1),d!==-1&&(l.preventDefault(),o[d].focus())};e.addEventListener("click",s),e.addEventListener("keydown",a),t(()=>{e.removeEventListener("click",s),e.removeEventListener("keydown",a)})});F("accordion-item");F("accordion-single");var Ii=class{constructor(t){S(this,"origem",null);S(this,"panel");S(this,"triggers",new Set);S(this,"open",!1);S(this,"backdrop",null);S(this,"lastFocus",null);S(this,"onKeyDown",t=>{if(this.open){if(t.key==="Escape"){t.preventDefault(),this.hide();return}t.key==="Tab"&&Ur(this.panel,t)}});S(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=(j(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"),Ze(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",Ze(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(),Jl();let t=()=>{var o;(o=this.backdrop)==null||o.classList.add("v-in"),this.panel.classList.add("v-open")};ne.reducedMotion?t():requestAnimationFrame(t),document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("pointerdown",this.onPointerDown,!0),((r=Un(this.panel)[0])!=null?r:this.panel).focus(),this.sync(),K(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))};ne.reducedMotion?t():setTimeout(t,300),Zl(),(r=this.lastFocus)==null||r.focus(),this.sync(),K(this.panel,"voodoo:drawer",{open:!1})}toggle(){this.open?this.hide():this.show()}},Wl=new WeakMap;function qi(e){let t=Wl.get(e);return t||Wl.set(e,t=new Ii(e)),t}b("drawer-content",({el:e})=>{Z(),qi(e)});function ic(e,t,n){Z();let r=mn(e,t);if(!r)return;let o=qi(r);o.triggers.add(e),o.sync(),ye(e,n);let i=s=>{s.preventDefault(),o.toggle()};e.addEventListener("click",i),n(()=>{e.removeEventListener("click",i),o.triggers.delete(e)})}b("drawer",({el:e,expression:t,cleanup:n})=>{ic(e,t,n)});b("offcanvas",({el:e,expression:t,cleanup:n})=>{ic(e,t,n)});b("drawer-close",({el:e,expression:t,cleanup:n})=>{var i,s;let r=t.trim()?mn(e,t):(i=e.closest(".v-drawer-panel"))!=null?i:Qt(e,"drawer-content");if(!r)return;ye(e,n),!e.hasAttribute("aria-label")&&!((s=e.textContent)!=null&&s.trim())&&e.setAttribute("aria-label","Close");let o=a=>{a.preventDefault(),qi(r).hide()};e.addEventListener("click",o),n(()=>e.removeEventListener("click",o))});F("drawer-side");b("theme-toggle",({el:e,cleanup:t})=>{ye(e,t);let n=()=>{let i=qe.resolved==="dark";e.setAttribute("aria-pressed",String(i)),e.dataset.vTheme=qe.resolved,e.hasAttribute("aria-label")||e.setAttribute("aria-label",i?"Switch to light theme":"Switch to dark theme")},r=i=>{i.preventDefault(),qe.toggle(),n()},o=()=>n();n(),e.addEventListener("click",r),document.addEventListener("voodoo:theme",o),t(()=>{e.removeEventListener("click",r),document.removeEventListener("voodoo:theme",o)})});b("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:P.INIT});b("focus-trap",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{let i=!t.trim(),s=a=>{!i||a.key!=="Tab"||e.isConnected&&Ur(e,a)};t.trim()?n(()=>{let a=!!r();a&&!i&&fe(()=>{var l;return((l=Un(e)[0])!=null?l:e).focus()}),i=a}):fe(()=>{var a;return((a=Un(e)[0])!=null?a:e).focus()}),e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),document.addEventListener("keydown",s,!0),o(()=>document.removeEventListener("keydown",s,!0))});b("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)||Ue(t,n,e,i)};document.addEventListener("pointerdown",o,!0),r(()=>document.removeEventListener("pointerdown",o,!0))});b("escape",({el:e,expression:t,scope:n,cleanup:r})=>{let o=i=>{i.key!=="Escape"||!e.isConnected||Ue(t,n,e,i)};document.addEventListener("keydown",o),r(()=>document.removeEventListener("keydown",o))});b("hotkey",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim();if(!o)return;let i=_r(o,()=>e.click(),{allowInInput:!!n.force,preventDefault:n.default!==!0}),s=ji(o.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",rc(s)),r(i)});b("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(j(e,"scroll-offset")||"0")||0,a=ne.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(d){l=null}if(!l)return;let c=l.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:c,behavior:a});let u=l;u.hasAttribute("tabindex")||u.setAttribute("tabindex","-1"),u.focus({preventScroll:!0})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("scrollspy",({el:e,cleanup:t})=>{let n=Array.from(e.querySelectorAll('a[href^="#"]'));if(!n.length)return;let r=j(e,"scrollspy-class")||"v-active",o=parseFloat(j(e,"scroll-offset")||"0")||0,i=n.map(c=>{let u=c.getAttribute("href")||"",d=u.length>1?document.querySelector(u):null;return d?{link:c,section:d}:null}).filter(c=>c!==null);if(!i.length)return;let s=null,a=()=>{let c=i[0];for(let u of i)u.section.getBoundingClientRect().top-o<=8&&(c=u);if(c.link!==s){s=c.link;for(let u of i){let d=u.link===s;u.link.classList.toggle(r,d),d?u.link.setAttribute("aria-current","true"):u.link.removeAttribute("aria-current")}K(e,"voodoo:scrollspy",{id:c.section.id,link:c.link})}},l=Dn(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)})});F("scroll-offset");F("scrollspy-class");b("sticky",({el:e,expression:t,cleanup:n})=>{Z();let r=parseFloat(t.trim()||j(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())});F("sticky-offset");b("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"){Ue(t,n,e,void 0,{visible:!0});return}let l=new IntersectionObserver(u=>{for(let d of u)d.isIntersecting&&(Ue(t,n,e,void 0,d),i||l.unobserve(e))},{threshold:s,rootMargin:a});l.observe(e),o(()=>l.disconnect())});b("infinite-scroll",({el:e,expression:t,scope:n,cleanup:r})=>{let o=j(e,"infinite-distance")||"200px",i=!1,s=()=>{i=!1},a=()=>{if(i)return;i=!0,e.setAttribute("aria-busy","true");let u=Ue(t,n,e,void 0,{page:"next"}),d=()=>{e.removeAttribute("aria-busy"),setTimeout(s,120)};u&&typeof u.then=="function"?u.then(d,d):setTimeout(d,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(u=>{for(let d of u)d.isIntersecting&&a()},{rootMargin:`0px 0px ${o} 0px`});c.observe(l),r(()=>{c.disconnect(),l.remove()})});F("infinite-distance");function sc(e,t,n,r){if(Z(),!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=j(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())}b("lazy-src",({el:e,expression:t,cleanup:n})=>{sc(e,t.trim(),n,!1)});b("lazy-bg",({el:e,expression:t,cleanup:n})=>{sc(e,t.trim(),n,!0)});F("lazy-error");b("skeleton",({el:e,expression:t,effect:n,evaluate:r,cleanup:o})=>{Z();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 zi(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 Ui(e,t){Z();let n=j(e,"copy-label")||(t?"Copied!":"Could not copy");e.dataset.vCopyLabel=n,e.classList.add(t?"v-copied":"v-copy-failed"),Ae(n),setTimeout(()=>e.classList.remove("v-copied","v-copy-failed"),1600)}function ac(e,t){var r;let n=j(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()}b("copy",({el:e,expression:t,cleanup:n})=>{Z(),ye(e,n);let r=o=>{o.preventDefault();let i=ac(e,t);i&&zi(i).then(s=>{Ui(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("copy-from",({el:e,expression:t,cleanup:n})=>{if(Z(),jr(e,"copy-from",t),Ir(e,"copy"))return;ye(e,n);let r=o=>{o.preventDefault();let i=ac(e,"");i&&zi(i).then(s=>{Ui(e,s),K(e,"voodoo:copy",{text:i,ok:s})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("copy-label");function Vf(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>${Mt(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)}b("print",({el:e,expression:t,cleanup:n})=>{ye(e,n);let r=o=>{o.preventDefault();let i=t.trim(),s=i?document.querySelector(i):null;if(!i){window.print();return}s&&Vf(s,document.title)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});b("share",({el:e,expression:t,cleanup:n})=>{Z(),ye(e,n);let r=o=>{o.preventDefault();let i=t.trim()||j(e,"share-url")||location.href,s={title:j(e,"share-title")||document.title,url:i},a=j(e,"share-text");a&&(s.text=a);let l=navigator;if(typeof l.share=="function"){l.share(s).then(()=>K(e,"voodoo:share",{data:s,method:"native"}),()=>{});return}zi(i).then(c=>{Ui(e,c),K(e,"voodoo:share",{data:s,method:"clipboard",ok:c})})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("share-title");F("share-url");F("share-text");b("fullscreen",({el:e,expression:t,cleanup:n})=>{var s;ye(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)})});b("download",({el:e,expression:t,cleanup:n})=>{ye(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=j(e,"download-name")||"",s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),K(e,"voodoo:download",{href:i,name:s.download})};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});F("download-name");b("resizable",({el:e,expression:t,cleanup:n})=>{Z();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,u)=>{let d=0,f=0,p=0,m=0,v=h=>{u!=="bottom"&&(e.style.width=`${Math.max(32,p+h.clientX-d)}px`),u!=="right"&&(e.style.height=`${Math.max(32,m+h.clientY-f)}px`)},g=h=>{var y;(y=c.releasePointerCapture)==null||y.call(c,h.pointerId),c.removeEventListener("pointermove",v),c.removeEventListener("pointerup",g),c.removeEventListener("pointercancel",g),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height})};c.addEventListener("pointerdown",h=>{var w;if(h.button!==0)return;h.preventDefault();let y=e.getBoundingClientRect();d=h.clientX,f=h.clientY,p=y.width,m=y.height,(w=c.setPointerCapture)==null||w.call(c,h.pointerId),c.addEventListener("pointermove",v),c.addEventListener("pointerup",g),c.addEventListener("pointercancel",g)}),c.addEventListener("keydown",h=>{let y=h.shiftKey?4:16,w=e.getBoundingClientRect(),T=!0;h.key==="ArrowRight"&&u!=="bottom"?e.style.width=`${w.width+y}px`:h.key==="ArrowLeft"&&u!=="bottom"?e.style.width=`${Math.max(32,w.width-y)}px`:h.key==="ArrowDown"&&u!=="right"?e.style.height=`${w.height+y}px`:h.key==="ArrowUp"&&u!=="right"?e.style.height=`${Math.max(32,w.height-y)}px`:T=!1,T&&(h.preventDefault(),K(e,"voodoo:resized",{width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height}))})};for(let c of a){let u=document.createElement("div");u.className="v-resize-handle",u.setAttribute("data-dir",c),u.setAttribute("role","separator"),u.setAttribute("tabindex","0"),u.setAttribute("aria-orientation",c==="bottom"?"horizontal":"vertical"),u.setAttribute("aria-label","Resize"),l(u,c),e.appendChild(u),s.push(u)}n(()=>{for(let c of s)c.remove()})});function Kl(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function Wf(){let e=[];for(let t of hr(document,"command-item")){let n=(dt(t,"command-item")||t.textContent||"").trim();n&&(t.closest("[hidden]")||e.push({label:n,hint:j(t,"command-hint")||"",el:t}))}return e}function Yl(){if(Z(),document.querySelector(".v-command"))return;let e=Wf(),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=ue("v-cmd-list-"),i.setAttribute("role","listbox"),o.setAttribute("aria-controls",i.id),r.append(o,i),n.appendChild(r),document.body.appendChild(n),Jl();let s=e,a=0,l=m=>{let v=m.target;!v||n.contains(v)||o.focus()},c=()=>{document.removeEventListener("focusin",l,!0),document.removeEventListener("keydown",p,!0),n.remove(),Zl(),t==null||t.focus()},u=()=>{let m=s[a];m&&(c(),m.el.click())},d=()=>{var v;if(i.replaceChildren(),!s.length){let g=document.createElement("li");g.className="v-command-empty",g.textContent="No command found",i.appendChild(g);return}s.forEach((g,h)=>{let y=document.createElement("li");y.className="v-command-option",y.id=`${i.id}-${h}`,y.setAttribute("role","option"),y.setAttribute("aria-selected",String(h===a));let w=document.createElement("span");if(w.textContent=g.label,y.appendChild(w),g.hint){let T=document.createElement("span");T.className="v-command-hint",T.textContent=g.hint,y.appendChild(T)}y.addEventListener("click",()=>{a=h,u()}),y.addEventListener("pointermove",()=>{a!==h&&(a=h,d())}),i.appendChild(y)});let m=i.children[a];m&&(o.setAttribute("aria-activedescendant",m.id),(v=m.scrollIntoView)==null||v.call(m,{block:"nearest"}))},f=()=>{let m=Kl(o.value.trim());s=m?e.filter(v=>Kl(`${v.label} ${v.hint}`).includes(m)):e,a=0,d()},p=m=>{if(m.key==="Escape"){m.preventDefault(),c();return}if(m.key==="ArrowDown"){m.preventDefault(),a=s.length?(a+1)%s.length:0,d();return}if(m.key==="ArrowUp"){m.preventDefault(),a=s.length?(a-1+s.length)%s.length:0,d();return}if(m.key==="Enter"){m.preventDefault(),u();return}m.key==="Tab"&&Ur(n,m)};n.addEventListener("pointerdown",m=>{m.target===n&&c()}),o.addEventListener("input",f),document.addEventListener("keydown",p,!0),d(),o.focus(),document.addEventListener("focusin",l,!0)}b("command",({el:e,expression:t,cleanup:n})=>{Z();let r=t.trim()||j(e,"command-key")||"mod+k",o=a=>{a.preventDefault(),Yl()},i=_r(r,()=>Yl(),{allowInInput:!0}),s=ji(r.split(",")[0]);s&&!e.hasAttribute("aria-keyshortcuts")&&e.setAttribute("aria-keyshortcuts",rc(s)),ye(e,n),e.addEventListener("click",o),n(()=>{i(),e.removeEventListener("click",o)})});b("command-item",({el:e,expression:t})=>{jr(e,"command-item",t),!e.hasAttribute("data-v-command-label")&&t.trim()&&e.setAttribute("data-v-command-label",t.trim())});F("command-key");F("command-hint");var Ql=["pointerdown","pointermove","keydown","wheel","touchstart","scroll"];b("idle",({el:e,expression:t,scope:n,cleanup:r})=>{let o=_(j(e,"idle-after"),6e4),i=null,s=!1,a=()=>{s=!0,Ue(t,n,e,void 0,{idle:!0,after:o}),K(e,"voodoo:idle",{after:o})},l=()=>{i&&clearTimeout(i),s=!1,i=setTimeout(a,o)},c=()=>{if(s){l();return}l()};for(let u of Ql)window.addEventListener(u,c,{passive:!0});l(),r(()=>{i&&clearTimeout(i);for(let u of Ql)window.removeEventListener(u,c)})});F("idle-after");function lc(e,t,n,r,o,i){let s=a=>{Ue(t,n,e,a,{online:navigator.onLine}),K(e,`voodoo:${o}`,{online:navigator.onLine})};window.addEventListener(o,s),r(()=>window.removeEventListener(o,s)),i&&navigator.onLine===(o==="online")&&fe(()=>s())}b("online",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{lc(e,t,n,o,"online",!!r.immediate)});b("offline",({el:e,expression:t,scope:n,modifiers:r,cleanup:o})=>{lc(e,t,n,o,"offline",r["no-immediate"]!==!0)});X();ee();Ee();X();ee();Ee();var Fe={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 uc(e,t){var i,s,a,l,c,u;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:((u=(c=r[1])!=null?c:r[0])!=null?u:"").trim()};return e.replace(/\{(\w+)\}/g,(d,f)=>f in o?o[f]:d)}var Kr=new Map;function I(e,t,n){let r=e.toLowerCase();Kr.set(r,{name:r,fn:t,message:n}),n&&!Fe[r]&&(Fe[r]=n),b(`validate-${r}`,({el:o,cleanup:i})=>{to(o,i)})}function et(e,t){var n;return(n=Le(e,`${E.prefix}${t}`))!=null?n:Le(e,`data-v-${t}`)}function Kf(e,t){return et(e,t)!==null}var Yf=new Set(["INPUT","SELECT","TEXTAREA"]),Qf=new Set(["submit","button","reset","image"]);function Se(e){var t;return!!e&&typeof e=="object"&&Yf.has((t=e.tagName)!=null?t:"")}function Ve(e){return e.tagName==="SELECT"?"select":e.tagName==="TEXTAREA"?"textarea":(e.getAttribute("type")||"text").toLowerCase()}function Wn(e){var n;let t=Ve(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 Wi(e){return e.name||e.id||`field-${e.tagName.toLowerCase()}`}function Gf(e){var o,i;let t=et(e,"label");if(t)return t;if(e.id&&typeof document!="undefined"){let s=document.querySelector(`label[for="${Vr(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 Vr(e){let t=globalThis.CSS;return t&&typeof t.escape=="function"?t.escape(e):e.replace(/["'\\\]\[]/g,"\\$&")}function Yr(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 Se(c)?c:null}let o=r.querySelector(`[name="${Vr(n)}"]`);if(Se(o))return o;let i=document.getElementById(n);return Se(i)?i:null}var Xf=/^[^\s@]+@[^\s@.]+(?:\.[^\s@.]+)+$/,Jf=/^-?\d+$/,Zf=/^-?\d+(?:[.,]\d+)?$/,ep=/^[A-Za-zÀ-ÖØ-öø-ɏ]+$/,tp=/^[A-Za-z0-9À-ÖØ-öø-ɏ]+$/;function Kn(e){return e.replace(/\D/g,"")}function Qr(e){return Number(String(e).replace(/\s/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."))}function np(e){let t=Kn(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 rp(e){let t=Kn(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 op(e){let t=Kn(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 ip(e){let t=Kn(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 Ot(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 Gr(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=Ot(e);if(r)return r;let o=Yr(t,e);return o?Ot(Wn(o)):null}I("required",(e,t,n)=>{let r=Ve(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});I("email",e=>Xf.test(e.trim()));I("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}});I("number",e=>e.trim()!==""&&Number.isFinite(Qr(e)));I("integer",e=>Jf.test(e.trim()));I("decimal",(e,t)=>{var i;let n=e.trim();if(!Zf.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});I("alpha",e=>ep.test(e.trim().replace(/\s+/g,"")));I("alphanumeric",e=>tp.test(e.trim().replace(/\s+/g,"")));I("minlength",(e,t)=>e.trim().length>=Number(t!=null?t:0));I("maxlength",(e,t)=>e.trim().length<=Number(t!=null?t:1/0));I("min",(e,t,n)=>{let r=Gr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()>=r.getTime()}return Qr(e)>=Number(t!=null?t:0)});I("max",(e,t,n)=>{let r=Gr(t,n);if(r&&Ve(n).startsWith("date")){let o=Ot(e);return!o||o.getTime()<=r.getTime()}return Qr(e)<=Number(t!=null?t:1/0)});I("between",(e,t)=>{let[n,r]=(t!=null?t:"").split(",").map(i=>Number(i.trim())),o=Qr(e);return Number.isFinite(o)&&o>=n&&o<=r});I("match",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return r?Wn(r)===e:!0});I("same",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return!r||Wn(r)===e});I("different",(e,t,n)=>{if(!t)return!0;let r=Yr(n,t);return!r||Wn(r)!==e});I("regex",(e,t,n)=>{var o;if(!t)return!0;let r=(o=et(n,"regex-flags"))!=null?o:"";try{return new RegExp(t,r).test(e)}catch(i){return Y(`Invalid regular expression in ${E.prefix}regex: ${t}`),!0}});I("date",e=>Ot(e)!==null);I("after",(e,t,n)=>{let r=Gr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()>r.getTime()});I("before",(e,t,n)=>{let r=Gr(t,n),o=Ot(e);return!r||!o?!0:o.getTime()<r.getTime()});I("accepted",(e,t,n)=>{let r=Ve(n);return r==="checkbox"||r==="radio"?n.checked:["1","true","on","yes","sim"].includes(e.trim().toLowerCase())});I("in",(e,t)=>(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("notin",(e,t)=>!(t!=null?t:"").split(",").map(n=>n.trim()).includes(e.trim()));I("phone",e=>ip(e));I("cpf",e=>np(e));I("cnpj",e=>rp(e));I("cep",e=>Kn(e).length===8);I("creditcard",e=>op(e));I("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:uc(Fe.strongpassword,{param:String(n)})});I("unique",async(e,t,n)=>{let r=t||et(n,"unique-url")||"";if(!r||!e.trim())return!0;try{let o=await me.get(r,{params:{value:e,field:Wi(n)},timeout:8e3});return o&&typeof o=="object"&&"available"in o?o.available===!0?!0:Fe.unique:o?Fe.unique:!0}catch(o){if(o instanceof re){if(o.status===404)return!0;if(o.status>=400&&o.status<500)return Fe.unique}return!0}});var sp={"strong-password":"strongpassword","credit-card":"creditcard","min-length":"minlength","max-length":"maxlength","not-in":"notin","nao-vazio":"required",obrigatorio:"required"},ap=new Set(["required","accepted"]);function lp(e){var o;let t=null;if(e.startsWith(E.prefix)?t=e.slice(E.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=sp[t])!=null?o:t;return Kr.has(r)?r:null}function Ki(e){let t=[],n=new Set,r=(u,d)=>{n.has(u)||!Kr.has(u)||(n.add(u),t.push({name:u,param:d}))};for(let[u,d]of ga(e)){let f=lp(u);if(f){if(d.trim()==="false"){n.add(f);continue}r(f,d)}}let o=Ve(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((u,d)=>u.name==="required"?-1:d.name==="required"?1:0),t}var cp=`
|
|
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 Gr(){se(),Q("forms-validate",sp)}function ac(e){var r,o,i;let t=et(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};Y(`Target for ${E.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function lc(e){let t=ac(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 Xr(e,t){Gr(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=lc(e);if(!n){let o=ac(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ue("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 zi(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=lc(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 Kn(e){for(let n of Zr(e,!1))zi(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 Wi(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 ap(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${_r(i)}"]`);if(Se(s))return s}let o=e.querySelector(`#${_r(t)}`);return Se(o)?o:null}function Jr(e,t){let n=Wi(t),r=[];for(let[o,i]of Object.entries(n)){let s=ap(e,o);s?Xr(s,i):r.push(i)}return r.length&&lp(e,r),n}function lp(e,t){Gr();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 Ki(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 Zr(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)Se(o)&&(o.disabled||Wf.has(Ve(o))||t&&Vi(o).length===0||r.push(o));return r}async function Yi(e,t={}){var s,a;if(!Se(e))return{valid:!0};let n=Vi(e);if(!n.length)return t.silent||zi(e),{valid:!0};let r=Vn(e),o=et(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!op.has(l.name))continue;let c=Wr.get(l.name);if(!c)continue;let u;try{u=await c.fn(r,l.param||void 0,e)}catch(p){Y(`Rule "${l.name}" failed to execute`,p);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=$e[l.name])!=null?s:c.message)!=null?a:$e.invalid,f=sc(d,{field:Kf(e),param:l.param,value:r});return t.silent||(Xr(e,f),ic(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(zi(e,!i),ic(e,{valid:!0})),{valid:!0}}function Qi(e){return Se(e)?Yi(e):Gi(e)}async function Gi(e){let t=Zr(e),n=await Promise.all(t.map(o=>Yi(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[_i(o)]=(a=s.message)!=null?a:$e.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function ic(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:_i(e),...t}}))}function cp(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 up(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 u=r[c];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=u),r=u;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 dp(e,t){var a,l,c,u;let n=Zr(e,!1),r=[],o=new Map;for(let d of n)Ve(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let f=Ve(d);if(f==="file"){let m=Array.from((l=d.files)!=null?l:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(d.name))!=null?c:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(f==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let p=(u=d.value)!=null?u:"";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:d.name,value:p})}return r}function fp(e){for(let t of Zr(e,!1)){if(Ve(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function cc(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)cc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function gn(e,t={}){let n=dp(e,t);if(t.formData||fp(e)){let o=new FormData;for(let i of n)cc(o,i.name,i.value);return o}let r={};for(let o of n)up(r,cp(o.name),o.value);return r}var Un=new WeakSet,_n=new WeakSet;async function Vr(e){(await Yi(e)).valid?_n.delete(e):_n.add(e)}function eo(e,t){if(!Se(e)){Y(`${E.prefix}validate only works on input, select, or textarea.`);return}if(Un.has(e))return;Un.add(e),Gr();let n=()=>{Vr(e)},r=()=>{_n.has(e)&&Vr(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Un.delete(e),_n.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Ui=new WeakSet;function uc(e){return Ui.has(e)||_f(e,"validate")}function pp(e,t){Ui.add(e),Gr(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Se(i)||Un.has(i)||Vi(i).length!==0&&Vr(i)},r=o=>{let i=o.target;!Se(i)||Un.has(i)||_n.has(i)&&Vr(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Ui.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}b("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${E.prefix}submit`)){pp(e,t);return}eo(e,t)});var mp=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of mp)b(e,({el:t,cleanup:n})=>{eo(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])b(e,({el:t,cleanup:n})=>{Se(t)&&eo(t,n)});function fc(){return V({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var vn=new WeakMap,Zi=new WeakMap,gp=fc();function Yn(e){let t=vn.get(e);return t||(t=fc(),vn.set(e,t)),t}function vp(e){let t=e;for(;t;){let n=Zi.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?vn.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?vn.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=vn.get(n);if(r)return r}return gp}H("$form",e=>vp(e));var hn=new WeakMap,hp=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function dc(e){return hp.some(t=>ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`))}function ae(e,t){var i,s,a;let n=et(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=et(r,t);if(l!==null)return l}let o=(a=(i=hn.get(e))==null?void 0:i[t])!=null?a:r?(s=hn.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function ro(e,t){return ae(e,t)!==null}function Me(e,t){b(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=hn.get(o))!=null?l:{};if(i[e]=r,hn.set(o,i),!dc(o)&&!dc(n)){Y(`${E.prefix}${e} needs an element with ${E.prefix}submit, ${E.prefix}upload, ${E.prefix}dropzone, or ${E.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var yp=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Me("method",e=>e&&!yp.includes(e.trim().toUpperCase())?`${E.prefix}method received an unknown verb: ${e}`:null);Me("redirect");Me("reset-success");Me("disable-loading");Me("loading-class");Me("on-success");Me("on-error");Me("on-complete");Me("toast-success");Me("toast-error");Me("confirm");Me("form-data");b("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=hn.get(n))!=null?s:{};r.loading=t,hn.set(n,r);let o=pc(t);if(!o){Y(`${E.prefix}loading element not found: ${t}`);return}mc(o,!1)});var bp=`
|
|
286
|
+
`;function Xr(){se(),Q("forms-validate",cp)}function dc(e){var r,o,i;let t=et(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};Y(`Target for ${E.prefix}error-target not found: ${t}`)}let n=e.parentElement;return n?{parent:n,anchor:e}:null}function fc(e){let t=dc(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 Jr(e,t){Xr(),e.classList.add("v-invalid"),e.classList.remove("v-valid"),e.setAttribute("aria-invalid","true");let n=fc(e);if(!n){let o=dc(e);if(!o)return;n=document.createElement("span"),n.className="v-field-error",n.id=e.id?`${e.id}-error`:ue("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 _i(e,t=!1){e.classList.remove("v-invalid"),e.classList.toggle("v-valid",t),e.removeAttribute("aria-invalid");let n=fc(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 Yn(e){for(let n of eo(e,!1))_i(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 Yi(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 up(e,t){let n=t.replace(/\.(\w+)/g,"[$1]"),r=[t,n,`${t}[]`,`${n}[]`];for(let i of r){let s=e.querySelector(`[name="${Vr(i)}"]`);if(Se(s))return s}let o=e.querySelector(`#${Vr(t)}`);return Se(o)?o:null}function Zr(e,t){let n=Yi(t),r=[];for(let[o,i]of Object.entries(n)){let s=up(e,o);s?Jr(s,i):r.push(i)}return r.length&&dp(e,r),n}function dp(e,t){Xr();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 Qi(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 eo(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)Se(o)&&(o.disabled||Qf.has(Ve(o))||t&&Ki(o).length===0||r.push(o));return r}async function Gi(e,t={}){var s,a;if(!Se(e))return{valid:!0};let n=Ki(e);if(!n.length)return t.silent||_i(e),{valid:!0};let r=Wn(e),o=et(e,"error-message"),i=r.trim()==="";for(let l of n){if(i&&!ap.has(l.name))continue;let c=Kr.get(l.name);if(!c)continue;let u;try{u=await c.fn(r,l.param||void 0,e)}catch(p){Y(`Rule "${l.name}" failed to execute`,p);continue}if(u===!0)continue;let d=o!=null?o:typeof u=="string"?u:(a=(s=Fe[l.name])!=null?s:c.message)!=null?a:Fe.invalid,f=uc(d,{field:Gf(e),param:l.param,value:r});return t.silent||(Jr(e,f),cc(e,{valid:!1,message:f,rule:l.name})),{valid:!1,message:f,rule:l.name}}return t.silent||(_i(e,!i),cc(e,{valid:!0})),{valid:!0}}function Xi(e){return Se(e)?Gi(e):Ji(e)}async function Ji(e){let t=eo(e),n=await Promise.all(t.map(o=>Gi(o))),r={};return t.forEach((o,i)=>{var a;let s=n[i];s.valid||(r[Wi(o)]=(a=s.message)!=null?a:Fe.invalid)}),{valid:Object.keys(r).length===0,errors:r}}function cc(e,t){e.dispatchEvent(new CustomEvent("voodoo:field-validated",{bubbles:!0,detail:{field:Wi(e),...t}}))}function fp(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 pp(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 u=r[c];(u==null||typeof u!="object")&&(u=a===""||/^\d+$/.test(a!=null?a:"")?[]:{},r[c]=u),r=u;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 mp(e,t){var a,l,c,u;let n=eo(e,!1),r=[],o=new Map;for(let d of n)Ve(d)==="checkbox"&&d.name&&o.set(d.name,((a=o.get(d.name))!=null?a:0)+1);let i=t.trim!==!1,s=t.numbers!==!1;for(let d of n){if(!d.name||d.disabled&&!t.includeDisabled)continue;let f=Ve(d);if(f==="file"){let m=Array.from((l=d.files)!=null?l:[]);if(!m.length)continue;let v=d.multiple||d.name.endsWith("[]");r.push({name:d.name,value:v?m:m[0]});continue}if(f==="checkbox"){if(((c=o.get(d.name))!=null?c:1)>1||d.name.endsWith("[]")){if(!d.checked)continue;let v=d.name.endsWith("[]")?d.name:`${d.name}[]`;r.push({name:v,value:d.value||"on"})}else r.push({name:d.name,value:d.checked});continue}if(f==="radio"){if(!d.checked)continue;r.push({name:d.name,value:d.value});continue}if(d.tagName==="SELECT"&&d.multiple){let m=Array.from(d.selectedOptions).map(g=>g.value),v=d.name.endsWith("[]")?d.name:`${d.name}[]`;for(let g of m)r.push({name:v,value:g});continue}let p=(u=d.value)!=null?u:"";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:d.name,value:p})}return r}function gp(e){for(let t of eo(e,!1)){if(Ve(t)!=="file")continue;let n=t.files;if(n&&n.length)return!0}return!1}function pc(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)pc(e,r,o);return}if(typeof n=="boolean"){e.append(t,n?"1":"0");return}e.append(t,n==null?"":String(n))}function gn(e,t={}){let n=mp(e,t);if(t.formData||gp(e)){let o=new FormData;for(let i of n)pc(o,i.name,i.value);return o}let r={};for(let o of n)pp(r,fp(o.name),o.value);return r}var _n=new WeakSet,Vn=new WeakSet;async function Wr(e){(await Gi(e)).valid?Vn.delete(e):Vn.add(e)}function to(e,t){if(!Se(e)){Y(`${E.prefix}validate only works on input, select, or textarea.`);return}if(_n.has(e))return;_n.add(e),Xr();let n=()=>{Wr(e)},r=()=>{Vn.has(e)&&Wr(e)};e.addEventListener("blur",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{_n.delete(e),Vn.delete(e),e.removeEventListener("blur",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}var Vi=new WeakSet;function mc(e){return Vi.has(e)||Kf(e,"validate")}function vp(e,t){Vi.add(e),Xr(),e.tagName==="FORM"&&(e.noValidate=!0);let n=o=>{let i=o.target;!Se(i)||_n.has(i)||Ki(i).length!==0&&Wr(i)},r=o=>{let i=o.target;!Se(i)||_n.has(i)||Vn.has(i)&&Wr(i)};e.addEventListener("focusout",n),e.addEventListener("input",r),e.addEventListener("change",n),t(()=>{Vi.delete(e),e.removeEventListener("focusout",n),e.removeEventListener("input",r),e.removeEventListener("change",n)})}b("validate",({el:e,cleanup:t})=>{if(e.tagName==="FORM"||e.hasAttribute(`${E.prefix}submit`)){vp(e,t);return}to(e,t)});var hp=["required","email","url","number","integer","minlength","maxlength","min","max","match","regex","cpf","cnpj","cep","phone","date","accepted","strong-password"];for(let e of hp)b(e,({el:t,cleanup:n})=>{to(t,n)});for(let e of["error-message","error-target","regex-flags","unique-url"])b(e,({el:t,cleanup:n})=>{Se(t)&&to(t,n)});function vc(){return V({loading:!1,saving:!1,success:!1,errors:{},message:"",data:null,status:0,dirty:!1,progress:0})}var vn=new WeakMap,ts=new WeakMap,yp=vc();function Qn(e){let t=vn.get(e);return t||(t=vc(),vn.set(e,t)),t}function bp(e){let t=e;for(;t;){let n=ts.get(t);if(n)return n;let r=t.el;if(r){let o=r.closest("form"),i=o?vn.get(o):void 0;if(i)return i;let s=r.querySelector("form"),a=s?vn.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=vn.get(n);if(r)return r}return yp}H("$form",e=>bp(e));var hn=new WeakMap,wp=["submit","upload","dropzone","autosave","get","post","put","patch","delete","load","load-visible","search","resource"];function gc(e){return wp.some(t=>ot(e,`${E.prefix}${t}`)||ot(e,`data-v-${t}`))}function ae(e,t){var i,s,a;let n=et(e,t);if(n!==null)return n;let r=e.closest("form");if(r&&r!==e){let l=et(r,t);if(l!==null)return l}let o=(a=(i=hn.get(e))==null?void 0:i[t])!=null?a:r?(s=hn.get(r))==null?void 0:s[t]:void 0;return o!=null?o:null}function oo(e,t){return ae(e,t)!==null}function Me(e,t){b(e,({el:n,expression:r})=>{var a,l;let o=(a=n.closest("form"))!=null?a:n,i=(l=hn.get(o))!=null?l:{};if(i[e]=r,hn.set(o,i),!gc(o)&&!gc(n)){Y(`${E.prefix}${e} needs an element with ${E.prefix}submit, ${E.prefix}upload, ${E.prefix}dropzone, or ${E.prefix}autosave.`);return}let s=t==null?void 0:t(r);s&&Y(s)})}var Ep=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"];Me("method",e=>e&&!Ep.includes(e.trim().toUpperCase())?`${E.prefix}method received an unknown verb: ${e}`:null);Me("redirect");Me("reset-success");Me("disable-loading");Me("loading-class");Me("on-success");Me("on-error");Me("on-complete");Me("toast-success");Me("toast-error");Me("confirm");Me("form-data");b("loading",({el:e,expression:t})=>{var i,s;let n=(i=e.closest("form"))!=null?i:e,r=(s=hn.get(n))!=null?s:{};r.loading=t,hn.set(n,r);let o=hc(t);if(!o){Y(`${E.prefix}loading element not found: ${t}`);return}yc(o,!1)});var xp=`
|
|
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,17 +312,17 @@ 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 Qn(){se(),Q("forms-ajax",bp)}function ft(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function oo(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function es(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 ts(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>ts(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))ts(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function wp(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function pc(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Xi=new WeakMap;function mc(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Xi.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Xi.has(e)||Xi.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function no(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=ae(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(ro(n,"disable-loading"))for(let a of wp(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=pc(s);a&&mc(a,t)}}function io(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function Ep(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(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=De(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))U(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":U(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&W(l,a)}function gc(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=es(t),Ep(e,t),ro(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),Kn(o));let s=ae(i,"toast-success");s!==null&&Pe.success(s||r.message||"All set!"),io(e,"on-success",t,{status:n}),ft(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?oo(a,u):String(c!=null?c:"");d&&window.location.assign(d)}}function ns(e,t){var c,u;let{state:n,form:r,host:o}=e,i=t instanceof re?t:new re(t instanceof Error?t.message:String(t)),s=(u=(c=i.response)==null?void 0:c.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=es(s)||i.message;let a=Wi(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Jr(r,s),Ki(r));let l=ae(o,"toast-error");l!==null&&Pe.error(l||es(s)||"Could not submit the form."),io(e,"on-error",s,i),ft(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function vc(e,t){io(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),ft(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function xp(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=ae(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(uc(r)){Kn(r);let f=await Gi(r);if(o.errors=f.errors,!f.valid){Ki(r),ft(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=oo(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=gn(r,{formData:ro(n,"form-data")}),u=a==="GET"||a==="HEAD";no(e,!0),o.success=!1,o.progress=0,ft(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let d=!1;try{let f=await at({url:l,method:a,body:u?void 0:c,params:u&&!(c instanceof FormData)?ts(c):void 0});d=!0,gc(e,f.data,f.status)}catch(f){ns(e,f)}finally{no(e,!1),vc(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{Qn();let o=e,i=Yn(o),s=t.child({$form:i},o);Zi.set(s,i),Zi.set(t,i),it(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&it(u,s);let a={host:o,form:o,scope:s,state:i},l=u=>{u.preventDefault(),xp(a,n)},c=u=>{var p;let d=u.detail;if(!d||!d.field)return;let f={...i.errors};d.valid?delete f[d.field]:f[d.field]=(p=d.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{vn.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:P.DATA-1});function Tp(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;Qn();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 to(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 kp(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=gn(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 hc(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=oo(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let l=Tp(s),c=kp(s,n,r);no(e,!0),o.success=!1,o.progress=0,to(l,0,"loading"),ft(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),f=await me.upload(a,c,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:p=>{o.progress=p,to(l,p,"loading"),ft(i,"voodoo:progress",{percent:p,form:i,state:o})}});u=!0,o.progress=100,to(l,100,"done"),gc(e,f,200)}catch(d){to(l,o.progress,"error"),ns(e,d)}finally{no(e,!1),vc(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}Qn();let i=(c=o.closest("form"))!=null?c:o,s=Yn(i),a={host:o,form:i,scope:t,state:s},l=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&hc(a,n,u,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;Qn(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Yn(o),s={host:e,form:o,scope:t,state:i},a=ae(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=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),hc(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},f=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},p=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);c(l.multiple?C:C.slice(0,1))},v=x=>{x.target!==l&&l.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),l.click())},h=()=>{var C;let x=Array.from((C=l.files)!=null?C:[]);c(x),l.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),l.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),l.removeEventListener("change",h),l.remove()})});var Lp={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Ap(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.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 Ji(e,t){e.setAttribute("data-state",t),e.textContent=Lp[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;Qn();let i=e,s=Yn(i),a={host:i,form:i,scope:t,state:s},l=Ap(i),c=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(c,1e3),d=async()=>{let h=oo(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,Ji(l,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await at({url:h,method:y,body:gn(i,{formData:ro(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,Ji(l,"saved"),io(a,"on-success",w.data,{status:w.status}),ft(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){Ji(l,"error"),ns(a,w)}finally{s.saving=!1}},f=we(()=>{d()},u),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});b("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=Yn(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=u=>{!o.dirty||o.loading||(u.preventDefault(),u.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)})});X();ee();function Gn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function yc(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(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:yc(e,"voodoo:persist"),i=G.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=we(()=>{G.set(o,Gn(t.data))},120),a=he(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||yc(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=we(()=>{if(!a)try{i.postMessage({from:s,state:Gn(t.data)})}catch(u){q(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[f,p]of Object.entries(d.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=he(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:P.DATA-1});var rs=new WeakMap;function os(e){let t=e;for(;t;){let n=rs.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Gn(t.data)))],s=0,a=!1,l=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Gn(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));c(),queueMicrotask(()=>{a=!1})}let d=we(()=>{if(a)return;let m=JSON.stringify(Gn(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())},_((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=he(t.data,()=>d(),{deep:!0});rs.set(e,l),t.set("$history",l),r(()=>{f(),d.cancel(),rs.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=os(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=os(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=G.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{G.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?os(e.el):null);ee();X();Ee();var yn=null,pt=.35,tt=!1,bc=!1,is="voodoo:sound:volume",Tc="voodoo:sound:muted",wc=Te(0);function $t(){if(bc)return;bc=!0;let e=G.get(is);typeof e=="number"&&e>=0&&e<=1&&(pt=e);let t=G.get(Tc);typeof t=="boolean"&&(tt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&G.get(is)===void 0&&(pt=.18)}function Ec(){var t;if(typeof window=="undefined")return null;if(yn)return yn.state==="suspended"&&yn.resume(),yn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return yn=new e,yn}catch(n){return null}}function xc(e,t,n){var c,u,d,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"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=pt*n*((d=t.volume)!=null?d: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 so={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"}]}},Sp={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 ao(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Sp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var lo=new Map;function Mp(e,t){let n=lo.get(e);n||(n=new Audio(e),n.preload="auto",lo.set(e,n)),n.volume=Math.max(0,Math.min(1,pt*t)),n.currentTime=0,n.play().catch(()=>{})}function kc(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var mt={play(e,t={}){var l,c,u;if($t(),tt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(kc(n)){Mp(n,r);return}let o=so[n];if(!o){let d=ao(n);d!==null&&this.tone(d,200,{volume:r});return}let i=Ec();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)xc(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if($t(),tt)return;let r=Ec();r&&xc(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=ao(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){$t(),!tt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:ao(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return $t(),e===void 0||(pt=Math.max(0,Math.min(1,e)),G.set(is,pt)),pt},mute(e=!0){$t(),tt=e,G.set(Tc,tt),wc.value++},unmute(){this.mute(!1)},toggle(){return $t(),this.mute(!tt),tt},get muted(){return wc.value,$t(),tt},get names(){return Object.keys(so)},define(e,t){so[e]=t},preload(...e){for(let t of e){if(lo.has(t))continue;let n=new Audio(t);n.preload="auto",lo.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let d=n.trim();if(!d)return"click";if(so[d]||kc(d)||ao(d)!==null)return d;let f=s();return typeof f=="string"?f:d},c=r.volume!==void 0?Number(r.volume):void 0,u=()=>{mt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});var Cp=`
|
|
315
|
+
`;function Gn(){se(),Q("forms-ajax",xp)}function ft(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function io(e,t){let n=e.trim();n.includes("{")&&(n=n.replace(/\{([^{}]+)\}/g,(o,i)=>{let s=O(i.trim(),t,`${E.prefix}submit`);return s==null?o:String(s)}));let r=E.baseURL;return r&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n)&&!n.startsWith("//")&&(n=`${r.replace(/\/$/,"")}/${n.replace(/^\//,"")}`),n}function ns(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 rs(e,t="",n={}){if(e==null)return n;if(Array.isArray(e))return e.forEach((r,o)=>rs(r,`${t}[${o}]`,n)),n;if(typeof e=="object"&&!(e instanceof File)){for(let[r,o]of Object.entries(e))rs(o,t?`${t}[${r}]`:r,n);return n}return t&&(n[t]=String(e)),n}function Tp(e){return Array.from(e.querySelectorAll('button[type="submit"], button:not([type]), input[type="submit"], input[type="image"]'))}function hc(e){return!e||typeof document=="undefined"?null:document.querySelector(e)}var Zi=new WeakMap;function yc(e,t){var n;if(t){e.hidden=!1,e.style.display=(n=Zi.get(e))!=null?n:"",e.removeAttribute("aria-hidden");return}Zi.has(e)||Zi.set(e,e.style.display==="none"?"":e.style.display),e.style.display="none",e.setAttribute("aria-hidden","true")}function ro(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=ae(n,"loading-class");if(i)for(let a of i.split(/\s+/).filter(Boolean))r.classList.toggle(a,t);if(oo(n,"disable-loading"))for(let a of Tp(r))a.disabled=t;let s=ae(n,"loading");if(s){let a=hc(s);a&&yc(a,t)}}function so(e,t,n,r){let o=ae(e.host,t);if(!o)return;let i=e.scope.child({$data:n,$response:r,$form:e.state,$el:e.host}),s=O(o,i,`${E.prefix}${t}`);typeof s=="function"&&s.call(e.scope.data,n,r)}function kp(e,t){let n=ae(e.host,"target");if(!n||typeof t!="string")return;let r=document.querySelector(n);if(!r){Y(`${E.prefix}target destination not found: ${n}`);return}let o=(ae(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=De(r);switch(o){case"inner":case"innerhtml":for(let l of Array.from(r.children))U(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":U(r),r.replaceWith(...s);break;default:Y(`Unknown mode in ${E.prefix}swap: ${o}`);return}for(let l of s)l.nodeType===1&&W(l,a)}function bc(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=ns(t),kp(e,t),oo(i,"reset-success")&&o.tagName==="FORM"&&(o.reset(),Yn(o));let s=ae(i,"toast-success");s!==null&&Pe.success(s||r.message||"All set!"),so(e,"on-success",t,{status:n}),ft(o,"voodoo:success",{data:t,status:n,form:o,state:r});let a=ae(i,"redirect");if(a!==null&&typeof window!="undefined"){let c=t&&typeof t=="object"?(l=t.redirect)!=null?l:t.url:null,u=e.scope.child({$data:t,$form:r}),d=a?io(a,u):String(c!=null?c:"");d&&window.location.assign(d)}}function os(e,t){var c,u;let{state:n,form:r,host:o}=e,i=t instanceof re?t:new re(t instanceof Error?t.message:String(t)),s=(u=(c=i.response)==null?void 0:c.data)!=null?u:null;n.success=!1,n.data=s,n.status=i.status,n.message=ns(s)||i.message;let a=Yi(s);(i.status===422||Object.keys(a).length>0)&&(n.errors=Zr(r,s),Qi(r));let l=ae(o,"toast-error");l!==null&&Pe.error(l||ns(s)||"Could not submit the form."),so(e,"on-error",s,i),ft(r,"voodoo:error",{error:i,data:s,status:i.status,form:r,state:n})}function wc(e,t){so(e,"on-complete",e.state.data,{ok:t,status:e.state.status}),ft(e.form,"voodoo:complete",{ok:t,status:e.state.status,data:e.state.data,form:e.form,state:e.state})}async function Lp(e,t){let{host:n,form:r,state:o,scope:i}=e;if(o.loading)return;let s=ae(n,"confirm");if(s!==null&&typeof window!="undefined"&&!window.confirm(s||"Confirm this action?"))return;if(mc(r)){Yn(r);let f=await Ji(r);if(o.errors=f.errors,!f.valid){Qi(r),ft(r,"voodoo:invalid",{errors:f.errors,form:r,state:o});return}}let a=(ae(n,"method")||r.getAttribute("method")||"POST").trim().toUpperCase(),l=io(t,i)||(r.tagName==="FORM"?r.action:"")||(typeof location!="undefined"?location.href:""),c=gn(r,{formData:oo(n,"form-data")}),u=a==="GET"||a==="HEAD";ro(e,!0),o.success=!1,o.progress=0,ft(r,"voodoo:submit",{url:l,method:a,form:r,state:o});let d=!1;try{let f=await at({url:l,method:a,body:u?void 0:c,params:u&&!(c instanceof FormData)?rs(c):void 0});d=!0,bc(e,f.data,f.status)}catch(f){os(e,f)}finally{ro(e,!1),wc(e,d)}}b("submit",({el:e,scope:t,expression:n,cleanup:r})=>{Gn();let o=e,i=Qn(o),s=t.child({$form:i},o);ts.set(s,i),ts.set(t,i),it(o,s);for(let u of Array.from(o.childNodes))u.nodeType===1&&it(u,s);let a={host:o,form:o,scope:s,state:i},l=u=>{u.preventDefault(),Lp(a,n)},c=u=>{var p;let d=u.detail;if(!d||!d.field)return;let f={...i.errors};d.valid?delete f[d.field]:f[d.field]=(p=d.message)!=null?p:"",i.errors=f};o.addEventListener("submit",l),o.addEventListener("voodoo:field-validated",c),r(()=>{vn.delete(o),o.removeEventListener("submit",l),o.removeEventListener("voodoo:field-validated",c)})},{priority:P.DATA-1});function Ap(e){let t=ae(e,"progress");if(t){let o=document.querySelector(t);return o||(Y(`${E.prefix}progress bar not found: ${t}`),null)}let n=e.nextElementSibling;if(n&&n.classList.contains("v-progress"))return n;Gn();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 no(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 Sp(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=gn(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 Ec(e,t,n,r){if(!n.length||e.state.loading)return;let{state:o,form:i,host:s}=e,a=io(t,e.scope);if(!a){Y(`${E.prefix}upload needs a destination URL.`);return}let l=Ap(s),c=Sp(s,n,r);ro(e,!0),o.success=!1,o.progress=0,no(l,0,"loading"),ft(i,"voodoo:upload",{url:a,files:n,form:i,state:o});let u=!1;try{let d=(ae(s,"method")||"POST").trim().toUpperCase(),f=await me.upload(a,c,{method:d==="PUT"||d==="PATCH"?d:"POST",onProgress:p=>{o.progress=p,no(l,p,"loading"),ft(i,"voodoo:progress",{percent:p,form:i,state:o})}});u=!0,o.progress=100,no(l,100,"done"),bc(e,f,200)}catch(d){no(l,o.progress,"error"),os(e,d)}finally{ro(e,!1),wc(e,u)}}b("upload",({el:e,scope:t,expression:n,cleanup:r})=>{var c;let o=e;if(o.tagName!=="INPUT"||(o.getAttribute("type")||"").toLowerCase()!=="file"){Y(`${E.prefix}upload needs an <input type="file">.`);return}Gn();let i=(c=o.closest("form"))!=null?c:o,s=Qn(i),a={host:o,form:i,scope:t,state:s},l=()=>{var d;let u=Array.from((d=o.files)!=null?d:[]);u.length&&Ec(a,n,u,o.name||"file")};o.addEventListener("change",l),r(()=>o.removeEventListener("change",l))});b("dropzone",({el:e,scope:t,expression:n,cleanup:r})=>{var y,w,T;Gn(),e.classList.add("v-dropzone"),e.hasAttribute("tabindex")||(e.tabIndex=0),e.hasAttribute("role")||e.setAttribute("role","button"),(y=e.textContent)!=null&&y.trim()||(e.textContent="Drag files here or click to choose");let o=(w=e.closest("form"))!=null?w:e,i=Qn(o),s={host:e,form:o,scope:t,state:i},a=ae(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=x=>{x.length&&(e.classList.add("v-dropzone-busy"),e.classList.remove("v-dropzone-error"),Ec(s,n,x,a).finally(()=>{e.classList.remove("v-dropzone-busy"),i.success||e.classList.add("v-dropzone-error")}))},u=0,d=x=>{x.preventDefault(),u++,e.classList.add("v-dropzone-over")},f=x=>{x.preventDefault(),x.dataTransfer&&(x.dataTransfer.dropEffect="copy")},p=()=>{u=Math.max(0,u-1),u===0&&e.classList.remove("v-dropzone-over")},m=x=>{var N,R;x.preventDefault(),u=0,e.classList.remove("v-dropzone-over");let C=Array.from((R=(N=x.dataTransfer)==null?void 0:N.files)!=null?R:[]);c(l.multiple?C:C.slice(0,1))},v=x=>{x.target!==l&&l.click()},g=x=>{x.key!=="Enter"&&x.key!==" "||(x.preventDefault(),l.click())},h=()=>{var C;let x=Array.from((C=l.files)!=null?C:[]);c(x),l.value=""};e.addEventListener("dragenter",d),e.addEventListener("dragover",f),e.addEventListener("dragleave",p),e.addEventListener("drop",m),e.addEventListener("click",v),e.addEventListener("keydown",g),l.addEventListener("change",h),r(()=>{e.removeEventListener("dragenter",d),e.removeEventListener("dragover",f),e.removeEventListener("dragleave",p),e.removeEventListener("drop",m),e.removeEventListener("click",v),e.removeEventListener("keydown",g),l.removeEventListener("change",h),l.remove()})});var Mp={idle:"",saving:"Saving...",saved:"Changes saved",error:"Could not save"};function Cp(e){let t=ae(e,"autosave-status");if(t){let o=document.querySelector(t);if(o)return o;Y(`${E.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 es(e,t){e.setAttribute("data-state",t),e.textContent=Mp[t]}b("autosave",({el:e,scope:t,expression:n,modifiers:r,cleanup:o})=>{var m,v,g;Gn();let i=e,s=Qn(i),a={host:i,form:i,scope:t,state:s},l=Cp(i),c=(g=(v=(m=typeof r.delay=="string"?r.delay:null)!=null?m:Object.keys(r).find(h=>/^[\d.]+(ms|s|m)?$/.test(h)))!=null?v:ae(i,"autosave-delay"))!=null?g:1e3,u=_(c,1e3),d=async()=>{let h=io(n,t);if(!h){Y(`${E.prefix}autosave needs a destination URL.`);return}if(s.loading)return;s.saving=!0,es(l,"saving");let y=(ae(i,"method")||"POST").trim().toUpperCase();try{let w=await at({url:h,method:y,body:gn(i,{formData:oo(i,"form-data")})});s.data=w.data,s.status=w.status,s.dirty=!1,s.success=!0,es(l,"saved"),so(a,"on-success",w.data,{status:w.status}),ft(i,"voodoo:autosave",{data:w.data,status:w.status,form:i,state:s})}catch(w){es(l,"error"),os(a,w)}finally{s.saving=!1}},f=we(()=>{d()},u),p=()=>{s.dirty=!0,f()};i.addEventListener("input",p),i.addEventListener("change",p),o(()=>{f.cancel(),i.removeEventListener("input",p),i.removeEventListener("change",p)})});b("guard",({el:e,expression:t,cleanup:n})=>{var c;let r=(c=e.tagName==="FORM"?e:e.closest("form"))!=null?c:e,o=Qn(r),i=t.trim()||"There are unsaved changes.",s=()=>{o.dirty=!0},a=()=>{o.dirty=!1},l=u=>{!o.dirty||o.loading||(u.preventDefault(),u.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)})});X();ee();function Xn(e){let t={};for(let[n,r]of Object.entries(e))if(typeof r!="function"&&!n.startsWith("$"))try{JSON.stringify(r),t[n]=ie(r)}catch(o){}return t}function xc(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(">")}`}b("persist",({el:e,scope:t,expression:n,cleanup:r})=>{let o=n.trim()?`voodoo:persist:${n.trim()}`:xc(e,"voodoo:persist"),i=G.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=we(()=>{G.set(o,Xn(t.data))},120),a=he(t.data,()=>s(),{deep:!0});s(),r(()=>{s.flush(),a()})},{priority:P.DATA-1});b("sync",({el:e,scope:t,expression:n,cleanup:r})=>{if(typeof BroadcastChannel=="undefined")return;let o=n.trim()||xc(e,"voodoo:sync"),i=new BroadcastChannel(o),s=Math.random().toString(36).slice(2),a=!1,l=we(()=>{if(!a)try{i.postMessage({from:s,state:Xn(t.data)})}catch(u){q(u,"v-sync")}},60);i.addEventListener("message",u=>{let d=u.data;if(!(!d||d.from===s)){a=!0;for(let[f,p]of Object.entries(d.state))f in t.data&&t.data[f]!==p&&(t.data[f]=p);queueMicrotask(()=>{a=!1})}});let c=he(t.data,()=>l(),{deep:!0});r(()=>{c(),i.close()})},{priority:P.DATA-1});var is=new WeakMap;function ss(e){let t=e;for(;t;){let n=is.get(t);if(n)return n;t=t.parentElement}return null}b("history",({el:e,scope:t,expression:n,cleanup:r})=>{var p;let o=Number(n)||50,i=[JSON.parse(JSON.stringify(Xn(t.data)))],s=0,a=!1,l=V({canUndo:!1,canRedo:!1,size:1,undo(){s<=0||(s--,u())},redo(){s>=i.length-1||(s++,u())},clear(){i.length=0,i.push(JSON.parse(JSON.stringify(Xn(t.data)))),s=0,c()}});function c(){l.canUndo=s>0,l.canRedo=s<i.length-1,l.size=i.length}function u(){a=!0;let m=i[s];for(let[v,g]of Object.entries(m))t.data[v]=JSON.parse(JSON.stringify(g));c(),queueMicrotask(()=>{a=!1})}let d=we(()=>{if(a)return;let m=JSON.stringify(Xn(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())},_((p=e.getAttribute("v-history-debounce"))!=null?p:void 0,300)),f=he(t.data,()=>d(),{deep:!0});is.set(e,l),t.set("$history",l),r(()=>{f(),d.cancel(),is.delete(e)})},{priority:P.DATA-1});b("undo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ss(e))==null?void 0:r.undo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("redo",({el:e,cleanup:t})=>{let n=()=>{var r;return(r=ss(e))==null?void 0:r.redo()};e.addEventListener("click",n),t(()=>e.removeEventListener("click",n))});b("storage",({el:e,expression:t,cleanup:n,scope:r})=>{let o=t.trim();if(!o)return;let i=e,s=G.get(`voodoo:field:${o}`);s!=null&&"value"in i&&(i.value=String(s));let a=()=>{G.set(`voodoo:field:${o}`,i.value)};i.addEventListener("input",a),n(()=>i.removeEventListener("input",a))});H("$history",e=>e.el?ss(e.el):null);ee();X();Ee();var yn=null,pt=.35,tt=!1,Tc=!1,as="voodoo:sound:volume",Sc="voodoo:sound:muted",kc=Te(0);function Ft(){if(Tc)return;Tc=!0;let e=G.get(as);typeof e=="number"&&e>=0&&e<=1&&(pt=e);let t=G.get(Sc);typeof t=="boolean"&&(tt=t),typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&G.get(as)===void 0&&(pt=.18)}function Lc(){var t;if(typeof window=="undefined")return null;if(yn)return yn.state==="suspended"&&yn.resume(),yn;let e=(t=window.AudioContext)!=null?t:window.webkitAudioContext;if(!e)return null;try{return yn=new e,yn}catch(n){return null}}function Ac(e,t,n){var c,u,d,f;let r=e.currentTime+((c=t.atraso)!=null?c:0),o=r+t.duracao,i=e.createOscillator();i.type=(u=t.forma)!=null?u:"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=pt*n*((d=t.volume)!=null?d: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 ao={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"}]}},Rp={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 lo(e){let t=String(e).trim().toLowerCase(),n=/^([a-z]+#?)(\d)?$/.exec(t);if(!n)return null;let r=Rp[n[1]];if(r===void 0)return null;let o=n[2]?Number(n[2]):4;return r*2**(o-4)}var co=new Map;function Hp(e,t){let n=co.get(e);n||(n=new Audio(e),n.preload="auto",co.set(e,n)),n.volume=Math.max(0,Math.min(1,pt*t)),n.currentTime=0,n.play().catch(()=>{})}function Mc(e){return/^(https?:)?\/\//.test(e)||/^[./]/.test(e)||/\.(mp3|wav|ogg|m4a|aac)$/i.test(e)}var mt={play(e,t={}){var l,c,u;if(Ft(),tt||!e)return;let n=String(e).trim(),r=(l=t.volume)!=null?l:1;if(Mc(n)){Hp(n,r);return}let o=ao[n];if(!o){let d=lo(n);d!==null&&this.tone(d,200,{volume:r});return}let i=Lc();if(!i)return;let s=(c=t.tom)!=null?c:1,a=((u=o.volume)!=null?u:1)*r;for(let d of o.camadas)Ac(i,s===1?d:{...d,frequencia:d.frequencia*s,ate:d.ate===void 0?void 0:d.ate*s},a)},tone(e,t=200,n={}){var o,i;if(Ft(),tt)return;let r=Lc();r&&Ac(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=lo(e);r!==null&&this.tone(r,t,n)},melody(e,t=150,n={}){Ft(),!tt&&e.forEach((r,o)=>{let i=typeof r=="number"?r:lo(r);i!==null&&setTimeout(()=>this.tone(i,t*1.6,n),o*t)})},volume(e){return Ft(),e===void 0||(pt=Math.max(0,Math.min(1,e)),G.set(as,pt)),pt},mute(e=!0){Ft(),tt=e,G.set(Sc,tt),kc.value++},unmute(){this.mute(!1)},toggle(){return Ft(),this.mute(!tt),tt},get muted(){return kc.value,Ft(),tt},get names(){return Object.keys(ao)},define(e,t){ao[e]=t},preload(...e){for(let t of e){if(co.has(t))continue;let n=new Audio(t);n.preload="auto",co.set(t,n)}}};b("sound",({el:e,arg:t,expression:n,modifiers:r,scope:o,cleanup:i,evaluate:s})=>{let a=t||"click",l=()=>{let d=n.trim();if(!d)return"click";if(ao[d]||Mc(d)||lo(d)!==null)return d;let f=s();return typeof f=="string"?f:d},c=r.volume!==void 0?Number(r.volume):void 0,u=()=>{mt.play(l(),c===void 0?{}:{volume:c})};e.addEventListener(a,u),i(()=>e.removeEventListener(a,u))});var Dp=`
|
|
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
|
-
`;b("mute",({el:e,cleanup:t})=>{Q("mute",
|
|
319
|
+
`;b("mute",({el:e,cleanup:t})=>{Q("mute",Dp);let n=()=>{let o=mt.muted;e.setAttribute("aria-pressed",String(o)),e.classList.toggle("v-muted",o),e.classList.toggle("v-mute-on",!o)},r=()=>{mt.toggle(),n(),mt.muted||mt.play("pop")};e.addEventListener("click",r),n(),t(()=>e.removeEventListener("click",r))});H("$sound",()=>mt);Ee();ee();Ee();ee();var Pp=/^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]?$/i,Np=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})(?:[0-9a-f]{2})?$/i,Op=/^rgba?\(([^)]+)\)$/i,Fp=/^hsla?\(([^)]+)\)$/i;function Cc(e){return e.split(/[\s,/]+/).map(t=>parseFloat(t)).filter(t=>!Number.isNaN(t))}function $p(e,t,n){let r=(e%360+360)%360,o=be(t/100,0,1),i=be(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,u=[[s,a,0],[a,s,0],[0,s,a],[0,a,s],[a,0,s],[s,0,a]],[d,f,p]=u[c];return{r:Math.round((d+l)*255),g:Math.round((f+l)*255),b:Math.round((p+l)*255)}}function We(e){let t=String(e!=null?e:"").trim();if(!t)return null;let n=Pp.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=Np.exec(t);if(r)return{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};let o=Op.exec(t);if(o){let[s,a,l]=Cc(o[1]);return s===void 0||a===void 0||l===void 0?null:{r:be(s,0,255),g:be(a,0,255),b:be(l,0,255)}}let i=Fp.exec(t);if(i){let[s,a,l]=Cc(i[1]);return s===void 0||a===void 0||l===void 0?null:$p(s,a,l)}return null}function be(e,t,n){return e<t?t:e>n?n:e}function En(e){let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ls(e){return e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055}function Ip(e){let t=En(e.r),n=En(e.g),r=En(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 jp(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:ls(4.0767416621*o-3.3077115913*i+.2309699292*s),g:ls(-1.2684380046*o+2.6097574011*i-.3413193965*s),b:ls(-.0041960863*o-.7034186147*i+1.707614701*s)}}function fo(e){let t=Ip(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 Rc(e){let t=e.h*Math.PI/180;return jp({l:e.l,a:Math.cos(t)*e.c,b:Math.sin(t)*e.c})}function wn(e){let t=Math.max(0,e.c);for(let r=0;r<32;r++){let o=Rc({l:be(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(be(o.r,0,1)*255),g:Math.round(be(o.g,0,1)*255),b:Math.round(be(o.b,0,1)*255)};t*=.92}let n=Rc({l:be(e.l,0,1),c:0,h:e.h});return{r:Math.round(be(n.r,0,1)*255),g:Math.round(be(n.g,0,1)*255),b:Math.round(be(n.b,0,1)*255)}}function cs(e){return be(Math.round(e),0,255).toString(16).padStart(2,"0")}function $t(e){return`#${cs(e.r)}${cs(e.g)}${cs(e.b)}`}function bn(e,t){return`rgba(${Math.round(e.r)}, ${Math.round(e.g)}, ${Math.round(e.b)}, ${Number(t.toFixed(3))})`}function Oc(e){return $t(wn(e))}function ds(e){return .2126*En(e.r)+.7152*En(e.g)+.0722*En(e.b)}function fs(e,t){let n=typeof e=="string"?We(e):e,r=typeof t=="string"?We(t):t;if(!n||!r)return 1;let o=ds(n),i=ds(r),s=Math.max(o,i),a=Math.min(o,i);return(s+.05)/(a+.05)}var Fc={r:255,g:255,b:255},po={r:0,g:0,b:0};function Jn(e){let t=typeof e=="string"?We(e):e;return t?fs(t,Fc)>=fs(t,po)?"#ffffff":"#000000":"#ffffff"}var ps=[50,100,200,300,400,500,600,700,800,900],$c=[.973,.941,.889,.819,.732,.638,.558,.478,.399,.327],Bp=[.14,.26,.46,.68,.88,1,.97,.89,.78,.65],Ic=[.244,.286,.343,.408,.484,.588,.668,.748,.836,.928],qp=[.3,.42,.6,.78,.92,1,.92,.78,.57,.33];function jc(e,t=!1){var a;let n=typeof e=="string"?(a=We(e))!=null?a:po:e,r=fo(n),o=t?Ic:$c,i=t?qp:Bp,s={};return ps.forEach((l,c)=>{s[String(l)]=Oc({l:o[c],c:r.c*i[c],h:r.h})}),s}var mo={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"}},Bc=["primary","accent","success","warning","danger","info"],ms="voodoo:palette",Hc="voodoo-palette",zp="system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",Up="ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace";function Dc(e,t){let n=(e!=null?e:"").trim();return n?n.includes(",")?n:`${/^['"]/.test(n)?n:`'${n}'`}, ${t}`:t}var _p=/^([\d.]+)(px|rem|em)$/;function Vp(e){let t=(e||"12px").trim(),n=_p.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 Pc(e,t){var c,u,d,f;let n={},r={},o={};for(let p of Bc){let m=(c=We(e[p]))!=null?c:po,v=fo(m),g=jc(m,t);r[p]=g;for(let B of ps)n[`--v-${p}-${B}`]=g[String(B)];let h=t?{l:Math.max(v.l,.62),c:v.c*.95,h:v.h}:v,y=t?{l:Math.min(h.l+.07,.94),c:h.c*.95,h:h.h}:{l:Math.max(h.l-.055,.12),c:h.c,h:h.h},w=t?{l:Math.min(h.l+.13,.97),c:h.c*.88,h:h.h}:{l:Math.max(h.l-.105,.1),c:h.c,h:h.h},T=wn(h),x=wn(y),C=wn(w);n[`--v-${p}`]=$t(t?T:m),n[`--v-${p}-hover`]=$t(x),n[`--v-${p}-active`]=$t(C),n[`--v-${p}-contrast`]=Jn(t?T:m),n[`--v-${p}-contrast-hover`]=Jn(x),n[`--v-${p}-contrast-active`]=Jn(C);let N=g[50],R=g[100],le=t?g[800]:g[700];n[`--v-${p}-soft`]=N,n[`--v-${p}-soft-hover`]=R,n[`--v-${p}-soft-text`]=le,n[`--v-${p}-ring`]=bn(T,t?.45:.32),n[`--v-${p}-border`]=t?g[300]:g[200],o[p]=n[`--v-${p}-contrast`]}let i=(d=We((u=e.neutral)!=null?u:e.primary))!=null?d:po,s=fo(i).h,a=(p,m)=>Oc({l:p,c:m,h:s}),l={};if(ps.forEach((p,m)=>{let v=t?Ic:$c;l[String(p)]=a(v[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=wn({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"]=$t(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"]=bn(p,.45),n["--v-shadow-sm"]=`0 1px 2px ${bn(p,.08)}`,n["--v-shadow"]=`0 10px 30px ${bn(p,.14)}`,n["--v-shadow-lg"]=`0 24px 60px ${bn(p,.2)}`}return n["--v-focus-ring"]=n["--v-primary-ring"],o.surface=Jn((f=We(n["--v-surface"]))!=null?f:Fc),{vars:n,scales:r,contrast:o}}function us(e,t){let n=Object.entries(t).map(([r,o])=>` ${r}: ${o};`).join(`
|
|
320
320
|
`);return`${e} {
|
|
321
321
|
${n}
|
|
322
|
-
}`}var
|
|
323
|
-
${
|
|
324
|
-
}`,
|
|
325
|
-
`);
|
|
322
|
+
}`}var er=null,Zn=null;function Wp(e){var r,o,i,s,a,l,c,u,d;let t=(r=mo[e.preset])!=null?r:mo.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:(u=e.neutral)!=null?u:t.neutral};for(let f of Bc)We(n[f])||(console.warn(`[Voodoo] invalid color in palette.${f}: "${n[f]}". Using preset.`),n[f]=t[f]);return{colors:n,radius:(d=e.radius)!=null?d:"12px",font:Dc(e.font,zp),mono:Dc(e.monoFont,Up)}}function Kp(e){if(typeof document=="undefined"||!E.injectStyles)return;se();let t=document.getElementById(Hc);t||(t=document.createElement("style"),t.id=Hc,t.setAttribute("data-voodoo","palette"),document.head.appendChild(t)),t.textContent=e}function uo(e={}){let{colors:t,radius:n,font:r,mono:o}=Wp(e),i=Pc(t,!1),s=Pc(t,!0),a={...Vp(n),"--v-font-sans":r,"--v-font-mono":o},l=["/* Palette generated by V.palette(). Do not edit manually. */",us(":root",{...a,...i.vars}),`@media (prefers-color-scheme: dark) {
|
|
323
|
+
${us(':root:not([data-theme="light"])',s.vars)}
|
|
324
|
+
}`,us(':root[data-theme="dark"]',s.vars)].join(`
|
|
325
|
+
`);Kp(l);let c={colors:t,radius:n,font:r,monoFont:o,light:i.scales,dark:s.scales,contrast:i.contrast,css:l};if(er=c,Zn={...e},e.persist!==!1&&typeof document!="undefined"){let u={...e};delete u.persist,G.set(ms,u)}return typeof document!="undefined"&&document.dispatchEvent(new CustomEvent("voodoo:palette",{detail:c})),c}var Nc=!1;function gs(){if(er&&Nc)return er;Nc=!0;let e=G.get(ms),t=e&&typeof e=="object"?{...e,persist:!1}:{persist:!1};return uo(t)}function vs(){er||gs()}function hs(){return gs()}var qc=Object.assign(uo,{presets:mo,get names(){return Object.keys(mo)},get current(){return er},get options(){return Zn},init:gs,ensure:vs,reset(){return G.remove(ms),uo({persist:!1})},use(e){return uo({...Zn!=null?Zn:{},preset:e,primary:void 0,accent:void 0})},scale:jc,contrastText:Jn,contrastRatio:fs,luminance(e){let t=typeof e=="string"?We(e):e;return t?ds(t):0},convert:{parseColor:We,rgbToOklch:fo,oklchToRgb:wn,toHex:$t,toRgba:bn}});var $e={confirm:"Confirm",cancel:"Cancel",ok:"OK",close:"Close",confirmQuestion:"Are you sure?",required:"Please fill in this field."},ws={duration:220,size:"md"},Yp=`
|
|
326
326
|
[v-modal-content]:not(.v-dialog-open),[data-v-modal-content]:not(.v-dialog-open){display:none}
|
|
327
327
|
|
|
328
328
|
.v-dialog-root{position:fixed;inset:0;z-index:calc(var(--v-z-modal,1000) + var(--v-dialog-layer,0));
|
|
@@ -418,7 +418,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
418
418
|
@media (prefers-reduced-motion: reduce){
|
|
419
419
|
.v-dialog-backdrop,.v-dialog-panel{transition:none}
|
|
420
420
|
}
|
|
421
|
-
`;function
|
|
422
|
-
`)){let u=document.createElement("p");u.textContent=c,i.appendChild(u)}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:Fe.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var d;let u=Uc({...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,u),c(f===void 0?null:f)}});if(o&&u.panel.insertBefore(o,u.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",(d=p.variant)!=null?d:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=p.onClick)==null?void 0:g.call(p,u))!==!1&&p.close!==!1&&u.close((h=p.value)!=null?h:null)}),f.appendChild(m)}u.panel.appendChild(f)}u.body.childNodes.length||u.body.remove()})}function em(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function Ts(e,t={}){var n;return xn({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:Fe.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function yo(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return xn({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:Fe.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:Fe.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function ks(e,t={}){var m,v,g,h;ho();let n=(m=t.type)!=null?m:"text",r=ue("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=(v=t.value)!=null?v:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),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 u=()=>n==="number"?l.value.trim():l.value,d=y=>{var x,C;let w=u(),T=null;return t.required&&!w.trim()?T=Fe.required:T=(C=(x=t.validate)==null?void 0:x.call(t,w))!=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"),y.close(w),!0)},f=null;return l.addEventListener("keydown",y=>{let w=y;w.key==="Enter"&&(n==="textarea"&&!w.ctrlKey&&!w.metaKey||(y.preventDefault(),f&&d(f)))}),xn({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:Fe.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:Fe.confirm,variant:"primary",close:!1,onClick(y){return f=y,d(y),!1}}],onOpen(y){var w;f=y,(w=t.onOpen)==null||w.call(t,y)}}).then(y=>typeof y=="string"?y:null)}b("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){It.close(o||void 0);return}if(n.toggle){o&&It.toggle(o);return}o&&It.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});b("modal-content",({el:e})=>{ho(),e.id||(e.id=ue("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:P.REF});b("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?bs.get(i):void 0;s?s.handle.close(t.trim()||void 0):It.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var vs=!1;b("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||Fe.confirmQuestion,i=s=>{var d,f,p;if(vs)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(d=Le(e,`${E.prefix}confirm-title`))!=null?d:void 0,c=(f=Le(e,`${E.prefix}confirm-label`))!=null?f:void 0,u=(p=Le(e,`${E.prefix}confirm-cancel`))!=null?p:void 0;yo(o,{title:l,confirmLabel:c,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){vs=!0;try{a.click()}finally{vs=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:P.REF});H("$modal",()=>It);H("$dialog",()=>xn);H("$alert",()=>Ts);H("$confirm",()=>yo);H("$prompt",()=>ks);X();ee();var tr=new Map;function oe(e,t){tr.set(e.trim().toLowerCase(),t)}var tm={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},nm=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Wc=new Set(["currency","percent"]);function jt(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=tm[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 wo(e,t={}){var v,g,h,y,w;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(w=t.suffix)!=null?w:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let u=c.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,f=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Kc(e,t=2){return wo(e,{prefix:"",suffix:"%",decimals:t})}oe("cpf","999.999.999-99");oe("cnpj","99.999.999/9999-99");oe("cep","99999-999");oe("date","99/99/9999");oe("time","99:99");oe("datetime","99/99/9999 99:99");oe("cvv","9999");oe("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return jt(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});oe("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return jt(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});oe("currency",e=>wo(e));oe("percent",e=>Kc(e));oe("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?jt(t,"9999 999999 99999"):t.length>16?jt(t,"9999 9999 9999 9999 999"):jt(t,"9999 9999 9999 9999")});oe("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return jt(t,n?"AAA-9999":"AAA9A99")});oe("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});oe("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 er(e,t){let n=e==null?"":String(e);if(!t)return n;let r=tr.get(t.trim().toLowerCase());return typeof r=="function"?r(n):jt(n,typeof r=="string"?r:t)}function Eo(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Wc.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 Yc=Object.assign((e,t)=>er(e,t),{apply:er,unmask:Eo,register:oe,currency:wo,percent:Kc,presets:tr});function bo(e){return e!==void 0&&nm.test(e)}function _c(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)bo(e[o])&&n++;return n}function Vc(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(bo(e[r])&&(n++,n===t))return r+1;return e.length}var Ls=new WeakSet;function Qc(e,t,n){var m;if(Ls.has(e))return;Ls.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 v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},l=v=>{s?s.call(e,v):e.setAttribute("value",v)},c=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),l(v)}));let u=()=>{var w,T;let v=a(),g=(w=e.selectionStart)!=null?w:v.length,h=_c(v,g),y=t.format(v);y!==v&&l(y),t.rightToLeft?c(Math.max(0,y.length-((T=t.suffixLength)!=null?T:0))):c(Vc(y,h))},d=()=>u(),f=v=>{var C,N;if(v.key!=="Backspace")return;let g=(C=e.selectionStart)!=null?C:0,h=(N=e.selectionEnd)!=null?N:0;if(g!==h||g===0)return;let y=a();if(bo(y[g-1]))return;let w=g-1;for(;w>=0&&!bo(y[w]);)w--;if(v.preventDefault(),w<0)return;let T=y.slice(0,w)+y.slice(g),x=_c(T,w);l(t.format(T)),c(Vc(a(),x)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",f),n(()=>{Ls.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Gc(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${E.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"?(Y(`${E.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}b("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Gc(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${E.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Qc(o,{format:l=>er(l,i),clean:a?l=>Eo(l,s):void 0,rightToLeft:Wc.has(s),suffixLength:s==="percent"?1:0},r)},{priority:P.MODEL+5});b("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,v;let o=Gc(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${E.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},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?",":"."},u=!!n.unmask||!!n.raw,d=(m=c.decimals)!=null?m:2;Qc(o,{format:g=>wo(g,c),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),w=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${w}`:w}:void 0,rightToLeft:!0,suffixLength:((v=c.suffix)!=null?v:"").length},r)},{priority:P.MODEL+5});var Xc=((e,t)=>Ai(e,t));Object.assign(Xc,Nr,{query:Ai,ready:Si,fromHtml:Hl,Collection:ze,modal:It,alert:Ts,confirm:yo,prompt:ks,dialog:xn,validator:I,validate:Qi,validateForm:Qi,serializeForm:gn,messages:$e,showFormErrors:Jr,showFieldError:Xr,clearErrors:Kn,mask:Yc,masks:tr,applyMask:er,unmask:Eo,registerMask:oe,palette:Ic,hotkey:Ur,sound:mt,magic:H});var As=Xc;ee();function rm(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 om(){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&&(E.prefix=n);let r=e.getAttribute("data-base-url");r&&(E.baseURL=r);let o=e.getAttribute("data-locale");o&&(E.locale=o),rm(e)&&(E.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(E.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(E.injectStyles=!1),e.hasAttribute("data-no-observer")&&(E.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(E.cleanAttributes=!1),{manual:t}}function im(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 Jc(e){var o;if(typeof window=="undefined")return;let t=om(),n=window;if(n.V=e,n.Voodoo=e,pe.V=e,pe.Voodoo=e,E.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(E.baseURL),t.manual||!E.autoStart)return;br(()=>{qe.init(),Fc(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),E.devtools&&im(e)})}Jc(As);var sm=As;return su(am);})();
|
|
421
|
+
`;function yo(){se(),vs(),Q("dialog",Yp)}var Es={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>'},Ce=[],xs=new WeakMap,Ts=0,zc="",Uc="";function Qp(){if(Ts++>0)return;let e=document.body;zc=e.style.overflow,Uc=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 Gp(){Ts!==0&&(--Ts>0||(document.body.style.overflow=zc,document.body.style.paddingRight=Uc))}var Xp='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 ks(e){return Array.from(e.querySelectorAll(Xp)).filter(t=>t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"?!1:t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0)}function Ls(){return Ce[Ce.length-1]}function Jp(){return typeof matchMedia!="undefined"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var ho=!1;function _c(e){let t=Ls();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=ks(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 Vc(e){var o;let t=Ls();if(!t)return;let n=e.target;if(n&&t.handle.root.contains(n))return;((o=ks(t.handle.panel)[0])!=null?o:t.handle.panel).focus()}function Zp(){ho||(ho=!0,document.addEventListener("keydown",_c,!0),document.addEventListener("focusin",Vc,!0))}function em(){ho&&(ho=!1,document.removeEventListener("keydown",_c,!0),document.removeEventListener("focusin",Vc,!0))}function Wc(e){var f,p,m,v,g,h,y;yo();let t=ue("v-dialog-"),n=Jp()?0:ws.duration,r=document.createElement("div");r.className="v-dialog-root",r.id=t,r.setAttribute("data-size",(f=e.size)!=null?f:ws.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(Ce.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 w=document.createComment(" v-modal ");(v=e.source.parentNode)==null||v.insertBefore(w,e.source),ys.set(e.source,w),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 w=document.createElement("button");w.type="button",w.className="v-dialog-x",w.setAttribute("aria-label",$e.close),w.innerHTML=Es.close,w.addEventListener("click",()=>u.close(void 0)),i.appendChild(w)}let a=!1,l=()=>{},c=new Promise(w=>{l=w}),u={id:t,root:r,panel:i,body:s,key:(g=e.key)!=null?g:null,source:(h=e.source)!=null?h:null,closed:c,close(w){if(a)return;a=!0;let T=Ce.findIndex(C=>C.handle===u);T>-1&&Ce.splice(T,1),xs.delete(r),d.locked&&Gp(),Ce.length||em(),r.classList.remove("is-open"),r.classList.add("is-closing");let x=()=>{var N;let C=e.source;if(C){let R=ys.get(C);C.classList.remove("v-dialog-open"),R&&R.parentNode?(R.parentNode.insertBefore(C,R),R.remove()):C.remove(),ys.delete(C),ri(C,"modal-content")&&C.setAttribute("hidden","")}if(r.remove(),(N=e.onClose)==null||N.call(e,w,u),l(w),e.restoreFocus!==!1){let R=d.previousFocus;R&&typeof R.focus=="function"&&R.isConnected&&R.focus()}};n>0?setTimeout(x,n):x()}},d={handle:u,options:e,previousFocus:document.activeElement,locked:e.lockScroll!==!1};return o.addEventListener("click",()=>{e.closeOnBackdrop!==!1&&u.close(void 0)}),d.locked&&Qp(),Ce.push(d),xs.set(r,d),Zp(),document.body.appendChild(r),requestAnimationFrame(()=>{r.classList.add("is-open");let w=tm(e,i);w==null||w.focus()}),(y=e.onOpen)==null||y.call(e,u),u}var ys=new WeakMap;function tm(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=ks(t)[0])!=null?i:t)}function nm(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 go(e){return typeof e=="string"?e.trim()||null:e.id?`#${e.id}`:null}function vo(e){let t=/^[\w-]+$/.test(e)?`#${e}`:e;return Ce.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 It={open(e,t={}){var s,a;let n=nm(e);if(!n)return console.warn(`[Voodoo] modal.open: target not found (${String(e)}).`),null;let r=(s=go(e))!=null?s:n.id?`#${n.id}`:null,o=r?vo(r):void 0;if(o)return o.handle;let i=n.querySelector("[data-dialog-title],h1,h2,h3");return i&&!i.id&&(i.id=ue("v-dialog-title-")),Wc({...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=Ls())==null||o.handle.close(t);return}let n=go(e),r=n?vo(n):void 0;r==null||r.handle.close(t)},closeAll(e){for(let t of[...Ce].reverse())t.handle.close(e)},toggle(e,t={}){let n=go(e),r=n?vo(n):void 0;return r?(r.handle.close(void 0),null):this.open(e,t)},isOpen(e){if(e===void 0)return Ce.length>0;let t=go(e);return!!(t&&vo(t))},get opened(){return Ce.map(e=>e.handle)},get count(){return Ce.length},configure(e){Object.assign(ws,e)},labels(e){return Object.assign($e,e),$e}};function xn(e){var a,l;yo();let t=document.createDocumentFragment(),n=e.title?ue("v-dialog-title-"):null,r=e.description?ue("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&&Es[c]){let d=document.createElement("div");d.className="v-dialog-icon",d.setAttribute("aria-hidden","true"),d.setAttribute("data-tone",(a=e.tone)!=null?a:rm(c)),d.innerHTML=Es[c],o.appendChild(d)}let u=document.createElement("div");if(u.className="v-dialog-heading",e.title){let d=document.createElement("h2");d.className="v-dialog-title",d.id=n,d.textContent=e.title,u.appendChild(d)}if(e.description){let d=document.createElement("p");d.className="v-dialog-desc",d.id=r,d.textContent=e.description,u.appendChild(d)}o.appendChild(u)}let i=document.createDocumentFragment();if(e.text)for(let c of e.text.split(`
|
|
422
|
+
`)){let u=document.createElement("p");u.textContent=c,i.appendChild(u)}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:$e.ok,value:!0,variant:"primary",autofocus:!0}];return new Promise(c=>{var d;let u=Wc({...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,u),c(f===void 0?null:f)}});if(o&&u.panel.insertBefore(o,u.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",(d=p.variant)!=null?d:"secondary"),m.textContent=p.label,p.autofocus&&m.setAttribute("data-autofocus",""),m.addEventListener("click",()=>{var g,h;((g=p.onClick)==null?void 0:g.call(p,u))!==!1&&p.close!==!1&&u.close((h=p.value)!=null?h:null)}),f.appendChild(m)}u.panel.appendChild(f)}u.body.childNodes.length||u.body.remove()})}function rm(e){return e==="success"||e==="warning"||e==="danger"?e:"default"}function As(e,t={}){var n;return xn({icon:"info",size:"sm",...t,text:e,buttons:[{label:(n=t.confirmLabel)!=null?n:$e.ok,value:!0,variant:t.tone==="danger"?"danger":"primary",autofocus:!0}]}).then(()=>{})}function bo(e,t={}){var r,o,i;let n=t.danger?"danger":(r=t.tone)!=null?r:"default";return xn({icon:n==="danger"?"warning":"question",size:"sm",...t,tone:n,text:e,buttons:[{label:(o=t.cancelLabel)!=null?o:$e.cancel,value:!1,variant:"secondary"},{label:(i=t.confirmLabel)!=null?i:$e.confirm,value:!0,variant:n==="danger"?"danger":"primary",autofocus:!0}]}).then(s=>s===!0)}function Ss(e,t={}){var m,v,g,h;yo();let n=(m=t.type)!=null?m:"text",r=ue("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=(v=t.value)!=null?v:"",t.placeholder&&(l.placeholder=t.placeholder),t.required&&(l.required=!0),l.setAttribute("data-autofocus",""),s.appendChild(l),t.hint){let y=document.createElement("p");y.className="v-dialog-hint",y.id=o,y.textContent=t.hint,s.appendChild(y),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 u=()=>n==="number"?l.value.trim():l.value,d=y=>{var x,C;let w=u(),T=null;return t.required&&!w.trim()?T=$e.required:T=(C=(x=t.validate)==null?void 0:x.call(t,w))!=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"),y.close(w),!0)},f=null;return l.addEventListener("keydown",y=>{let w=y;w.key==="Enter"&&(n==="textarea"&&!w.ctrlKey&&!w.metaKey||(y.preventDefault(),f&&d(f)))}),xn({icon:"question",size:"sm",...t,node:s,text:void 0,buttons:[{label:(g=t.cancelLabel)!=null?g:$e.cancel,value:null,variant:"secondary"},{label:(h=t.confirmLabel)!=null?h:$e.confirm,variant:"primary",close:!1,onClick(y){return f=y,d(y),!1}}],onOpen(y){var w;f=y,(w=t.onOpen)==null||w.call(t,y)}}).then(y=>typeof y=="string"?y:null)}b("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){It.close(o||void 0);return}if(n.toggle){o&&It.toggle(o);return}o&&It.open(o)};e.addEventListener("click",i),r(()=>e.removeEventListener("click",i))});b("modal-content",({el:e})=>{yo(),e.id||(e.id=ue("v-modal-")),e.classList.contains("v-dialog-open")||e.setAttribute("hidden","")},{priority:P.REF});b("modal-close",({el:e,expression:t,cleanup:n})=>{let r=o=>{o.preventDefault();let i=e.closest(".v-dialog-root"),s=i?xs.get(i):void 0;s?s.handle.close(t.trim()||void 0):It.close(void 0,t.trim()||void 0)};e.addEventListener("click",r),n(()=>e.removeEventListener("click",r))});var bs=!1;b("confirm",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=t.trim()||$e.confirmQuestion,i=s=>{var d,f,p;if(bs)return;s.preventDefault(),s.stopImmediatePropagation();let a=s.target instanceof HTMLElement?s.target:e,l=(d=Le(e,`${E.prefix}confirm-title`))!=null?d:void 0,c=(f=Le(e,`${E.prefix}confirm-label`))!=null?f:void 0,u=(p=Le(e,`${E.prefix}confirm-cancel`))!=null?p:void 0;bo(o,{title:l,confirmLabel:c,cancelLabel:u,danger:!!n.danger,size:"sm"}).then(m=>{if(m){bs=!0;try{a.click()}finally{bs=!1}}})};e.addEventListener("click",i,!0),r(()=>e.removeEventListener("click",i,!0))},{priority:P.REF});H("$modal",()=>It);H("$dialog",()=>xn);H("$alert",()=>As);H("$confirm",()=>bo);H("$prompt",()=>Ss);X();ee();var nr=new Map;function oe(e,t){nr.set(e.trim().toLowerCase(),t)}var om={9:/\d/,A:/[A-Za-zÀ-ÖØ-öø-ÿ]/,S:/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,"*":/[\s\S]/},im=/[0-9A-Za-zÀ-ÖØ-öø-ÿ]/,Qc=new Set(["currency","percent"]);function jt(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=om[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 Eo(e,t={}){var v,g,h,y,w;let n=Math.max(0,Math.trunc((v=t.decimals)!=null?v:2)),r=(g=t.decimal)!=null?g:",",o=(h=t.thousands)!=null?h:".",i=(y=t.prefix)!=null?y:"R$ ",s=(w=t.suffix)!=null?w:"",a=String(e!=null?e:""),l=a.trim().startsWith("-"),c=a.replace(/\D/g,"").slice(0,15);if(!c)return"";let u=c.padStart(n+1,"0"),d=n?u.slice(0,u.length-n):u,f=n?u.slice(u.length-n):"",m=d.replace(/^0+(?=\d)/,"").replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${l?"-":""}${i}${m}${n?r+f:""}${s}`}function Gc(e,t=2){return Eo(e,{prefix:"",suffix:"%",decimals:t})}oe("cpf","999.999.999-99");oe("cnpj","99.999.999/9999-99");oe("cep","99999-999");oe("date","99/99/9999");oe("time","99:99");oe("datetime","99/99/9999 99:99");oe("cvv","9999");oe("cpfcnpj",e=>{let t=e.replace(/\D/g,"");return jt(t,t.length<=11?"999.999.999-99":"99.999.999/9999-99")});oe("phone",e=>{let t=e.replace(/\D/g,"").slice(0,11);return jt(t,t.length<=10?"(99) 9999-9999":"(99) 99999-9999")});oe("currency",e=>Eo(e));oe("percent",e=>Gc(e));oe("card",e=>{let t=e.replace(/\D/g,"").slice(0,19);return/^3[47]/.test(t)?jt(t,"9999 999999 99999"):t.length>16?jt(t,"9999 9999 9999 9999 999"):jt(t,"9999 9999 9999 9999")});oe("plate",e=>{let t=e.replace(/[^0-9A-Za-z]/g,"").toUpperCase().slice(0,7),n=t.length>=5&&/\d/.test(t[4]);return jt(t,n?"AAA-9999":"AAA9A99")});oe("hex",e=>{let t=e.replace(/[^0-9a-fA-F]/g,"").toUpperCase().slice(0,6);return t?`#${t}`:""});oe("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 tr(e,t){let n=e==null?"":String(e);if(!t)return n;let r=nr.get(t.trim().toLowerCase());return typeof r=="function"?r(n):jt(n,typeof r=="string"?r:t)}function xo(e,t){let n=e==null?"":String(e),r=t?t.trim().toLowerCase():"";if(r&&Qc.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 Xc=Object.assign((e,t)=>tr(e,t),{apply:tr,unmask:xo,register:oe,currency:Eo,percent:Gc,presets:nr});function wo(e){return e!==void 0&&im.test(e)}function Kc(e,t){let n=0,r=Math.min(t,e.length);for(let o=0;o<r;o++)wo(e[o])&&n++;return n}function Yc(e,t){if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(wo(e[r])&&(n++,n===t))return r+1;return e.length}var Ms=new WeakSet;function Jc(e,t,n){var m;if(Ms.has(e))return;Ms.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 v;return String(i?i.call(e):(v=e.getAttribute("value"))!=null?v:"")},l=v=>{s?s.call(e,v):e.setAttribute("value",v)},c=v=>{try{e.setSelectionRange(v,v)}catch(g){}};i&&s&&(Object.defineProperty(e,"value",{configurable:!0,enumerable:!0,get(){let v=String(i.call(e));return t.clean?t.clean(v):v},set(v){s.call(e,t.format(v==null?"":String(v)))}}),n(()=>{let v=a();Reflect.deleteProperty(e,"value"),l(v)}));let u=()=>{var w,T;let v=a(),g=(w=e.selectionStart)!=null?w:v.length,h=Kc(v,g),y=t.format(v);y!==v&&l(y),t.rightToLeft?c(Math.max(0,y.length-((T=t.suffixLength)!=null?T:0))):c(Yc(y,h))},d=()=>u(),f=v=>{var C,N;if(v.key!=="Backspace")return;let g=(C=e.selectionStart)!=null?C:0,h=(N=e.selectionEnd)!=null?N:0;if(g!==h||g===0)return;let y=a();if(wo(y[g-1]))return;let w=g-1;for(;w>=0&&!wo(y[w]);)w--;if(v.preventDefault(),w<0)return;let T=y.slice(0,w)+y.slice(g),x=Kc(T,w);l(t.format(T)),c(Yc(a(),x)),e.dispatchEvent(new Event("input",{bubbles:!0}))};e.addEventListener("input",d),e.addEventListener("keydown",f),n(()=>{Ms.delete(e),e.removeEventListener("input",d),e.removeEventListener("keydown",f)});let p=a();p&&l(t.format(p))}function Zc(e,t){if(e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA")return Y(`${E.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"?(Y(`${E.prefix}${t} doesn't work with input type="${r}". Use type="text".`),null):n}b("mask",({el:e,expression:t,modifiers:n,cleanup:r})=>{let o=Zc(e,"mask");if(!o)return;let i=t.trim();if(!i){Y(`${E.prefix}mask needs a pattern or mask name.`);return}let s=i.toLowerCase(),a=!!n.unmask||!!n.raw;Jc(o,{format:l=>tr(l,i),clean:a?l=>xo(l,s):void 0,rightToLeft:Qc.has(s),suffixLength:s==="percent"?1:0},r)},{priority:P.MODEL+5});b("mask-currency",({el:e,expression:t,modifiers:n,cleanup:r})=>{var f,p,m,v;let o=Zc(e,"mask-currency");if(!o)return;let i=g=>{var h;return(h=e.getAttribute(`${E.prefix}${g}`))!=null?h:e.getAttribute(`data-v-${g}`)},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?",":"."},u=!!n.unmask||!!n.raw,d=(m=c.decimals)!=null?m:2;Jc(o,{format:g=>Eo(g,c),clean:u?g=>{let h=g.replace(/\D/g,"").replace(/^0+(?=\d)/,"");if(!h)return"";if(d===0)return h;let y=h.padStart(d+1,"0"),w=`${y.slice(0,y.length-d)}.${y.slice(y.length-d)}`;return g.trim().startsWith("-")?`-${w}`:w}:void 0,rightToLeft:!0,suffixLength:((v=c.suffix)!=null?v:"").length},r)},{priority:P.MODEL+5});var eu=((e,t)=>Si(e,t));Object.assign(eu,Or,{query:Si,ready:Mi,fromHtml:Ol,Collection:ze,modal:It,alert:As,confirm:bo,prompt:Ss,dialog:xn,validator:I,validate:Xi,validateForm:Xi,serializeForm:gn,messages:Fe,showFormErrors:Zr,showFieldError:Jr,clearErrors:Yn,mask:Xc,masks:nr,applyMask:tr,unmask:xo,registerMask:oe,palette:qc,hotkey:_r,sound:mt,magic:H});var Cs=eu;ee();function sm(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 am(){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&&(E.prefix=n);let r=e.getAttribute("data-base-url");r&&(E.baseURL=r);let o=e.getAttribute("data-locale");o&&(E.locale=o),sm(e)&&(E.devtools=!0);let i=e.getAttribute("data-xray-shortcut");return i!==null&&(E.xrayShortcut=i==="false"||i===""?!1:i),e.hasAttribute("data-no-styles")&&(E.injectStyles=!1),e.hasAttribute("data-no-observer")&&(E.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(E.cleanAttributes=!1),{manual:t}}function lm(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 tu(e){var o;if(typeof window=="undefined")return;let t=am(),n=window;if(n.V=e,n.Voodoo=e,pe.V=e,pe.Voodoo=e,E.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(E.baseURL),qe.init(),t.manual||!E.autoStart){Rn(()=>{hs()});return}Rn(()=>{hs(),e.start(),typeof e.enableXrayShortcut=="function"&&e.enableXrayShortcut(),E.devtools&&lm(e)})}tu(Cs);var cm=Cs;return cu(um);})();
|
|
423
423
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
424
424
|
//# sourceMappingURL=voodoo.min.js.map
|