voodoojs 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -13
- package/dist/{chunk-NNU6WOOU.js → chunk-4T2UIPWX.js} +4 -4
- package/dist/{chunk-A2UOVQBP.js → chunk-CYN6VLMD.js} +4 -4
- package/dist/{chunk-JZIYRIY6.js → chunk-E5T65CEI.js} +5 -5
- package/dist/{chunk-U76IRJKH.js → chunk-GIWKGFGY.js} +4 -4
- package/dist/{chunk-CNHNFTPC.js → chunk-II3XBOAP.js} +13 -13
- package/dist/{chunk-PHMBDPWH.js → chunk-JB2YYNK6.js} +7 -7
- package/dist/{chunk-5777LJVW.js → chunk-MMLUK37L.js} +3 -3
- package/dist/{chunk-4LR3IFPX.js → chunk-QO3I7VLJ.js} +5 -5
- package/dist/{chunk-PQZEVFVZ.js → chunk-WSDB7K4X.js} +6 -6
- package/dist/{chunk-E27NRARW.js → chunk-YOZTHZS2.js} +3 -3
- package/dist/{chunk-234ZLC6W.js → chunk-ZIWLQZZL.js} +4 -4
- package/dist/essential.cjs +2 -2
- 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 +10 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -27
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-SLQ6PHZK.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +2 -2
- package/dist/voodoo.core.min.js +2 -2
- package/dist/voodoo.full.js +10 -9
- package/dist/voodoo.full.min.js +4 -4
- package/dist/voodoo.js +2 -2
- package/dist/voodoo.min.js +2 -2
- package/package.json +1 -1
- package/dist/style-XEUAGGJK.js +0 -5
package/dist/voodoo.full.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -135,7 +135,7 @@ 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 Bv(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 jv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Bv(e),[o,...i]=r.split(/[.\s]+/),s=G((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),l=G((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ue(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var qv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of qv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{jv({el:n,scope:r,cleanup:i,run:a=>{let l=qr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;jr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function qr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=qr(n,t);r&&jr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=qr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){jr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),jr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=qr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=G((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ue(()=>{let f=o.value.trim();f.length<l||jr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=ii(()=>qr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:G((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:G((d=V(e,"timeout"))!=null?d:void 0,ve.defaults.timeout),jsonPath:V(e,"json-path"),poll:G((u=V(e,"poll"))!=null?u:void 0,0),manual:xa(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});od(ud);dd(Ot);gd(eu);Nd();var Vr=new Map;function Zd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Vv(e,t){let n=Zd(e,r=>{n(),t(r)});return n}function Uv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function Wv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function eu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function _v(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Kv="0.4.6",li={...ca,version:Kv,config:w,reactive:Z,ref:Mr,shallowRef:Ns,computed:Sr,effect:_e,watch:Oe,watchEffect:Fs,nextTick:at,toRaw:Le,markRaw:Hs,unref:Os,stop:Cs,effectScope:Rs,EffectScope:et,flushSync:Ls,data:_v,store:wd,stores:Fn,removeStore:Ed,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:eu,directives:wt,magic:P,magics:Ar,createApp:bd,start:sd,whenReady:Uo,whenElement:Wo,walk:se,refresh:ld,destroy:X,stopObserving:ad,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Oc,globals:Pe,http:ve,request:zt,HttpError:Ee,resource:ii,toast:tt,storage:ue,session:ei,cookie:ti,cache:ni,url:jt,theme:ut,clipboard:oi,screen:Ke,network:qt,enter:zr,leave:Br,fadeIn:_n,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:si,injectStyle:ne,ensureTokens:he,on:Zd,once:Vv,off:Wv,emit:Uv,use(e,t){No(li,e,t)},onError(e){Ms(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};xd(li);be();var Yv=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 cu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nt(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function wa(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 du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Xv(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ft)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(du(o))return wa(o);let i=[];for(let s of Xv(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return nt(i)}if(e instanceof ft)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 nt(o)}return[]}function tu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return du(r.trim())?wa(r):[document.createTextNode(r)]}if(e instanceof ft)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 ci(e,t,n){let r=cu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function nu(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var uu=new WeakMap;function ou(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function iu(e){e.removeAttribute("hidden");let t=uu.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 su(e){let t=e.style.display;t&&t!=="none"&&uu.set(e,t),e.style.display="none"}var au="input,select,textarea";function lu(e){return e.matches(au)?[e]:Array.from(e.querySelectorAll(au))}function Qv(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 di=new WeakMap;function Jv(e){let t=di.get(e);return t||di.set(e,t=[]),t}var ft=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(nt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt([...this.elements,...fn(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))X(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))X(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=un(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]=nu(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ru(String(n));if(t.length<2){let i=this.elements[0];return i?nu(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)Gv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=cu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)ci(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)ci(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)ci(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=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(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=un(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 tu(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=fn(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=fn(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 tu(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(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);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(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 un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),Jv(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?un(t):null;for(let a of this.elements){let l=di.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}di.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)iu(t);return this}hide(){for(let t of this.elements)su(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ou(n):t)?iu(n):su(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),_n(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)ou(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(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 lu(t)){if(!Qv(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 lu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=f}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&&X(n),se(n,Ve(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function Ea(e,t){if(typeof e=="function"){ka(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function ka(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{hd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function fu(e){return new ft(wa(e))}be();le();var pn=new Map,Fe={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",vu=10,pt=[],hu=new Map,fi=new Map,Xn="inicial",pi=!1,gu=!1;function Zv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Zv());function Ur(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function eh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Sa(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=bu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function th(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function yu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Sa(window.location.hash.slice(1)||"/"):{path:Ur(th(window.location.pathname)),query:bu(window.location.search),hash:window.location.hash.slice(1)}}function xu(e,t,n){let r=eh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Aa(e){let t=xu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var La=!1,mi=!1;function Ca(e,t,n){if(!La)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(o){if(!(o instanceof Error)||o.name!=="SecurityError")throw o;La=!0}if(U.mode!=="hash")return;let r=t.slice(t.indexOf("#"));if(window.location.hash!==r){mi=!0;try{n?window.location.replace(t):window.location.hash=r}finally{setTimeout(()=>{mi=!1},0)}}}function wu(e,t){let n=e==="*"?"*":Ur(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ta).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ta(i)!==o.value)return null;r++;continue}n[o.value]=Ta(i),r++}return r===t.length?n:null}function Ta(e){try{return decodeURIComponent(e)}catch(t){return e}}function rh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ra(e){var t,n;return e&&(n=(t=pt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=Sa(e);return $a(t,n,r)}function $a(e,t,n){var o,i;let r=rh(e);return{path:e,fullPath:xu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:ce.path,fullPath:ce.fullPath,params:{...ce.params},query:{...ce.query},hash:ce.hash,name:ce.name,meta:ce.meta,matched:ce.matched}}function Da(e){ce.path=e.path,ce.fullPath=e.fullPath,ce.params=e.params,ce.query=e.query,ce.hash=e.hash,ce.name=e.name,ce.meta=e.meta,ce.matched=e.matched;let t=Ra(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ha(e,t){let n=Ra(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function hi(){typeof window!="undefined"&&hu.set(Xn,window.scrollY)}function Pa(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Vt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Eu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>vu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ha(r,n);if(d===!1)return Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}hi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Aa(r);return Ca(i,s,t.replace===!0),Xn=o,Da(r),t.scroll!==!1&&Pa(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function oh(e){var c,d;if(mi)return;let{path:t,query:n,hash:r}=yu(),o=$a(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ha(o,i);if(s===!1){Ca({[ui]:Xn},Aa(i),!0),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}hi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Da(o),Pa(o,i,(c=hu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function vi(e){oh(e)}function Eu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",vi),U.mode==="hash"&&window.addEventListener("hashchange",vi),window.addEventListener("beforeunload",hi))}function ih(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",vi),window.removeEventListener("hashchange",vi),window.removeEventListener("beforeunload",hi),La=!1,mi=!1)}async function sh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=yu(),r=Qn(),o=$a(e,t,n);for(let s=0;;s++){if(s>vu){Y("Router: too many redirects in the initial route.");return}let a=await Ha(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),Ca({[ui]:Xn},Aa(o),!0),Da(o),o.hash&&Pa(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function ah(e,t){let n=wu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function lh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ch(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function dh(e){e?fi.delete(e):fi.clear()}function uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Ur((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(wu(u,p));return gu=!0,Eu(),sh(),Wr}var fh={get current(){return ce},push:(e,t={})=>Vt(e,t),replace:(e,t={})=>Vt(e,{...t,replace:!0}),navigate:Vt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:ah,removeRoute:lh,patterns:ch,stop:ih,clearViewCache:dh,get ready(){return gu}},Wr=Object.defineProperties(uh,Object.getOwnPropertyDescriptors(fh));P("$route",()=>ce);P("$router",()=>Wr);async function ph(e){let t=fi.get(e);if(t!==void 0)return t;let n=await ve.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return fi.set(e,r),r}function mh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{jo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))X(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),se(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))se(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await ph(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?si(()=>c(u,f)):c(u,f)};r(()=>{let u=ce.matched;mh(ce.params);let p=Ra(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var vh=/^[a-z][a-z0-9+.-]*:/i;function pu(e){return!!(!e||e.startsWith("//")||vh.test(e))}function mu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ma(e,t){let{path:n}=Sa(e);return n==="/"||t?ce.path===n:ce.path===n||ce.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=mu(e,t,i);d&&(pu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Vt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=mu(e,t,i);if(!l||pu(l))return;let c=Ma(l,!0),d=c||Ma(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ma(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var hh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=hh,Zn="",Na=new Map;function gi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function bi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var ku=new Map;function gh(e,t){try{let n=ku.get(e);return n||ku.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var bh=["zero","one","two","few","many","other"];function yh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=gh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=bh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var xh=/\{\s*([\w.$-]+)\s*\}/g;function wh(e,t){return e.indexOf("{")===-1?e:e.replace(xh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Eh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Eh(t),r=z.locale,o=null;for(let a of bi(r))if(o=gi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of bi(z.fallback))if(o=gi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=yh(l,Number.isNaN(a)?0:a,r)}return wh(o,n)}function kh(e,t){let n=t!=null?t:z.locale;for(let r of bi(n))if(gi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of bi(z.fallback))if(gi(r,e)!==null)return!0}return!1}function Tu(e,t={}){return sa(e,{...t,locale:z.locale})}function Lu(e,t){return ia(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Mu(e,t="short"){return aa(e,t,z.locale)}function Su(e){return la(e,z.locale)}function xi(){return z.locale}function Th(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function yi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Oa(e,t){if(typeof t!="string"){yi(e,t);return}let n=Na.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&yi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Na.delete(e)});return Na.set(e,r),r}function _r(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,Qo(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),Fe.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?Oa(t,Zn.replace("{locale}",t)):Promise.resolve()}function Au(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function Lh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))yi(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:Au(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,Qo(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&Oa(r,Zn.replace("{locale}",r)),Kr}var Mh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:kh,n:Tu,c:Lu,d:Mu,rt:Su,setLocale:_r,getLocale:xi,addMessages:yi,loadMessages:Oa,messagesOf:Th,detectLocale:Au},Kr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>Tu);P("$c",()=>Lu);P("$d",()=>Mu);P("$rt",()=>Su);var Sh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Ah(e,t){let n=e.trim();if(!n)return"";if(Sh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Ch(e,t){var o;let n=(o=ke(e,`${w.prefix}t-params`))!=null?o:ke(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=Ah(n,o);if(!i)return;let s=er(i,Ch(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&_r(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});be();le();He();He();le();var Fa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function wi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Fa.get(e);return n&&t in n?n[t]:Wt(e,t)}function Ei(e,t,n){var o;let r=(o=Fa.get(e))!=null?o:{};r[t]=n,Fa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{Ei(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function mt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Rh=`
|
|
138
|
+
`)}))}function Bv(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 jv({el:e,cleanup:t,run:n}){var d,u;let r=V(e,"trigger")||Bv(e),[o,...i]=r.split(/[.\s]+/),s=G((d=V(e,"poll"))!=null?d:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),l=G((u=V(e,"debounce"))!=null?u:void 0,0),c=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};l>0&&(c=Ue(c,l)),e.addEventListener(o,c,{once:a}),t(()=>e.removeEventListener(o,c))}var qv=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of qv)y(e,({el:n,scope:r,expression:o,cleanup:i})=>{jv({el:n,scope:r,cleanup:i,run:a=>{let l=qr(o,r);if(!l)return;let c=V(n,"body")||V(n,"data-body"),d=c?q(c,r.child({$event:a}),"v-body"):void 0,u=V(n,"params"),p=u?q(u,r,"v-params"):void 0;jr({el:n,scope:r,method:t,url:l,body:d,params:p,event:a})}})});function qr(e,t){let n=e.trim();if(!n)return"";if((/^[./#?]/.test(n)||/^https?:\/\//i.test(n)||/^[\w-]+\/[\w\-/.]*$/.test(n))&&!/[+`'"]|\$\{/.test(n))return n;let o=q(n,t,"URL");return typeof o=="string"?o:n}y("load",({el:e,scope:t,expression:n})=>{let r=qr(n,t);r&&jr({el:e,scope:t,method:"GET",url:r})});y("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=qr(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){jr({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),jr({el:e,scope:t,method:"GET",url:o}))},{rootMargin:"120px"});i.observe(e),n(()=>i.disconnect())});y("search",({el:e,scope:t,expression:n,cleanup:r})=>{var u,p;let o=e,i=qr(n,t),s=V(e,"param")||o.getAttribute("name")||"q",a=G((u=V(e,"debounce"))!=null?u:void 0,300),l=Number((p=V(e,"min-length"))!=null?p:0),c=Ue(()=>{let f=o.value.trim();f.length<l||jr({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),d=()=>c();o.addEventListener("input",d),r(()=>{o.removeEventListener("input",d),c.cancel()})});y("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var l,c,d,u;let o=n.indexOf(":"),i=V(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=ii(()=>qr(s,t),{method:(V(e,"method")||"GET").toUpperCase(),params:()=>V(e,"params")?q(V(e,"params"),t,"v-params"):void 0,cache:G((l=V(e,"cache"))!=null?l:void 0,0)||void 0,retry:Number((c=V(e,"retry"))!=null?c:0),timeout:G((d=V(e,"timeout"))!=null?d:void 0,ve.defaults.timeout),jsonPath:V(e,"json-path"),poll:G((u=V(e,"poll"))!=null?u:void 0,0),manual:xa(e,"manual"),onSuccess:p=>Yn(e,"voodoo:success",{data:p}),onError:(p,f)=>Yn(e,"voodoo:error",{error:p,message:f})});t.set(i,a),r(()=>a.stop())},{priority:j.DATA});for(let e of["target","swap","trigger","poll","param","params","body","data-body","headers","cache","retry","timeout","as","json-path","template","offline-queue","min-length","scroll-to","manual","debounce","throttle","indicator"])y(e,()=>{},{priority:j.TRANSITION});od(ud);dd(Ot);gd(eu);Nd();var Vr=new Map;function Zd(e,t){let n=Vr.get(e);return n||Vr.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Vv(e,t){let n=Zd(e,r=>{n(),t(r)});return n}function Uv(e,t){let n=Vr.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){K(o,`event "${e}"`)}}function Wv(e,t){var n;if(!t){Vr.delete(e);return}(n=Vr.get(e))==null||n.delete(t)}function eu(e,t){var r,o;let n=typeof t=="function"?{mounted:t,updated:t}:t;y(e,i=>{var d,u;let s,a=!1,l=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},c=n.raw?i.expression:i.evaluate();(d=n.created)==null||d.call(n,i.el,l(c)),(u=n.beforeMount)==null||u.call(n,i.el,l(c)),i.effect(()=>{var m,h;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,l(p));return}if(p===s)return;let f=l(p);(h=n.updated)==null||h.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=l(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:j.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function _v(e){return Object.defineProperties(ct.data,Object.getOwnPropertyDescriptors(e)),ct.data}var Kv="0.7.0",li={...ca,version:Kv,config:w,reactive:Z,ref:Mr,shallowRef:Ns,computed:Sr,effect:_e,watch:Oe,watchEffect:Fs,nextTick:at,toRaw:Le,markRaw:Hs,unref:Os,stop:Cs,effectScope:Rs,EffectScope:et,flushSync:Ls,data:_v,store:wd,stores:Fn,removeStore:Ed,storeNames:Ko,scope:ct,component:Ft,components:$e,directive:eu,directives:wt,magic:P,magics:Ar,createApp:bd,start:sd,whenReady:Uo,whenElement:Wo,walk:se,refresh:ld,destroy:X,stopObserving:ad,getScope:Lt,findScope:Ve,addCleanup:dt,parseAttribute:$n,parse:lt,tokenize:Po,evaluate:F,evaluateIn:q,stringify:Ht,clearParseCache:Oc,globals:Pe,http:ve,request:zt,HttpError:Ee,resource:ii,toast:tt,storage:ue,session:ei,cookie:ti,cache:ni,url:jt,theme:ut,clipboard:oi,screen:Ke,network:qt,enter:zr,leave:Br,fadeIn:_n,fadeOut:Kn,slideUp:dn,slideDown:cn,viewTransition:si,injectStyle:ne,ensureTokens:he,on:Zd,once:Vv,off:Wv,emit:Uv,use(e,t){No(li,e,t)},onError(e){Ms(e)},instances:Mt,Scope:on,PRIORITY:j,VoodooSyntaxError:de,VoodooRuntimeError:Re};xd(li);be();var Yv=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 cu(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function nt(e){return e.length<2?e:Array.from(new Set(e))}function un(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function wa(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 du(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Xv(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof ft)return e.toArray();if(typeof e=="string")return fn(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=fn(e);return t.length?t:typeof document=="undefined"?[]:[document]}function fn(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(du(o))return wa(o);let i=[];for(let s of Xv(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return nt(i)}if(e instanceof ft)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 nt(o)}return[]}function tu(e){if(e==null)return[];if(typeof e=="string"){let r=e;return du(r.trim())?wa(r):[document.createTextNode(r)]}if(e instanceof ft)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 ci(e,t,n){let r=cu(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!Yv.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Gv(e,t){for(let[n,r]of Object.entries(t))ci(e,n,r)}function nu(e){if(e===void 0)return;if(e==="")return"";if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(/^-?\d+(\.\d+)?$/.test(e))return Number(e);let t=e.charCodeAt(0);if(t===123||t===91||t===34)try{return JSON.parse(e)}catch(n){return e}return e}function ru(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var uu=new WeakMap;function ou(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function iu(e){e.removeAttribute("hidden");let t=uu.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 su(e){let t=e.style.display;t&&t!=="none"&&uu.set(e,t),e.style.display="none"}var au="input,select,textarea";function lu(e){return e.matches(au)?[e]:Array.from(e.querySelectorAll(au))}function Qv(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 di=new WeakMap;function Jv(e){let t=di.get(e);return t||di.set(e,t=[]),t}var ft=class e{constructor(t=[]){H(this,"length");H(this,"elements");this.elements=t,this.length=t.length;let n=this;for(let r=0;r<t.length;r++)n[r]=t[r]}[Symbol.iterator](){return this.elements[Symbol.iterator]()}find(t){let n=[];for(let r of this.elements)try{for(let o of Array.from(r.querySelectorAll(t)))n.push(o)}catch(o){}return new e(nt(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt(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(nt([...this.elements,...fn(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))X(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))X(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=un(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]=nu(l);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[ru(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=ru(String(n));if(t.length<2){let i=this.elements[0];return i?nu(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)Gv(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=cu(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)ci(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)ci(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)ci(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=un(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=un(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=un(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=un(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 tu(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=fn(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=fn(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 tu(t))r.insertBefore(o,n);X(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=fn(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);X(n),n.remove()}}return this}remove(){for(let t of this.elements)X(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))X(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 un(t)){let d=u=>{if(!o){i.call(l,u);return}let p=u.target,f=p==null?void 0:p.closest(o);!f||!l.contains(f)||i.call(f,u)};l.addEventListener(c,d,s),Jv(l).push({type:c,selector:o,handler:i,wrapped:d,options:s})}return this}off(t,n,r){let o=typeof n=="string"?n:null,i=typeof n=="function"?n:r!=null?r:null,s=t?un(t):null;for(let a of this.elements){let l=di.get(a);if(!l)continue;let c=[];for(let d of l){let u=!s||s.includes(d.type),p=o===null||d.selector===o,f=i===null||d.handler===i;u&&p&&f?a.removeEventListener(d.type,d.wrapped,d.options):c.push(d)}di.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)iu(t);return this}hide(){for(let t of this.elements)su(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ou(n):t)?iu(n):su(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),_n(n,t);return this}fadeOut(t=220){for(let n of this.elements)Kn(n,t);return this}slideUp(t=240){for(let n of this.elements)dn(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),cn(n,t);return this}slideToggle(t=240){for(let n of this.elements)ou(n)?(n.removeAttribute("hidden"),cn(n,t)):dn(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 lu(t)){if(!Qv(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 lu(t)){let l=a;if(!l.name||l.disabled)continue;let c=(l.getAttribute("type")||"").toLowerCase();if(c==="submit"||c==="reset"||c==="button")continue;let d=l.name.endsWith("[]"),u=d?l.name.slice(0,-2):l.name,p=a,f;if(c==="checkbox"){if(!l.checked&&!d){n[u]=(r=n[u])!=null?r:!1;continue}if(!l.checked)continue;f=l.value==="on"?!0:l.value}else if(c==="radio"){if(!l.checked)continue;f=l.value}else c==="file"?f=l.multiple?Array.from((o=l.files)!=null?o:[]):(s=(i=l.files)==null?void 0:i[0])!=null?s:null:l.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):c==="number"||c==="range"?f=l.value===""?null:Number(l.value):f=l.value;if(d){let m=n[u];Array.isArray(m)?m.push(f):n[u]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,u)){let m=n[u];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[u]=f:n[u]=[m,f];continue}n[u]=f}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&&X(n),se(n,Ve(n.parentNode));return this}destroy(){for(let t of this.elements)X(t);return this}};function Ea(e,t){if(typeof e=="function"){ka(e);let n=typeof document!="undefined"?document.documentElement:null;return new ft(n?[n]:[])}return new ft(fn(e,t))}function ka(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{hd(()=>{try{e==null||e()}catch(n){K(n,"V.ready")}t()})})}function fu(e){return new ft(wa(e))}be();le();var pn=new Map,Fe={emit(e,t){let n=pn.get(e);if(!(!n||n.size===0))for(let r of[...n])try{r(t)}catch(o){console.error("[Voodoo] error in devtools listener:",o)}},on(e,t){let n=pn.get(e);return n||pn.set(e,n=new Set),n.add(t),()=>{n==null||n.delete(t)}},off(e,t){var n;(n=pn.get(e))==null||n.delete(t)},clear(e){e?pn.delete(e):pn.clear()},count(e){var t,n;return(n=(t=pn.get(e))==null?void 0:t.size)!=null?n:0}};var U={mode:"history",base:"/",beforeEach:null,afterEach:null,linkActiveClass:"v-link-active",linkExactActiveClass:"v-link-exact-active",transition:!0,titleTemplate:"%s",scrollBehavior:null},ui="__voodooRoute",vu=10,pt=[],hu=new Map,fi=new Map,Xn="inicial",pi=!1,gu=!1;function Zv(){return{path:"/",fullPath:"/",params:{},query:{},hash:"",name:"",meta:{},matched:null}}var ce=Z(Zv());function Ur(e){let t=e||"/";return t.startsWith("/")||(t=`/${t}`),t=t.replace(/\/{2,}/g,"/"),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function bu(e){let t={};return e&&new URLSearchParams(e.startsWith("?")?e.slice(1):e).forEach((r,o)=>{t[o]=r}),t}function eh(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&t.append(n,String(r));return t.toString()}function Sa(e){let t=e||"/",n="",r=t.indexOf("#");r>-1&&(n=t.slice(r+1),t=t.slice(0,r));let o={},i=t.indexOf("?");return i>-1&&(o=bu(t.slice(i+1)),t=t.slice(0,i)),{path:Ur(t),query:o,hash:n}}function th(e){let t=U.base.replace(/\/$/,"");return!t||t===""?e:e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e}function yu(){return typeof window=="undefined"?{path:"/",query:{},hash:""}:U.mode==="hash"?Sa(window.location.hash.slice(1)||"/"):{path:Ur(th(window.location.pathname)),query:bu(window.location.search),hash:window.location.hash.slice(1)}}function xu(e,t,n){let r=eh(t);return`${e}${r?`?${r}`:""}${n?`#${n}`:""}`}function Aa(e){let t=xu(e.path,e.query,e.hash);if(U.mode==="hash"){let{pathname:r,search:o}=window.location;return`${r}${o}#${t}`}return`${U.base==="/"?"":U.base.replace(/\/$/,"")}${t}`||"/"}var La=!1,mi=!1;function Ca(e,t,n){if(!La)try{n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t);return}catch(i){if(!(i instanceof Error)||i.name!=="SecurityError")throw i;La=!0}if(U.mode!=="hash")return;let r=t.indexOf("#");if(r<0)return;let o=t.slice(r);if(window.location.hash!==o){mi=!0;try{window.location.hash=o}finally{setTimeout(()=>{mi=!1},0)}}}function wu(e,t){let n=e==="*"?"*":Ur(e),r=n==="*"?["*"]:n.split("/").filter(Boolean),o=[],i=r.length*10;for(let s of r){if(s==="*"||s==="**"){o.push({type:"wildcard",value:"*",optional:!0}),i-=30;continue}if(s.startsWith(":")){let a=s.endsWith("?"),l=s.slice(1,a?-1:void 0);o.push({type:"param",value:l,optional:a}),i+=a?1:2;continue}o.push({type:"static",value:s,optional:!1}),i+=4}return{pattern:n,segments:o,score:i,record:t}}function nh(e,t){let n={},r=0;for(let o of e){if(o.type==="wildcard")return n["*"]=t.slice(r).map(Ta).join("/"),n;if(r>=t.length){if(o.optional)continue;return null}let i=t[r];if(o.type==="static"){if(Ta(i)!==o.value)return null;r++;continue}n[o.value]=Ta(i),r++}return r===t.length?n:null}function Ta(e){try{return decodeURIComponent(e)}catch(t){return e}}function rh(e){let t=e.split("/").filter(Boolean),n=null;for(let r of pt){let o=nh(r.segments,t);o&&(!n||r.score>n.route.score)&&(n={route:r,params:o})}return n}function Ra(e){var t,n;return e&&(n=(t=pt.find(r=>r.pattern===e))==null?void 0:t.record)!=null?n:null}function Gn(e){let{path:t,query:n,hash:r}=Sa(e);return $a(t,n,r)}function $a(e,t,n){var o,i;let r=rh(e);return{path:e,fullPath:xu(e,t,n),params:r?r.params:{},query:t,hash:n,name:(o=r==null?void 0:r.route.record.name)!=null?o:"",meta:(i=r==null?void 0:r.route.record.meta)!=null?i:{},matched:r?r.route.pattern:null}}function Qn(){return{path:ce.path,fullPath:ce.fullPath,params:{...ce.params},query:{...ce.query},hash:ce.hash,name:ce.name,meta:ce.meta,matched:ce.matched}}function Da(e){ce.path=e.path,ce.fullPath=e.fullPath,ce.params=e.params,ce.query=e.query,ce.hash=e.hash,ce.name=e.name,ce.meta=e.meta,ce.matched=e.matched;let t=Ra(e.matched);t!=null&&t.title&&typeof document!="undefined"&&(document.title=U.titleTemplate.includes("%s")?U.titleTemplate.replace("%s",t.title):t.title)}async function Ha(e,t){let n=Ra(e.matched);if(n!=null&&n.redirect)return n.redirect;if(n!=null&&n.beforeEnter){let r=await n.beforeEnter(e,t);if(r===!1)return!1;if(typeof r=="string")return r}if(U.beforeEach){let r=await U.beforeEach(e,t);if(r===!1)return!1;if(typeof r=="string")return r}return!0}function hi(){typeof window!="undefined"&&hu.set(Xn,window.scrollY)}function Pa(e,t,n){typeof window!="undefined"&&Me(()=>{requestAnimationFrame(()=>{var o;let r=i=>{Math.abs(window.scrollY-i)>1&&window.scrollTo(0,i)};if(U.scrollBehavior){let i=U.scrollBehavior(e,t,n);if(i===!1)return;if(typeof i=="number"){r(i);return}}if(e.hash){let i=(o=document.getElementById(e.hash))!=null?o:/^[\w-]+$/.test(e.hash)?document.querySelector(`[name="${e.hash}"]`):null;if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}r(n!=null?n:0)})})}async function Vt(e,t={}){var a,l;if(typeof window=="undefined")return!1;Eu();let n=Qn(),r=Gn(e);if(!t.force&&r.fullPath===n.fullPath)return!0;for(let c=0;;c++){if(c>vu)return Y(`Router: too many redirects when navigating to "${e}".`),!1;let d=await Ha(r,n);if(d===!1)return Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,cancelled:!0,matched:r.matched}),!1;if(typeof d=="string"){r=Gn(d);continue}break}hi();let o=ae("rota"),i={...(a=t.state)!=null?a:{},[ui]:o},s=Aa(r);return Ca(i,s,t.replace===!0),Xn=o,Da(r),t.scroll!==!1&&Pa(r,n,null),(l=U.afterEach)==null||l.call(U,Qn(),n),Fe.emit("navigation",{from:n.fullPath,to:r.fullPath,matched:r.matched}),!0}async function oh(e){var c,d;if(mi)return;let{path:t,query:n,hash:r}=yu(),o=$a(t,n,r),i=Qn();if(o.fullPath===i.fullPath)return;let s=await Ha(o,i);if(s===!1){Ca({[ui]:Xn},Aa(i),!0),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,cancelled:!0,matched:o.matched});return}if(typeof s=="string"){Vt(s,{replace:!0});return}hi();let a=e.state,l=a&&a[ui]||ae("rota");Xn=l,Da(o),Pa(o,i,(c=hu.get(l))!=null?c:0),(d=U.afterEach)==null||d.call(U,Qn(),i),Fe.emit("navigation",{from:i.fullPath,to:o.fullPath,matched:o.matched})}function vi(e){oh(e)}function Eu(){pi||typeof window=="undefined"||(pi=!0,"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),window.addEventListener("popstate",vi),U.mode==="hash"&&window.addEventListener("hashchange",vi),window.addEventListener("beforeunload",hi))}function ih(){!pi||typeof window=="undefined"||(pi=!1,window.removeEventListener("popstate",vi),window.removeEventListener("hashchange",vi),window.removeEventListener("beforeunload",hi),La=!1,mi=!1)}async function sh(){var i;if(typeof window=="undefined")return;let{path:e,query:t,hash:n}=yu(),r=Qn(),o=$a(e,t,n);for(let s=0;;s++){if(s>vu){Y("Router: too many redirects in the initial route.");return}let a=await Ha(o,r);if(a===!1)return;if(typeof a=="string"){o=Gn(a);continue}break}Xn=ae("rota"),Ca({[ui]:Xn},Aa(o),!0),Da(o),o.hash&&Pa(o,r,null),(i=U.afterEach)==null||i.call(U,Qn(),r)}function ah(e,t){let n=wu(e,t),r=pt.findIndex(o=>o.pattern===n.pattern);r>-1?pt.splice(r,1,n):pt.push(n)}function lh(e){let t=e==="*"?"*":Ur(e),n=pt.findIndex(r=>r.pattern===t);n>-1&&pt.splice(n,1)}function ch(){return[...pt].sort((e,t)=>t.score-e.score).map(e=>e.pattern)}function dh(e){e?fi.delete(e):fi.clear()}function uh(e){var t,n,r,o,i,s,a,l,c,d;U.mode=(t=e.mode)!=null?t:"history",U.base=Ur((n=e.base)!=null?n:"/"),U.beforeEach=(r=e.beforeEach)!=null?r:null,U.afterEach=(o=e.afterEach)!=null?o:null,U.linkActiveClass=(i=e.linkActiveClass)!=null?i:"v-link-active",U.linkExactActiveClass=(s=e.linkExactActiveClass)!=null?s:"v-link-exact-active",U.transition=(a=e.transition)!=null?a:!0,U.titleTemplate=(l=e.titleTemplate)!=null?l:"%s",U.scrollBehavior=(c=e.scrollBehavior)!=null?c:null,pt.length=0;for(let[u,p]of Object.entries((d=e.routes)!=null?d:{}))pt.push(wu(u,p));return gu=!0,Eu(),sh(),Wr}var fh={get current(){return ce},push:(e,t={})=>Vt(e,t),replace:(e,t={})=>Vt(e,{...t,replace:!0}),navigate:Vt,back:()=>{typeof window!="undefined"&&window.history.back()},forward:()=>{typeof window!="undefined"&&window.history.forward()},go:e=>{typeof window!="undefined"&&window.history.go(e)},resolve:Gn,addRoute:ah,removeRoute:lh,patterns:ch,stop:ih,clearViewCache:dh,get ready(){return gu}},Wr=Object.defineProperties(uh,Object.getOwnPropertyDescriptors(fh));P("$route",()=>ce);P("$router",()=>Wr);async function ph(e){let t=fi.get(e);if(t!==void 0)return t;let n=await ve.get(e,{responseType:"text"}),r=typeof n=="string"?n:String(n!=null?n:"");return fi.set(e,r),r}function mh(e){return Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}y("router-view",({el:e,scope:t,modifiers:n,effect:r,cleanup:o})=>{jo(e);let i=e.innerHTML,s=U.transition&&!n["no-transition"],a=0,l=()=>{for(let u of Array.from(e.childNodes))X(u);e.textContent=""},c=(u,p)=>{if(l(),u!=null&&u.component){let f=document.createElement("div");f.setAttribute(`${w.prefix}component`,u.component),f.className="v-router-page",e.appendChild(f),se(f,t);return}e.innerHTML=p!=null?p:i;for(let f of Array.from(e.childNodes))se(f,t)},d=async(u,p)=>{let f=null;if(u!=null&&u.view){e.classList.add("v-router-loading");try{f=await ph(u.view)}catch(m){K(m,`v-router-view loading "${u.view}"`),f=""}finally{e.classList.remove("v-router-loading")}if(p!==a)return}s?si(()=>c(u,f)):c(u,f)};r(()=>{let u=ce.matched;mh(ce.params);let p=Ra(u);d(p,++a)}),o(()=>{a++,l()})},{priority:j.DEFAULT});var vh=/^[a-z][a-z0-9+.-]*:/i;function pu(e){return!!(!e||e.startsWith("//")||vh.test(e))}function mu(e,t,n){var i;let r=t.trim();if(r){if(r.startsWith("/")||r.startsWith("#"))return r;let s=n(r);return typeof s=="string"&&s?s:r}let o=(i=e.getAttribute("href"))!=null?i:"";return U.mode==="hash"&&o.startsWith("#")?o.slice(1)||"/":o}function Ma(e,t){let{path:n}=Sa(e);return n==="/"||t?ce.path===n:ce.path===n||ce.path.startsWith(`${n}/`)}y("link",({el:e,expression:t,modifiers:n,effect:r,cleanup:o,evaluate:i})=>{let s=e,a=l=>{var u;if(l.defaultPrevented||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||typeof l.button=="number"&&l.button!==0)return;let c=s.getAttribute("target");if(c&&c!=="_self"||s.hasAttribute("download")||((u=s.getAttribute("rel"))!=null?u:"").split(/\s+/).includes("external"))return;let d=mu(e,t,i);d&&(pu(d)||U.mode!=="hash"&&d.startsWith("#")||(l.preventDefault(),Vt(d,{replace:!!n.replace,scroll:n["no-scroll"]?!1:void 0})))};e.addEventListener("click",a),o(()=>e.removeEventListener("click",a)),r(()=>{let l=mu(e,t,i);if(!l||pu(l))return;let c=Ma(l,!0),d=c||Ma(l,!1);e.classList.toggle(U.linkActiveClass,d),e.classList.toggle(U.linkExactActiveClass,c),c?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")})});y("route-active",({el:e,expression:t,arg:n,modifiers:r,effect:o,evaluate:i})=>{let s=n||"active";o(()=>{var d;let a=t.trim(),l=a.startsWith("/")||!a?a:(d=i(a))!=null?d:a,c=l?Ma(String(l),!!r.exact):!1;e.classList.toggle(s,c)})});be();le();var hh="voodoo:locale",z=Z({locale:w.locale||"pt-BR",fallback:"en",currency:w.currency||"BRL",messages:{}}),Jn=hh,Zn="",Na=new Map;function gi(e,t){let n=z.messages[e];if(!n)return null;let r=n[t];if(typeof r=="string")return r;let o=n;for(let i of t.split(".")){if(o==null||typeof o=="string")return null;o=o[i]}return typeof o=="string"?o:null}function bi(e){let t=[e],n=e.split("-")[0];n&&n!==e&&t.push(n);for(let r of Object.keys(z.messages))r!==e&&r.split("-")[0]===n&&t.push(r);return t}var ku=new Map;function gh(e,t){try{let n=ku.get(e);return n||ku.set(e,n=new Intl.PluralRules(e)),n.select(t)}catch(n){return t===1?"one":"other"}}var bh=["zero","one","two","few","many","other"];function yh(e,t,n){var i;if(e.length<=1)return(i=e[0])!=null?i:"";let r=gh(n,t);if(e.length===2)return r==="one"?e[0]:e[1];if(e.length===3)return t===0?e[0]:r==="one"?e[1]:e[2];let o=bh.indexOf(r);return e[Math.min(o<0?e.length-1:o,e.length-1)]}var xh=/\{\s*([\w.$-]+)\s*\}/g;function wh(e,t){return e.indexOf("{")===-1?e:e.replace(xh,(n,r)=>{let o=t[r];return o==null?n:String(o)})}function Eh(e){return e==null?{}:typeof e=="number"?{n:e}:e}function er(e,t){var i,s;if(!e)return"";let n=Eh(t),r=z.locale,o=null;for(let a of bi(r))if(o=gi(a,e),o!==null)break;if(o===null&&z.fallback&&z.fallback!==r){for(let a of bi(z.fallback))if(o=gi(a,e),o!==null)break}if(o===null)return e;if(o.includes("|")){let a=Number((s=(i=n.n)!=null?i:n.count)!=null?s:0),l=o.split("|").map(c=>c.trim());o=yh(l,Number.isNaN(a)?0:a,r)}return wh(o,n)}function kh(e,t){let n=t!=null?t:z.locale;for(let r of bi(n))if(gi(r,e)!==null)return!0;if(z.fallback&&z.fallback!==n){for(let r of bi(z.fallback))if(gi(r,e)!==null)return!0}return!1}function Tu(e,t={}){return sa(e,{...t,locale:z.locale})}function Lu(e,t){return ia(e,{locale:z.locale,currency:t!=null?t:z.currency})}function Mu(e,t="short"){return aa(e,t,z.locale)}function Su(e){return la(e,z.locale)}function xi(){return z.locale}function Th(e){var t;return(t=z.messages[e!=null?e:z.locale])!=null?t:{}}function yi(e,t){let n=z.messages[e];return n?Xo(n,t):z.messages[e]=t,e}async function Oa(e,t){if(typeof t!="string"){yi(e,t);return}let n=Na.get(e);if(n)return n;let r=ve.get(t,{responseType:"json"}).then(o=>{o&&typeof o=="object"&&yi(e,o)}).catch(o=>{K(o,`i18n ao carregar "${t}"`)}).finally(()=>{Na.delete(e)});return Na.set(e,r),r}function _r(e){let t=e==null?void 0:e.trim();if(!t||t===z.locale)return Promise.resolve();let n=z.locale;return z.locale=t,z.currency=z.currency||w.currency,w.locale=t,Qo(t,z.currency),Jn&&ue.set(Jn,t),typeof document!="undefined"&&(document.documentElement.lang=t),Fe.emit("locale",{from:n,to:t}),!z.messages[t]&&Zn?Oa(t,Zn.replace("{locale}",t)):Promise.resolve()}function Au(){var n;if(typeof navigator=="undefined")return null;let e=Object.keys(z.messages);if(!e.length)return null;let t=(n=navigator.languages)!=null&&n.length?[...navigator.languages]:[navigator.language];for(let r of t){if(!r)continue;let o=e.find(a=>a.toLowerCase()===r.toLowerCase());if(o)return o;let i=r.split("-")[0].toLowerCase(),s=e.find(a=>a.split("-")[0].toLowerCase()===i);if(s)return s}return null}function Lh(e={}){var o,i,s,a;if(e.messages)for(let[l,c]of Object.entries(e.messages))yi(l,c);z.fallback=(o=e.fallback)!=null?o:z.fallback,z.currency=(s=(i=e.currency)!=null?i:w.currency)!=null?s:z.currency,Zn=(a=e.loadPath)!=null?a:Zn,e.persist===!1?Jn=null:typeof e.persist=="string"&&(Jn=e.persist);let t=Jn?ue.get(Jn):void 0,n=e.detect===!1?null:Au(),r=t||n||e.locale||z.locale||z.fallback;return z.locale=r,w.locale=r,Qo(r,z.currency),typeof document!="undefined"&&(document.documentElement.lang=r),!z.messages[r]&&Zn&&Oa(r,Zn.replace("{locale}",r)),Kr}var Mh={get locale(){return z.locale},get fallback(){return z.fallback},get locales(){return Object.keys(z.messages)},t:er,te:kh,n:Tu,c:Lu,d:Mu,rt:Su,setLocale:_r,getLocale:xi,addMessages:yi,loadMessages:Oa,messagesOf:Th,detectLocale:Au},Kr=Object.defineProperties(Lh,Object.getOwnPropertyDescriptors(Mh));P("$t",()=>er);P("$locale",()=>z.locale);P("$i18n",()=>Kr);P("$n",()=>Tu);P("$c",()=>Lu);P("$d",()=>Mu);P("$rt",()=>Su);var Sh=/^[A-Za-z_$][\w$-]*(\.[A-Za-z_$][\w$-]*)*$/;function Ah(e,t){let n=e.trim();if(!n)return"";if(Sh.test(n))return n;let r=t(n);return typeof r=="string"?r:n}function Ch(e,t){var o;let n=(o=ke(e,`${w.prefix}t-params`))!=null?o:ke(e,"data-v-t-params");if(!n)return{};let r=t(n);return r&&typeof r=="object"?r:{}}y("t",({el:e,arg:t,expression:n,effect:r,evaluate:o})=>{r(()=>{let i=Ah(n,o);if(!i)return;let s=er(i,Ch(e,o));t?e.setAttribute(t,s):e.textContent!==s&&(e.textContent=s)})});y("t-params",()=>{});y("locale",({el:e,expression:t,effect:n,cleanup:r,evaluate:o})=>{let i=()=>{let a=t.trim();if(!a)return"";if(/^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$/.test(a))return a.replace("_","-");let l=o(a);return typeof l=="string"?l:a},s=()=>{let a=i();a&&_r(a)};e.addEventListener("click",s),r(()=>e.removeEventListener("click",s)),n(()=>{e.classList.toggle("v-locale-active",i()===z.locale)})});be();le();He();He();le();var Fa=new WeakMap;function Wt(e,t){var n;return(n=ke(e,`${w.prefix}${t}`))!=null?n:ke(e,`data-v-${t}`)}function wi(e,t){return Nt(e,`${w.prefix}${t}`)||Nt(e,`data-v-${t}`)}function J(e,t){let n=Fa.get(e);return n&&t in n?n[t]:Wt(e,t)}function Ei(e,t,n){var o;let r=(o=Fa.get(e))!=null?o:{};r[t]=n,Fa.set(e,r)}function _(e){y(e,({el:t,expression:n})=>{Ei(t,e,n)},{priority:j.BIND})}function fe(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function mt(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=q(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Rh=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
141
|
`,Ut=null;function Ye(e){if(typeof document=="undefined")return;ne("ui-live",Rh),(!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 ki(e,t,n){return Bo(e,t).filter(r=>Hn(r,n)===e)}He();le();var $h=`
|
|
@@ -1645,7 +1645,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1645
1645
|
@media (max-width: 640px){
|
|
1646
1646
|
.v-xray-panel{right:8px;left:8px;width:auto;max-height:60vh}
|
|
1647
1647
|
}
|
|
1648
|
-
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function hs(e){if(!e||!W)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&W.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Rp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Go(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Go((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function My(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Sy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function $p(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Dp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Dp(n,t)}function tc(e){let t=[];for(let n of Zc(e))Dp(n,t);return t}function Hp(e){let t=tc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=tc(n).length);return t}function Pp(e){if(!e||!We||hs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ms.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ms.delete(e),0)},460);wo.set(e,n)}function Mp(e,t){for(let n of tc(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Pp(t),r())}}function Ay(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Np(){if(!We||typeof document=="undefined")return;for(let[n]of Gt)n.active||Gt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(W&&W.root.contains(n)){t=Cy(e);continue}Mp(n,n)}else t.nodeType===3&&t.parentElement&&Mp(t,t.parentElement);t=e.nextNode()}Dy()}function Cy(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Ry(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Ty;n++){let r=t[n];W&&W.root.contains(r)||Gs(r)&&e.push(r)}return e}function $y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Dy(){var t;if(!We||!W)return;let e=W.overlay;e.textContent="",ko.length=0;for(let n of Ry()){let r=M("div","v-xray-box"),o=!!((t=Lt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",$y(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}oc()}function oc(){if(We)for(let e of ko){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Hy(){wr||(wr=requestAnimationFrame(()=>{wr=0,oc()}))}function Py(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Ny(e){var s;if(!W)return;let t=W.card;t.textContent="";let n=Ve(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Py(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Rp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hp(e)} effect(s) depend on this element`))}function Oy(e,t){if(!W)return;let n=W.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Sp(e){if(!We||!W)return;let t=e.target;if(!t||hs(t)){W.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Gs(n);)n=n.parentElement;if(!n||n===document.body){W.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Ny(n)),W.card.dataset.open="1",Oy(e.clientX,e.clientY)}function Fy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(W&&W.root.contains(o))continue;let i=Lt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function vs(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=My(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Sy(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Iy(){let e=document.createDocumentFragment(),t=Fy();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Fp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(vs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function zy(){var n;let e=document.createDocumentFragment(),t=[...Mt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${Hp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Fp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(vs(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(vs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function By(){let e=document.createDocumentFragment(),t=Ko();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(vs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Op(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function jy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Qt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild(Op($p(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function qy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Qt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild(Op($p(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Vy(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Gt.size} effects instrumented, peak of ${i} per second`)),e}var Uy=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Qt(){if(!W)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&W.body.contains(e))){switch(W.body.textContent="",Ze){case"estado":W.body.appendChild(Iy());break;case"componentes":W.body.appendChild(zy());break;case"stores":W.body.appendChild(By());break;case"eventos":W.body.appendChild(jy());break;case"rede":W.body.appendChild(qy());break;case"desempenho":W.body.appendChild(Vy());break}for(let t of Array.from(W.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}W.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Fp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Pp(e)}function Wy(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Ip()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Uy){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===Ze?"1":"0",p.addEventListener("click",()=>{Ze=u.id,Qt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var _y=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Ap(e){br.push(e),br.length>Cp&&br.shift(),Ze==="eventos"&&Qt()}function ec(e){yr.push(e),yr.length>Cp&&yr.shift(),Ze==="rede"&&Qt()}function Ky(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Yy(){let e=new Set(_y),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(W&&W.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Xy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||hs(n))return;let r=Ky(n,t.type),o=t.__voodoo===!0;!r&&!o||Ap({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Yy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Ap({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Rp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Gy(){yt.push(ve.interceptors.request.use(e=>(Zl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Zl.get(e.config))!=null?n:performance.now();return ec({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),yt.push(ve.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Zl.get(t))!=null?r:performance.now();return ec({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),yt.push(Fe.on("network",e=>{var t,n,r,o,i;ec({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function Qy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;hs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ms.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Np()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Jy(){ps=window.setInterval(()=>{we.effectsPerSecond=we.effects-nc,we.updatesPerSecond=we.mutations-rc,nc=we.effects,rc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),fs=window.setInterval(()=>{oc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var nc=0,rc=0;function Zy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ly),W=Wy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,nc=0,rc=0,we.history.length=0,Np(),Xy(),Gy(),Qy(),Jy();let e=()=>Hy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Sp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Sp,!0)),Qt()}function Ip(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,ps&&window.clearInterval(ps),fs&&window.clearInterval(fs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),ps=fs=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ms.clear(),Ay(),ko.length=0,xo=null,W==null||W.root.remove(),W=null}}function zp(){return We}function ic(){Lp||typeof document=="undefined"||(Lp=!0,document.addEventListener("keydown",e=>{!e.ctrlKey||!e.shiftKey||e.key!=="X"&&e.key!=="x"||(e.preventDefault(),To())}))}function To(e){return ic(),(e!=null?e:!We)?Zy():Ip(),We}He();var jp="voodoo:devtools:widget-position",sc="voodoo:devtools:widget-hidden",ex=4,te=null,kr=!1,ac=0,gs=0,Lo=[],tx=`
|
|
1648
|
+
`;function M(e,t,n){let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r}function hs(e){if(!e||!W)return!1;let t=e.nodeType===1?e:e.parentElement;return!!t&&W.root.contains(t)}function Er(e){if(!e)return"(no element)";let t=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",r=typeof e.className=="string"&&e.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"";return`${t}${n}${r}`}function Rp(e,t=64){var r;if(e===null)return"null";if(e===void 0)return"undefined";let n=typeof e;if(n==="function")return"function()";if(n==="string")return`"${Go(e,t)}"`;if(n==="number"||n==="boolean"||n==="symbol")return String(e);if(typeof Element!="undefined"&&e instanceof Element)return`<${e.tagName.toLowerCase()}>`;try{return Go((r=JSON.stringify(e))!=null?r:String(e),t)}catch(o){return String(e)}}function My(e){var t;if(typeof e=="string")return e;try{return(t=JSON.stringify(e))!=null?t:""}catch(n){return String(e)}}function Sy(e,t){if(typeof t=="string")return e;try{return JSON.parse(e)}catch(n){return e}}function $p(e){let t=new Date(e),n=r=>String(r).padStart(2,"0");return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Dp(e,t){for(let n of e.effects)t.push(n);for(let n of e.children)Dp(n,t)}function tc(e){let t=[];for(let n of Zc(e))Dp(n,t);return t}function Hp(e){let t=tc(e).length;for(let n of Array.from(e.childNodes))n.nodeType===3&&(t+=tc(n).length);return t}function Pp(e){if(!e||!We||hs(e))return;let t=wo.get(e);t&&window.clearTimeout(t),ms.add(e),e.classList.add(Eo);let n=window.setTimeout(()=>{e.classList.remove(Eo),wo.delete(e),window.setTimeout(()=>ms.delete(e),0)},460);wo.set(e,n)}function Mp(e,t){for(let n of tc(e)){if(Gt.has(n))continue;let r=n.fn;Gt.set(n,r),n.fn=()=>(we.effects++,Pp(t),r())}}function Ay(){for(let[e,t]of Gt)e.fn=t;Gt.clear()}function Np(){if(!We||typeof document=="undefined")return;for(let[n]of Gt)n.active||Gt.delete(n);let e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT),t=e.currentNode;for(;t;){if(t.nodeType===1){let n=t;if(W&&W.root.contains(n)){t=Cy(e);continue}Mp(n,n)}else t.nodeType===3&&t.parentElement&&Mp(t,t.parentElement);t=e.nextNode()}Dy()}function Cy(e){let t=e.currentNode,n=e.nextSibling();if(n)return n;let r=e.parentNode();for(;r;){if(n=e.nextSibling(),n)return n;r=e.parentNode()}return e.currentNode=t,null}function Ry(){let e=[],t=document.body.querySelectorAll("*");for(let n=0;n<t.length&&e.length<Ty;n++){let r=t[n];W&&W.root.contains(r)||Gs(r)&&e.push(r)}return e}function $y(e){return Dn(e).map(t=>t.arg?`${t.name}:${t.arg}`:t.name)}function Dy(){var t;if(!We||!W)return;let e=W.overlay;e.textContent="",ko.length=0;for(let n of Ry()){let r=M("div","v-xray-box"),o=!!((t=Lt(n))!=null&&t.component);r.dataset.kind=o?"component":"directive";let i=M("span","v-xray-tag",$y(n).join(" "));r.appendChild(i),e.appendChild(r),ko.push({el:n,box:r})}oc()}function oc(){if(We)for(let e of ko){if(!e.el.isConnected){e.box.style.display="none";continue}let t=e.el.getBoundingClientRect();if(t.width===0&&t.height===0){e.box.style.display="none";continue}e.box.style.display="block",e.box.style.left=`${t.left}px`,e.box.style.top=`${t.top}px`,e.box.style.width=`${t.width}px`,e.box.style.height=`${t.height}px`}}function Hy(){wr||(wr=requestAnimationFrame(()=>{wr=0,oc()}))}function Py(e,t=40){let n=new Set,r=[],o=e;for(;o&&r.length<t;){let i=[];try{i=Object.keys(o.data)}catch(s){i=[]}for(let s of i){if(n.has(s))continue;n.add(s);let a;try{a=o.data[s]}catch(l){a="(read error)"}if(r.push([s,a]),r.length>=t)break}o=o.parent}return r}function Ny(e){var s;if(!W)return;let t=W.card;t.textContent="";let n=Ve(e),r=(s=n.owner)==null?void 0:s.component;t.appendChild(M("strong","v-xray-card-title",Er(e))),t.appendChild(M("span","v-xray-section","Directives"));let o=Dn(e);if(!o.length)t.appendChild(M("div","v-xray-val","none"));else for(let a of o){let l=M("div","v-xray-row");l.appendChild(M("span","v-xray-key",a.raw)),l.appendChild(M("span","v-xray-val",a.expression||"(no value)")),t.appendChild(l)}t.appendChild(M("span","v-xray-section","Component")),t.appendChild(M("div","v-xray-val",r?`${r.$name} in ${Er(r.$el)}`:"none")),t.appendChild(M("span","v-xray-section","Scope"));let i=Py(n);if(!i.length)t.appendChild(M("div","v-xray-val","root scope empty"));else for(let[a,l]of i){let c=M("div","v-xray-row");c.appendChild(M("span","v-xray-key",a)),c.appendChild(M("span","v-xray-val",Rp(l))),t.appendChild(c)}t.appendChild(M("span","v-xray-section","Reactivity")),t.appendChild(M("div","v-xray-val",`${Hp(e)} effect(s) depend on this element`))}function Oy(e,t){if(!W)return;let n=W.card,r=320,o=Math.min(n.scrollHeight||200,window.innerHeight*.6),i=e+16+r>window.innerWidth?Math.max(8,e-r-16):e+16,s=t+16+o>window.innerHeight?Math.max(8,t-o-16):t+16;n.style.left=`${i}px`,n.style.top=`${s}px`}function Sp(e){if(!We||!W)return;let t=e.target;if(!t||hs(t)){W.card.dataset.open="0",xo=null;return}let n=t;for(;n&&n!==document.body&&!Gs(n);)n=n.parentElement;if(!n||n===document.body){W.card.dataset.open="0",xo=null;return}n!==xo&&(xo=n,Ny(n)),W.card.dataset.open="1",Oy(e.clientX,e.clientY)}function Fy(){let e=new Map,t=document.body.querySelectorAll("*");for(let r=0;r<t.length;r++){let o=t[r];if(W&&W.root.contains(o))continue;let i=Lt(o);i&&e.set(o,i)}let n=[];for(let[r,o]of e){let i=0,s=r.parentElement;for(;s;)e.has(s)&&i++,s=s.parentElement;n.push({el:r,scope:o,depth:i})}return n}function vs(e,t,n){let r=M("div","v-xray-row");if(r.appendChild(M("span","v-xray-key",e)),typeof t=="function")return r.appendChild(M("span","v-xray-val","function()")),r;let o=M("input","v-xray-input");return o.type="text",o.value=My(t),o.spellcheck=!1,o.addEventListener("change",()=>{try{n(Sy(o.value,t)),o.dataset.error="0"}catch(i){o.dataset.error="1"}}),o.addEventListener("keydown",i=>{i.key==="Enter"&&o.blur()}),r.appendChild(o),r}function Iy(){let e=document.createDocumentFragment(),t=Fy();if(!t.length)return e.appendChild(M("span","v-xray-empty","No scopes on the page. Use v-data or a component.")),e;for(let n of t){let r=M("div","v-xray-group");r.style.marginLeft=`${Math.min(n.depth,4)*8}px`;let o=M("div","v-xray-group-head");o.appendChild(M("span","v-xray-badge",n.scope.component?"component":"scope")),o.appendChild(M("span",void 0,Er(n.el))),o.addEventListener("click",()=>Fp(n.el)),r.appendChild(o);let i=M("div","v-xray-rows"),s=[];try{s=Object.keys(n.scope.data)}catch(a){s=[]}if(!s.length)i.appendChild(M("span","v-xray-empty","no variables"));else for(let a of s){let l;try{l=n.scope.data[a]}catch(c){l=void 0}i.appendChild(vs(a,l,c=>{n.scope.set(a,c)}))}r.appendChild(i),e.appendChild(r)}return e}function zy(){var n;let e=document.createDocumentFragment(),t=[...Mt];if(!t.length)return e.appendChild(M("span","v-xray-empty","No components mounted.")),e;for(let r of t){let o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge",r.$name)),i.appendChild(M("span",void 0,Er(r.$el))),i.appendChild(M("span","v-xray-badge",`${Hp(r.$el)} effects`)),i.lastChild.dataset.tone="mute",i.addEventListener("click",()=>Fp(r.$el)),o.appendChild(i);let s=M("div","v-xray-rows"),a=(n=r.$props)!=null?n:{},l=Object.keys(a);if(l.length){s.appendChild(M("span","v-xray-section","Props"));for(let u of l)s.appendChild(vs(u,a[u],p=>{a[u]=p}))}let c=r.$scope,d=[];try{d=Object.keys(c.data).filter(u=>!l.includes(u))}catch(u){d=[]}if(d.length){s.appendChild(M("span","v-xray-section","State"));for(let u of d){let p;try{p=c.data[u]}catch(f){p=void 0}s.appendChild(vs(u,p,f=>{c.set(u,f)}))}}o.appendChild(s),e.appendChild(o)}return e}function By(){let e=document.createDocumentFragment(),t=Ko();if(!t.length)return e.appendChild(M("span","v-xray-empty","No global stores. Create one with V.store().")),e;for(let n of t){let r=Fn[n],o=M("div","v-xray-group"),i=M("div","v-xray-group-head");i.appendChild(M("span","v-xray-badge","store")),i.firstChild.dataset.tone="alt",i.appendChild(M("span",void 0,n)),o.appendChild(i);let s=M("div","v-xray-rows"),a=r?Object.keys(r):[];if(!a.length)s.appendChild(M("span","v-xray-empty","empty store"));else for(let l of a)s.appendChild(vs(l,r[l],c=>{r[l]=c}));o.appendChild(s),e.appendChild(o)}return e}function Op(e,t,n,r){let o=M("div","v-xray-log");if(o.appendChild(M("span","v-xray-log-time",e)),o.appendChild(M("span","v-xray-log-main",t)),n!==void 0){let i=M("span",r==="fail"?"v-xray-fail":r==="ok"?"v-xray-ok":void 0,n);o.appendChild(i)}return o}function jy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{br.length=0,Qt()}),e.appendChild(t),!br.length)return e.appendChild(M("span","v-xray-empty","No events yet. Interact with the page.")),e;for(let n of[...br].reverse())e.appendChild(Op($p(n.at),`${n.type} on ${n.target}`,n.detail||n.source));return e}function qy(){let e=document.createDocumentFragment(),t=M("button","v-xray-btn","clear log");if(t.addEventListener("click",()=>{yr.length=0,Qt()}),e.appendChild(t),!yr.length)return e.appendChild(M("span","v-xray-empty","No requests yet. v-get, v-post and V.http show up here.")),e;for(let n of[...yr].reverse())e.appendChild(Op($p(n.at),`${n.method} ${n.url}`,`${n.status||"---"} ${Math.round(n.duration)}ms`,n.ok?"ok":"fail"));return e}function Vy(){let e=document.createDocumentFragment(),t=M("div","v-xray-metric");t.appendChild(M("span","v-xray-metric-value",String(we.updatesPerSecond))),t.appendChild(M("span",void 0,"DOM updates per second")),e.appendChild(t);let n=M("div","v-xray-metric");n.appendChild(M("span","v-xray-metric-value",String(we.effectsPerSecond))),n.appendChild(M("span",void 0,"reactive effects triggered per second")),e.appendChild(n);let r=M("div","v-xray-metric");r.appendChild(M("span","v-xray-metric-value",String(we.effects))),r.appendChild(M("span",void 0,"effects triggered since x-ray was enabled")),e.appendChild(r);let o=M("div","v-xray-chart"),i=Math.max(1,...we.history.map(s=>Math.max(s.effects,s.updates)));for(let s of we.history){let a=M("div","v-xray-bar"),l=Math.max(s.effects,s.updates);a.style.height=`${Math.max(2,Math.round(l/i*46))}px`,a.title=`${s.effects} effects, ${s.updates} updates`,o.appendChild(a)}return e.appendChild(o),e.appendChild(M("span","v-xray-hint",`${Gt.size} effects instrumented, peak of ${i} per second`)),e}var Uy=[{id:"estado",label:"Estado"},{id:"componentes",label:"Componentes"},{id:"stores",label:"Stores"},{id:"eventos",label:"Eventos"},{id:"rede",label:"Rede"},{id:"desempenho",label:"Desempenho"}];function Qt(){if(!W)return;let e=document.activeElement;if(!(e instanceof HTMLInputElement&&W.body.contains(e))){switch(W.body.textContent="",Ze){case"estado":W.body.appendChild(Iy());break;case"componentes":W.body.appendChild(zy());break;case"stores":W.body.appendChild(By());break;case"eventos":W.body.appendChild(jy());break;case"rede":W.body.appendChild(qy());break;case"desempenho":W.body.appendChild(Vy());break}for(let t of Array.from(W.tabs.children)){let n=t;n.dataset.active=n.dataset.id===Ze?"1":"0"}W.status.textContent=`${ko.length} elements with directives, ${Mt.size} components, ${Gt.size} effects observed`}}function Fp(e){e.scrollIntoView({behavior:"smooth",block:"center"}),Pp(e)}function Wy(){let e=M("div","v-xray-root");e.setAttribute(`${w.prefix}ignore`,""),e.setAttribute("role","complementary"),e.setAttribute("aria-label","Voodoo x-ray inspector"),Tn!=="auto"&&(e.dataset.vXrayTheme=Tn);let t=M("div","v-xray-overlay");e.appendChild(t);let n=M("div","v-xray-card");n.dataset.open="0",e.appendChild(n);let r=M("div","v-xray-panel"),o=M("div","v-xray-header"),i=M("div","v-xray-brand");i.appendChild(M("span","v-xray-dot")),i.appendChild(document.createTextNode("Voodoo x-ray")),o.appendChild(i);let s=M("button","v-xray-btn","theme");s.addEventListener("click",()=>{Tn=Tn==="auto"?"dark":Tn==="dark"?"light":"auto",Tn==="auto"?delete e.dataset.vXrayTheme:e.dataset.vXrayTheme=Tn}),o.appendChild(s);let a=M("button","v-xray-btn","close");a.addEventListener("click",()=>Ip()),o.appendChild(a),r.appendChild(o);let l=M("div","v-xray-tabs");for(let u of Uy){let p=M("button","v-xray-tab",u.label);p.dataset.id=u.id,p.dataset.active=u.id===Ze?"1":"0",p.addEventListener("click",()=>{Ze=u.id,Qt()}),l.appendChild(p)}r.appendChild(l);let c=M("div","v-xray-body");r.appendChild(c);let d=M("div","v-xray-status","starting");return r.appendChild(d),e.appendChild(r),document.body.appendChild(e),{root:e,overlay:t,card:n,panel:r,tabs:l,body:c,status:d}}var _y=["click","dblclick","submit","input","change","keydown","keyup","focus","blur","contextmenu","drop","paste"];function Ap(e){br.push(e),br.length>Cp&&br.shift(),Ze==="eventos"&&Qt()}function ec(e){yr.push(e),yr.length>Cp&&yr.shift(),Ze==="rede"&&Qt()}function Ky(e,t){let n=e;for(let r=0;n&&r<6;r++){for(let o of Dn(n))if(o.name===t||o.name==="on"&&o.arg===t)return n;n=n.parentElement}return null}function Yy(){let e=new Set(_y),t=document.body.querySelectorAll("*");for(let n=0;n<t.length;n++){let r=t[n];if(!(W&&W.root.contains(r)))for(let o of Dn(r))o.name==="on"&&o.arg&&e.add(o.arg)}return[...e]}function Xy(){let e=t=>{if(!We)return;let n=t.target;if(!n||n.nodeType!==1||hs(n))return;let r=Ky(n,t.type),o=t.__voodoo===!0;!r&&!o||Ap({at:Date.now(),type:t.type,target:Er(r!=null?r:n),detail:o?"component emit":"",source:o?"component":"v-on"})};for(let t of Yy())document.addEventListener(t,e,!0),yt.push(()=>document.removeEventListener(t,e,!0));yt.push(Fe.on("event",t=>{var n,r;Ap({at:Date.now(),type:t.type,target:Er((n=t.el)!=null?n:null),detail:Rp(t.detail),source:(r=t.source)!=null?r:"bus"})}))}function Gy(){yt.push(ve.interceptors.request.use(e=>(Zl.set(e,performance.now()),e))),yt.push(ve.interceptors.response.use(e=>{var n,r;let t=(n=Zl.get(e.config))!=null?n:performance.now();return ec({at:Date.now(),method:((r=e.config.method)!=null?r:"GET").toUpperCase(),url:e.config.url,status:e.status,ok:e.ok,duration:performance.now()-t,source:"http"}),e})),yt.push(ve.interceptors.error.use(e=>{var r,o,i;let t=e.config,n=t&&(r=Zl.get(t))!=null?r:performance.now();return ec({at:Date.now(),method:((o=t==null?void 0:t.method)!=null?o:"GET").toUpperCase(),url:(i=t==null?void 0:t.url)!=null?i:"(unknown)",status:e.status,ok:!1,duration:performance.now()-n,source:"http"}),e})),yt.push(Fe.on("network",e=>{var t,n,r,o,i;ec({at:Date.now(),method:((t=e.method)!=null?t:"GET").toUpperCase(),url:e.url,status:(n=e.status)!=null?n:0,ok:(r=e.ok)!=null?r:!e.error,duration:(o=e.duration)!=null?o:0,source:(i=e.source)!=null?i:"bus"})}))}var gr=null;function Qy(){gr=new MutationObserver(e=>{let t=!1;for(let n of e){let r=n.target;hs(r)||n.type==="attributes"&&n.attributeName==="class"&&r.nodeType===1&&ms.has(r)||(we.mutations++,n.type==="childList"&&n.addedNodes.length&&(t=!0))}t&&!xr&&(xr=window.setTimeout(()=>{xr=0,Np()},250))}),gr.observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0})}function Jy(){ps=window.setInterval(()=>{we.effectsPerSecond=we.effects-nc,we.updatesPerSecond=we.mutations-rc,nc=we.effects,rc=we.mutations,we.history.push({effects:we.effectsPerSecond,updates:we.updatesPerSecond}),we.history.length>40&&we.history.shift(),Ze==="desempenho"&&Qt()},1e3),fs=window.setInterval(()=>{oc(),(Ze==="estado"||Ze==="componentes"||Ze==="stores")&&Qt()},700)}var nc=0,rc=0;function Zy(){if(We||typeof document=="undefined"||!document.body)return;We=!0,he(),ne("xray",Ly),W=Wy(),Ze=Ze||"estado",we.effects=0,we.mutations=0,nc=0,rc=0,we.history.length=0,Np(),Xy(),Gy(),Qy(),Jy();let e=()=>Hy();window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),document.addEventListener("mousemove",Sp,!0),yt.push(()=>window.removeEventListener("scroll",e,!0)),yt.push(()=>window.removeEventListener("resize",e)),yt.push(()=>document.removeEventListener("mousemove",Sp,!0)),Qt()}function Ip(){if(We){We=!1;for(let e of yt.splice(0))try{e()}catch(t){}gr==null||gr.disconnect(),gr=null,ps&&window.clearInterval(ps),fs&&window.clearInterval(fs),xr&&window.clearTimeout(xr),wr&&cancelAnimationFrame(wr),ps=fs=xr=wr=0;for(let[e,t]of wo)window.clearTimeout(t),e.classList.remove(Eo);wo.clear(),ms.clear(),Ay(),ko.length=0,xo=null,W==null||W.root.remove(),W=null}}function zp(){return We}function ic(){Lp||typeof document=="undefined"||(Lp=!0,document.addEventListener("keydown",e=>{!e.altKey||!e.shiftKey||e.ctrlKey||e.metaKey||e.code!=="KeyV"&&e.key!=="V"&&e.key!=="v"||(e.preventDefault(),To())}))}function To(e){return ic(),(e!=null?e:!We)?Zy():Ip(),We}He();var jp="voodoo:devtools:widget-position",sc="voodoo:devtools:widget-hidden",ex=4,te=null,kr=!1,ac=0,gs=0,Lo=[],tx=`
|
|
1649
1649
|
.v-devtools-widget{
|
|
1650
1650
|
all: initial;
|
|
1651
1651
|
--vw-accent:#6D3BF5;
|
|
@@ -1779,6 +1779,6 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
1779
1779
|
`,nx=`<svg class="v-devtools-mark" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
1780
1780
|
<path d="M4 4l8 16 8-16" stroke="#6D3BF5" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1781
1781
|
<circle cx="12" cy="7.5" r="2" fill="#FF3D8B"/>
|
|
1782
|
-
</svg>`;function rx(){try{let e=localStorage.getItem(jp);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function ox(e){try{localStorage.setItem(jp,JSON.stringify(e))}catch(t){}}function lc(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function ix(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (
|
|
1782
|
+
</svg>`;function rx(){try{let e=localStorage.getItem(jp);if(!e)return null;let t=JSON.parse(e);return typeof(t==null?void 0:t.x)!="number"||typeof(t==null?void 0:t.y)!="number"?null:t}catch(e){return null}}function ox(e){try{localStorage.setItem(jp,JSON.stringify(e))}catch(t){}}function lc(e,t){let n=e.offsetWidth||120,r=e.offsetHeight||38,o=Math.min(Math.max(8,t.x),Math.max(8,window.innerWidth-n-8)),i=Math.min(Math.max(8,t.y),Math.max(8,window.innerHeight-r-8));e.style.left=`${o}px`,e.style.top=`${i}px`,e.style.right="auto",e.style.bottom="auto"}function ix(){let e=document.createElement("div");e.className="v-devtools-widget",e.setAttribute("data-voodoo-devtools","widget");let t=document.createElement("button");t.type="button",t.className="v-devtools-btn",t.setAttribute("aria-label","Open Voodoo devtools (Alt+Shift+V)"),t.setAttribute("aria-pressed","false"),t.title="Voodoo devtools \u2014 click to inspect, drag to move (Alt+Shift+V)",t.innerHTML=nx;let n=document.createElement("span");n.className="v-devtools-label",n.textContent="Voodoo";let r=document.createElement("span");r.className="v-devtools-count",r.textContent="0";let o=document.createElement("span");o.className="v-devtools-pulse",o.setAttribute("data-on","false"),t.append(n,r,o);let i=document.createElement("button");i.type="button",i.className="v-devtools-close",i.setAttribute("aria-label","Hide the devtools widget in this tab"),i.title="Hide in this tab",i.textContent="\xD7",e.append(t,i),document.body.appendChild(e);let s=rx();return s?lc(e,s):(e.style.right="16px",e.style.bottom="16px"),{root:e,button:t,pulse:o,counter:r,close:i}}function sx(e,t){let n=!1,r=!1,o=0,i=0,s=0,a=0,l=f=>{var h,v;if(f.button!==0)return;let m=e.root.getBoundingClientRect();n=!0,r=!1,s=f.clientX,a=f.clientY,o=f.clientX-m.left,i=f.clientY-m.top,(v=(h=e.button).setPointerCapture)==null||v.call(h,f.pointerId)},c=f=>{if(!n)return;let m=Math.hypot(f.clientX-s,f.clientY-a);!r&&m<ex||(r=!0,f.preventDefault(),lc(e.root,{x:f.clientX-o,y:f.clientY-i}))},d=f=>{var h,v;if(!n)return;if(n=!1,(v=(h=e.button).releasePointerCapture)==null||v.call(h,f.pointerId),!r){t();return}let m=e.root.getBoundingClientRect();ox({x:m.left,y:m.top})},u=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),t())},p=()=>{let f=e.root.getBoundingClientRect();e.root.style.left&&lc(e.root,{x:f.left,y:f.top})};return e.button.addEventListener("pointerdown",l),e.button.addEventListener("pointermove",c),e.button.addEventListener("pointerup",d),e.button.addEventListener("pointercancel",d),e.button.addEventListener("keydown",u),window.addEventListener("resize",p),()=>{e.button.removeEventListener("pointerdown",l),e.button.removeEventListener("pointermove",c),e.button.removeEventListener("pointerup",d),e.button.removeEventListener("pointercancel",d),e.button.removeEventListener("keydown",u),window.removeEventListener("resize",p)}}function ax(){te&&(te.pulse.setAttribute("data-on","true"),window.clearTimeout(gs),gs=window.setTimeout(()=>{te==null||te.pulse.setAttribute("data-on","false")},320))}function Bp(){if(!te)return;let e=Mt.size,t=e===1?"1 component":`${e} components`;te.counter.textContent!==t&&(te.counter.textContent=t)}function lx(){if(kr||typeof document=="undefined"||!document.body)return;try{if(sessionStorage.getItem(sc)==="1")return}catch(r){}kr=!0,ne("devtools-widget",tx),te=ix();let e=()=>{let r=To();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.setAttribute("aria-pressed",String(r))};Lo.push(sx(te,e));let t=r=>{r.stopPropagation();try{sessionStorage.setItem(sc,"1")}catch(o){}qp(),console.info("[Voodoo] devtools widget hidden. Use V.devtoolsWidget(true) to bring back.")};te.close.addEventListener("click",t),Lo.push(()=>te==null?void 0:te.close.removeEventListener("click",t));let n=()=>{let r=zp();te==null||te.root.setAttribute("data-active",String(r)),te==null||te.button.setAttribute("aria-pressed",String(r))};document.addEventListener("keyup",n),Lo.push(()=>document.removeEventListener("keyup",n));for(let r of["network","event","navigation","update"])Lo.push(Fe.on(r,ax));Bp(),ac=window.setInterval(Bp,1e3)}function qp(){if(kr){kr=!1;for(let e of Lo.splice(0))try{e()}catch(t){}window.clearInterval(ac),window.clearTimeout(gs),ac=0,gs=0,te==null||te.root.remove(),te=null}}function Vp(e){if(e!=null?e:!kr){try{sessionStorage.removeItem(sc)}catch(n){}lx()}else qp();return kr}var Wp=((e,t)=>Ea(e,t));function Up(e,t,n){return((...r)=>(Rr(e,t),n(...r)))}Object.assign(Wp,li,{query:Ea,ready:ka,fromHtml:fu,Collection:ft,router:Wr,route:ce,navigate:Vt,resolveRoute:Gn,i18n:Kr,t:er,setLocale:_r,getLocale:xi,modal:En,alert:Gl,confirm:ls,prompt:Ql,dialog:hr,validator:Q,validate:ol,validateForm:Up("V.validateForm","V.validate",ol),serializeForm:or,messages:rt,showFormErrors:Ni,showFieldError:Pi,clearErrors:no,mask:Ep,masks:yo,applyMask:bo,unmask:us,registerMask:Te,animate:Rt,spring:Ll,stagger:Ml,inView:Qi,scrollProgress:Sl,motion:hn,easings:ao,chart:Up("V.chart","V.renderChart",ur),renderChart:ur,charts:Hl,chartColors:co,palette:cp,hotkey:Qr,sound:Yt,xray:To,enableXrayShortcut:ic,devtoolsWidget:Vp,devtools:Fe,magic:P});var cc=Wp;le();function cx(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 dx(){var i;if(typeof document=="undefined")return{manual:!1};let e=(i=document.currentScript)!=null?i:document.querySelector('script[src*="voodoo"]');if(!e)return{manual:!1};let t=e.hasAttribute("data-manual")||e.hasAttribute("data-defer-init"),n=e.getAttribute("data-prefix");n&&(w.prefix=n);let r=e.getAttribute("data-base-url");r&&(w.baseURL=r);let o=e.getAttribute("data-locale");return o&&(w.locale=o),cx(e)&&(w.devtools=!0),e.hasAttribute("data-no-styles")&&(w.injectStyles=!1),e.hasAttribute("data-no-observer")&&(w.autoDiscover=!1),e.hasAttribute("data-keep-attributes")&&(w.cleanAttributes=!1),{manual:t}}function ux(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 _p(e){var o;if(typeof window=="undefined")return;let t=dx(),n=window;if(n.V=e,n.Voodoo=e,Pe.V=e,Pe.Voodoo=e,w.baseURL&&((o=e.http)!=null&&o.setBaseURL)&&e.http.setBaseURL(w.baseURL),t.manual||!w.autoStart)return;Uo(()=>{ut.init(),lp(),e.start(),w.devtools&&ux(e)})}_p(cc);var fx=cc;return om(px);})();
|
|
1783
1783
|
if(typeof window!=="undefined"){window.V=Voodoo.default||Voodoo;window.Voodoo=window.V;}
|
|
1784
1784
|
//# sourceMappingURL=voodoo.full.min.js.map
|
package/dist/voodoo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -6612,7 +6612,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
6612
6612
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6613
6613
|
return rootScope.data;
|
|
6614
6614
|
}
|
|
6615
|
-
var version2 = "0.
|
|
6615
|
+
var version2 = "0.7.0";
|
|
6616
6616
|
var core = {
|
|
6617
6617
|
// Utilities first: Voodoo's own names can override.
|
|
6618
6618
|
...utils_exports,
|
package/dist/voodoo.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.7.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -135,7 +135,7 @@ 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 Nd(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 $d({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Nd(e),[o,...i]=r.split(/[.\s]+/),s=U((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=U((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var Od=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Od)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{$d({el:n,scope:r,cleanup:i,run:a=>{let c=Dn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?$(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?$(d,r,"v-params"):void 0;Hn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Dn(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=$(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Dn(n,t);r&&Hn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Dn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Hn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Hn({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,p;let o=e,i=Dn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=U((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Hn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=kr(()=>Dn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?$(D(e,"params"),t,"v-params"):void 0,cache:U((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:U((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:U((d=D(e,"poll"))!=null?d:void 0,0),manual:mi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});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});oa(da);ua(rt);ha(rc);Fa();var Pn=new Map;function nc(e,t){let n=Pn.get(e);return n||Pn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Fd(e,t){let n=nc(e,r=>{n(),t(r)});return n}function Id(e,t){let n=Pn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){z(o,`event "${e}"`)}}function jd(e,t){var n;if(!t){Pn.delete(e);return}(n=Pn.get(e))==null||n.delete(t)}function rc(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,c=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Bd(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var qd="0.4.6",Ar={...ni,version:qd,config:E,reactive:V,ref:bn,shallowRef:Do,computed:wn,effect:Ee,watch:ve,watchEffect:No,nextTick:ht,toRaw:oe,markRaw:Ro,unref:Po,stop:Ao,effectScope:So,EffectScope:Me,flushSync:xo,data:Bd,store:Ea,stores:vr,removeStore:xa,storeNames:Ta,scope:Fe,component:Wt,components:le,directive:rc,directives:We,magic:H,magics:En,createApp:ya,start:sa,whenReady:pr,whenElement:mr,walk:W,refresh:ca,destroy:q,stopObserving:aa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:Oe,tokenize:or,evaluate:C,evaluateIn:$,stringify:tt,clearParseCache:$s,globals:pe,http:me,request:it,HttpError:te,resource:kr,toast:Re,storage:Q,session:wr,cookie:Er,cache:xr,url:at,theme:je,clipboard:ci,screen:He,network:At,enter:Cn,leave:Rn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:za,injectStyle:G,ensureTokens:ie,on:nc,once:Fd,off:jd,emit:Id,use(e,t){ir(Ar,e,t)},onError(e){To(e)},instances:dr,Scope:wt,PRIORITY:P,VoodooSyntaxError:_,VoodooRuntimeError:ce};wa(Ar);ne();var zd=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 fc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function gi(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 pc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Ud(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(pc(o))return gi(o);let i=[];for(let s of Ud(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 De(o)}return[]}function oc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return pc(r.trim())?gi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Sr(e,t,n){let r=fc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!zd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Vd(e,t){for(let[n,r]of Object.entries(t))Sr(e,n,r)}function ic(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 sc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var mc=new WeakMap;function ac(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function cc(e){e.removeAttribute("hidden");let t=mc.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 lc(e){let t=e.style.display;t&&t!=="none"&&mc.set(e,t),e.style.display="none"}var uc="input,select,textarea";function dc(e){return e.matches(uc)?[e]:Array.from(e.querySelectorAll(uc))}function _d(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 Mr=new WeakMap;function Wd(e){let t=Mr.get(e);return t||Mr.set(e,t=[]),t}var Be=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(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(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(De(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(De(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(De(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(De([...this.elements,...Rt(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))q(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))q(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 c of Array.from(s.options))c.selected=a.includes(c.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[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));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=Ct(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,c]of Object.entries(i.dataset))s[a]=ic(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[sc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=sc(String(n));if(t.length<2){let i=this.elements[0];return i?ic(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)Vd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=fc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Sr(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)Sr(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)Sr(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=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(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=Ct(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 oc(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=Rt(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=Rt(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 oc(t))r.insertBefore(o,n);q(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(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);q(n),n.remove()}}return this}remove(){for(let t of this.elements)q(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))q(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 c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Wd(c).push({type:l,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?Ct(t):null;for(let a of this.elements){let c=Mr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Mr.set(a,l)}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(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};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)cc(t);return this}hide(){for(let t of this.elements)lc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ac(n):t)?cc(n):lc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)ac(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 dc(t)){if(!_d(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 dc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=f}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&&q(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)q(t);return this}};function vi(e,t){if(typeof e=="function"){hi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function hi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{va(()=>{try{e==null||e()}catch(n){z(n,"V.ready")}t()})})}function gc(e){return new Be(gi(e))}ne();J();Te();Te();J();var yi=new WeakMap;function lt(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Cr(e,t){return nt(e,`${E.prefix}${t}`)||nt(e,`data-v-${t}`)}function j(e,t){let n=yi.get(e);return n&&t in n?n[t]:lt(e,t)}function Rr(e,t,n){var o;let r=(o=yi.get(e))!=null?o:{};r[t]=n,yi.set(e,r)}function O(e){b(e,({el:t,expression:n})=>{Rr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=$(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Kd=`
|
|
138
|
+
`)}))}function Nd(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 $d({el:e,cleanup:t,run:n}){var u,d;let r=D(e,"trigger")||Nd(e),[o,...i]=r.split(/[.\s]+/),s=U((u=D(e,"poll"))!=null?u:void 0,0);if(s>0){n();let p=setInterval(()=>{document.visibilityState==="visible"&&n()},s);t(()=>clearInterval(p));return}if(o==="load"||o==="ready"){n();return}if(o==="visible"||o==="revealed"){if(typeof IntersectionObserver=="undefined"){n();return}let p=new IntersectionObserver(f=>{for(let m of f)m.isIntersecting&&(n(),i.includes("repeat")||p.unobserve(e))},{rootMargin:"80px"});p.observe(e),t(()=>p.disconnect());return}let a=i.includes("once"),c=U((d=D(e,"debounce"))!=null?d:void 0,0),l=p=>{(e.tagName==="FORM"||e.href)&&p.preventDefault(),n(p)};c>0&&(l=be(l,c)),e.addEventListener(o,l,{once:a}),t(()=>e.removeEventListener(o,l))}var Od=[["get","GET"],["post","POST"],["put","PUT"],["patch","PATCH"],["delete","DELETE"]];for(let[e,t]of Od)b(e,({el:n,scope:r,expression:o,cleanup:i})=>{$d({el:n,scope:r,cleanup:i,run:a=>{let c=Dn(o,r);if(!c)return;let l=D(n,"body")||D(n,"data-body"),u=l?$(l,r.child({$event:a}),"v-body"):void 0,d=D(n,"params"),p=d?$(d,r,"v-params"):void 0;Hn({el:n,scope:r,method:t,url:c,body:u,params:p,event:a})}})});function Dn(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=$(n,t,"URL");return typeof o=="string"?o:n}b("load",({el:e,scope:t,expression:n})=>{let r=Dn(n,t);r&&Hn({el:e,scope:t,method:"GET",url:r})});b("load-visible",({el:e,scope:t,cleanup:n,expression:r})=>{let o=Dn(r,t);if(!o)return;if(typeof IntersectionObserver=="undefined"){Hn({el:e,scope:t,method:"GET",url:o});return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(i.unobserve(e),Hn({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,p;let o=e,i=Dn(n,t),s=D(e,"param")||o.getAttribute("name")||"q",a=U((d=D(e,"debounce"))!=null?d:void 0,300),c=Number((p=D(e,"min-length"))!=null?p:0),l=be(()=>{let f=o.value.trim();f.length<c||Hn({el:e,scope:t,method:"GET",url:i,params:{[s]:f}})},a),u=()=>l();o.addEventListener("input",u),r(()=>{o.removeEventListener("input",u),l.cancel()})});b("resource",({el:e,scope:t,expression:n,cleanup:r})=>{var c,l,u,d;let o=n.indexOf(":"),i=D(e,"as")||"resource",s=n.trim();if(o>-1){let p=n.slice(0,o).trim();/^[A-Za-z_$][\w$]*$/.test(p)&&(i=p,s=n.slice(o+1).trim())}let a=kr(()=>Dn(s,t),{method:(D(e,"method")||"GET").toUpperCase(),params:()=>D(e,"params")?$(D(e,"params"),t,"v-params"):void 0,cache:U((c=D(e,"cache"))!=null?c:void 0,0)||void 0,retry:Number((l=D(e,"retry"))!=null?l:0),timeout:U((u=D(e,"timeout"))!=null?u:void 0,me.defaults.timeout),jsonPath:D(e,"json-path"),poll:U((d=D(e,"poll"))!=null?d:void 0,0),manual:mi(e,"manual"),onSuccess:p=>on(e,"voodoo:success",{data:p}),onError:(p,f)=>on(e,"voodoo:error",{error:p,message:f})});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});oa(da);ua(rt);ha(rc);Fa();var Pn=new Map;function nc(e,t){let n=Pn.get(e);return n||Pn.set(e,n=new Set),n.add(t),()=>n.delete(t)}function Fd(e,t){let n=nc(e,r=>{n(),t(r)});return n}function Id(e,t){let n=Pn.get(e);if(n)for(let r of[...n])try{r(t)}catch(o){z(o,`event "${e}"`)}}function jd(e,t){var n;if(!t){Pn.delete(e);return}(n=Pn.get(e))==null||n.delete(t)}function rc(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,c=p=>{var f,m;return{el:i.el,value:p,oldValue:s,arg:i.arg,modifiers:i.modifiers,expression:i.expression,scope:i.scope,instance:(m=(f=i.scope.owner)==null?void 0:f.component)!=null?m:null}},l=n.raw?i.expression:i.evaluate();(u=n.created)==null||u.call(n,i.el,c(l)),(d=n.beforeMount)==null||d.call(n,i.el,c(l)),i.effect(()=>{var m,v;let p=n.raw?i.expression:i.evaluate();if(!a){a=!0,s=p,(m=n.mounted)==null||m.call(n,i.el,c(p));return}if(p===s)return;let f=c(p);(v=n.updated)==null||v.call(n,i.el,f),s=p}),i.cleanup(()=>{var f,m;let p=c(s);(f=n.beforeUnmount)==null||f.call(n,i.el,p),(m=n.unmounted)==null||m.call(n,i.el,p)})},{priority:(r=n.priority)!=null?r:P.DEFAULT,terminal:(o=n.terminal)!=null?o:!1})}function Bd(e){return Object.defineProperties(Fe.data,Object.getOwnPropertyDescriptors(e)),Fe.data}var qd="0.7.0",Ar={...ni,version:qd,config:E,reactive:V,ref:bn,shallowRef:Do,computed:wn,effect:Ee,watch:ve,watchEffect:No,nextTick:ht,toRaw:oe,markRaw:Ro,unref:Po,stop:Ao,effectScope:So,EffectScope:Me,flushSync:xo,data:Bd,store:Ea,stores:vr,removeStore:xa,storeNames:Ta,scope:Fe,component:Wt,components:le,directive:rc,directives:We,magic:H,magics:En,createApp:ya,start:sa,whenReady:pr,whenElement:mr,walk:W,refresh:ca,destroy:q,stopObserving:aa,getScope:zt,findScope:Ce,addCleanup:Ie,parseAttribute:qt,parse:Oe,tokenize:or,evaluate:C,evaluateIn:$,stringify:tt,clearParseCache:$s,globals:pe,http:me,request:it,HttpError:te,resource:kr,toast:Re,storage:Q,session:wr,cookie:Er,cache:xr,url:at,theme:je,clipboard:ci,screen:He,network:At,enter:Cn,leave:Rn,fadeIn:nn,fadeOut:rn,slideUp:Mt,slideDown:St,viewTransition:za,injectStyle:G,ensureTokens:ie,on:nc,once:Fd,off:jd,emit:Id,use(e,t){ir(Ar,e,t)},onError(e){To(e)},instances:dr,Scope:wt,PRIORITY:P,VoodooSyntaxError:_,VoodooRuntimeError:ce};wa(Ar);ne();var zd=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 fc(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function De(e){return e.length<2?e:Array.from(new Set(e))}function Ct(e){return String(e!=null?e:"").split(/\s+/).filter(Boolean)}function gi(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 pc(e){return e.length>2&&e.charCodeAt(0)===60&&e.endsWith(">")}function Ud(e){if(e==null)return typeof document=="undefined"?[]:[document];if(e instanceof Be)return e.toArray();if(typeof e=="string")return Rt(e);if(typeof e=="function")return typeof document=="undefined"?[]:[document];let t=Rt(e);return t.length?t:typeof document=="undefined"?[]:[document]}function Rt(e,t){if(e==null)return[];if(typeof e=="string"){let o=e.trim();if(!o)return[];if(pc(o))return gi(o);let i=[];for(let s of Ud(t))try{for(let a of Array.from(s.querySelectorAll(o)))i.push(a)}catch(a){}return De(i)}if(e instanceof Be)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 De(o)}return[]}function oc(e){if(e==null)return[];if(typeof e=="string"){let r=e;return pc(r.trim())?gi(r):[document.createTextNode(r)]}if(e instanceof Be)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 Sr(e,t,n){let r=fc(t);if(n===null||n===""){e.style.removeProperty(r);return}let o=typeof n=="number"&&!zd.has(r)&&!r.startsWith("--")?`${n}px`:String(n);e.style.setProperty(r,o)}function Vd(e,t){for(let[n,r]of Object.entries(t))Sr(e,n,r)}function ic(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 sc(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var mc=new WeakMap;function ac(e){return e.hasAttribute("hidden")||e.style.display==="none"?!0:e.isConnected?getComputedStyle(e).display==="none":!1}function cc(e){e.removeAttribute("hidden");let t=mc.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 lc(e){let t=e.style.display;t&&t!=="none"&&mc.set(e,t),e.style.display="none"}var uc="input,select,textarea";function dc(e){return e.matches(uc)?[e]:Array.from(e.querySelectorAll(uc))}function _d(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 Mr=new WeakMap;function Wd(e){let t=Mr.get(e);return t||Mr.set(e,t=[]),t}var Be=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(De(n))}closest(t){let n=[];for(let r of this.elements){let o=r.closest(t);o&&n.push(o)}return new e(De(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(De(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(De(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(De(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(De(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(De(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(De(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(De([...this.elements,...Rt(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))q(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))q(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 c of Array.from(s.options))c.selected=a.includes(c.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[c,l]of Object.entries(n))l===null||l===!1?a.removeAttribute(c):a.setAttribute(c,l===!0?"":String(l));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=Ct(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,c]of Object.entries(i.dataset))s[a]=ic(c);return s}if(n!==null&&typeof n=="object"){for(let i of this.elements)for(let[s,a]of Object.entries(n))i.dataset[sc(s)]=typeof a=="string"?a:JSON.stringify(a!=null?a:null);return this}let r=sc(String(n));if(t.length<2){let i=this.elements[0];return i?ic(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)Vd(o,n);return this}let r=String(n);if(t.length<2){let o=this.elements[0];if(!o)return"";let i=fc(r);return((o.isConnected?getComputedStyle(o).getPropertyValue(i):"")||o.style.getPropertyValue(i)).trim()}for(let o of this.elements)Sr(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)Sr(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)Sr(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=Ct(t);if(n.length)for(let r of this.elements)r.classList.add(...n);return this}removeClass(t){let n=Ct(t);if(n.length)for(let r of this.elements)r.classList.remove(...n);return this}toggleClass(t,n){let r=Ct(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=Ct(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 oc(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=Rt(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=Rt(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 oc(t))r.insertBefore(o,n);q(n),n.remove()}}return this}wrap(t){var n;for(let r of this.elements){let o=Rt(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);q(n),n.remove()}}return this}remove(){for(let t of this.elements)q(t),t.remove();return this}empty(){for(let t of this.elements){for(let n of Array.from(t.childNodes))q(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 c of this.elements)for(let l of Ct(t)){let u=d=>{if(!o){i.call(c,d);return}let p=d.target,f=p==null?void 0:p.closest(o);!f||!c.contains(f)||i.call(f,d)};c.addEventListener(l,u,s),Wd(c).push({type:l,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?Ct(t):null;for(let a of this.elements){let c=Mr.get(a);if(!c)continue;let l=[];for(let u of c){let d=!s||s.includes(u.type),p=o===null||u.selector===o,f=i===null||u.handler===i;d&&p&&f?a.removeEventListener(u.type,u.wrapped,u.options):l.push(u)}Mr.set(a,l)}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(c){return o?s.off(t,o,a):s.off(t,a),i.call(this,c)};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)cc(t);return this}hide(){for(let t of this.elements)lc(t);return this}toggle(t){for(let n of this.elements)(t===void 0?ac(n):t)?cc(n):lc(n);return this}fadeIn(t=220){for(let n of this.elements)n.removeAttribute("hidden"),nn(n,t);return this}fadeOut(t=220){for(let n of this.elements)rn(n,t);return this}slideUp(t=240){for(let n of this.elements)Mt(n,t);return this}slideDown(t=240){for(let n of this.elements)n.removeAttribute("hidden"),St(n,t);return this}slideToggle(t=240){for(let n of this.elements)ac(n)?(n.removeAttribute("hidden"),St(n,t)):Mt(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 dc(t)){if(!_d(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 dc(t)){let c=a;if(!c.name||c.disabled)continue;let l=(c.getAttribute("type")||"").toLowerCase();if(l==="submit"||l==="reset"||l==="button")continue;let u=c.name.endsWith("[]"),d=u?c.name.slice(0,-2):c.name,p=a,f;if(l==="checkbox"){if(!c.checked&&!u){n[d]=(r=n[d])!=null?r:!1;continue}if(!c.checked)continue;f=c.value==="on"?!0:c.value}else if(l==="radio"){if(!c.checked)continue;f=c.value}else l==="file"?f=c.multiple?Array.from((o=c.files)!=null?o:[]):(s=(i=c.files)==null?void 0:i[0])!=null?s:null:c.tagName==="SELECT"&&p.multiple?f=Array.from(p.selectedOptions).map(m=>m.value):l==="number"||l==="range"?f=c.value===""?null:Number(c.value):f=c.value;if(u){let m=n[d];Array.isArray(m)?m.push(f):n[d]=[f];continue}if(Object.prototype.hasOwnProperty.call(n,d)){let m=n[d];Array.isArray(m)?m.push(f):m===void 0||m===!1?n[d]=f:n[d]=[m,f];continue}n[d]=f}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&&q(n),W(n,Ce(n.parentNode));return this}destroy(){for(let t of this.elements)q(t);return this}};function vi(e,t){if(typeof e=="function"){hi(e);let n=typeof document!="undefined"?document.documentElement:null;return new Be(n?[n]:[])}return new Be(Rt(e,t))}function hi(e){return typeof document=="undefined"?Promise.resolve():new Promise(t=>{va(()=>{try{e==null||e()}catch(n){z(n,"V.ready")}t()})})}function gc(e){return new Be(gi(e))}ne();J();Te();Te();J();var yi=new WeakMap;function lt(e,t){var n;return(n=xe(e,`${E.prefix}${t}`))!=null?n:xe(e,`data-v-${t}`)}function Cr(e,t){return nt(e,`${E.prefix}${t}`)||nt(e,`data-v-${t}`)}function j(e,t){let n=yi.get(e);return n&&t in n?n[t]:lt(e,t)}function Rr(e,t,n){var o;let r=(o=yi.get(e))!=null?o:{};r[t]=n,yi.set(e,r)}function O(e){b(e,({el:t,expression:n})=>{Rr(t,e,n)},{priority:P.BIND})}function K(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0}))}function qe(e,t,n,r,o){if(!e.trim())return;let i=t.child({$el:n,$event:r!=null?r:null,$detail:o}),s=$(e,i,"directive de UI");return typeof s=="function"?s.call(t.data,o!=null?o:r):s}var Kd=`
|
|
139
139
|
.v-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
140
140
|
clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
141
141
|
`,ct=null;function ke(e){if(typeof document=="undefined")return;G("ui-live",Kd),(!ct||!ct.isConnected)&&(ct=document.createElement("div"),ct.className="v-visually-hidden",ct.setAttribute("role","status"),ct.setAttribute("aria-live","polite"),document.body.appendChild(ct));let t=ct;t.textContent="",setTimeout(()=>{t.textContent=e},40)}function Hr(e,t,n){return lr(e,t).filter(r=>Ut(r,n)===e)}Te();J();var Yd=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voodoojs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Voodoo.js: the HTML-first JavaScript framework. Build reactive applications directly in HTML: fine-grained reactivity, components, HTTP, forms, validation, router and UI. No mandatory build step, no runtime dependencies, no Virtual DOM, no eval.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|